Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type History ¶
type History struct {
Frames []MessagesFrame
// A collection of pending messages to be delivered with the next
// user message.
Pending []string
}
func (*History) Messages ¶
func (h *History) Messages(current ...openai.ChatCompletionMessageParamUnion) []openai.ChatCompletionMessageParamUnion
type MessagesFrame ¶
type MessagesFrame struct {
Request string
Response string
Messages []openai.ChatCompletionMessageParamUnion
Toks int
}
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, functionDescr string) 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.