Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
Type MessageType
Content string
Sender string // Agent name for assistant messages
ToolCall tools.ToolCall // Associated tool call for tool messages
ToolDefinition tools.Tool // Definition of the tool being called
ToolStatus ToolStatus // Status for tool calls
}
Message represents a single message in the chat
type MessageType ¶
type MessageType int
MessageType represents different types of messages
const ( MessageTypeUser MessageType = iota MessageTypeAssistant MessageTypeAssistantReasoning MessageTypeSpinner MessageTypeError MessageTypeShellOutput MessageTypeSeparator MessageTypeCancelled MessageTypeToolCall MessageTypeToolResult )
type ToolStatus ¶
type ToolStatus int
ToolStatus represents the status of a tool call
const ( ToolStatusPending ToolStatus = iota ToolStatusConfirmation ToolStatusRunning ToolStatusCompleted ToolStatusError )
Click to show internal directories.
Click to hide internal directories.