Documentation
¶
Overview ¶
Package proto shared protocol.
Index ¶
Constants ¶
View Source
const ( RoleSystem = "system" RoleUser = "user" RoleAssistant = "assistant" RoleTool = "tool" )
Roles.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conversation ¶
type Conversation []Message
Conversation is a conversation.
func (Conversation) String ¶
func (cc Conversation) String() string
type Request ¶
type Request struct {
Messages []Message
API string
Model string
User string
Tools map[string][]mcp.Tool
Temperature *float64
TopP *float64
TopK *int64
Stop []string
MaxTokens *int64
MaxCompletionTokens *int64
ToolCaller func(name string, data []byte) (string, error)
}
Request is a chat request.
type ToolCallStatus ¶
ToolCallStatus is the status of a tool call.
func (ToolCallStatus) String ¶
func (c ToolCallStatus) String() string
Click to show internal directories.
Click to hide internal directories.