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
ToolName string // Tool name for tool messages
ToolCallID string // Tool call ID for precise identification
ToolStatus ToolStatus // Status for tool calls
Arguments string // Arguments for tool calls
Timestamp int64
}
Message represents a single message in the chat
type MessageType ¶
type MessageType int
MessageType represents different types of messages
const ( MessageTypeUser MessageType = iota MessageTypeAssistant MessageTypeError MessageTypeSeparator 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.