Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type History ¶
type History struct {
Messages []openai.ChatCompletionMessageParamUnion
// Total number of tokens in the history. Doesn't include the
// pending messages.
Toks int
// A collection of pending messages to be delivered with the next
// user message.
Pending []string
}
type ToolRunner ¶
type ToolRunner struct {
// contains filtered or unexported fields
}
func NewToolRunner ¶
func NewToolRunner(host *host.Host) *ToolRunner
func (*ToolRunner) Add ¶
func (c *ToolRunner) Add(toolCall *openai.ChatCompletionMessageToolCall) error
func (*ToolRunner) Complete ¶
func (c *ToolRunner) Complete(ctx context.Context) ([]openai.ChatCompletionMessageParamUnion, error)
type ToolRunnerHandler ¶
type ToolRunnerHandler struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.