Versions in this module Expand all Collapse all v0 v0.0.1 Jan 8, 2025 Changes in this version + type History struct + Messages []openai.ChatCompletionMessageParamUnion + Pending []string + Toks int + func Clone(h *History) *History + func Reset(h *History) *History + type Thread struct + func NewThread(history *History, client *bootstrap.ClientRef, 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