Versions in this module Expand all Collapse all v0 v0.0.4 Mar 22, 2025 v0.0.3 Mar 12, 2025 v0.0.2 Mar 10, 2025 Changes in this version + type History struct + Frames []MessagesFrame + Pending []string + func (h *History) Clone() *History + func (h *History) Messages(current ...openai.ChatCompletionMessageParamUnion) []openai.ChatCompletionMessageParamUnion + type MessagesFrame struct + Messages []openai.ChatCompletionMessageParamUnion + Request string + Response string + Toks int + type Thread struct + func NewThread(history *History, ref *client.Ref, host *host.Host) (*Thread, error) + func (t *Thread) Post(ctx context.Context, message string) (*History, error) + type ToolRunner struct + func NewToolRunner(host *host.Host) *ToolRunner + func (c *ToolRunner) Add(toolCall *openai.ChatCompletionMessageToolCall) error + func (c *ToolRunner) Complete(ctx context.Context) ([]openai.ChatCompletionMessageParamUnion, error) + type ToolRunnerHandler struct