Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentApp ¶
type AgentApp struct {
// contains filtered or unexported fields
}
AgentApp represents the Agent application structure
func NewAgentApp ¶
NewAgentApp creates a new Agent application
type ChatApp ¶
type ChatApp struct {
// contains filtered or unexported fields
}
ChatApp represents the chat application structure (merged from chat functionality)
func NewChatApp ¶
NewChatApp creates a new chat application (merged from chat functionality)
type Message ¶
type Message struct {
Type MessageType
Content string
Name string // Tool name (only used for tool messages)
ToolStatus ToolStatus // Status of tool execution (only used for tool messages)
Arguments string // Tool arguments (only used for tool messages)
Result string // Tool result (only used for tool messages)
StartTime int64 // Tool start time (Unix timestamp, only used for tool messages)
EndTime int64 // Tool end time (Unix timestamp, only used for tool messages)
}
Message represents a chat message
type MessageType ¶
type MessageType int
MessageType represents the type of a message
const ( UserMessage MessageType = iota AssistantMessage ToolStartMessage ToolEndMessage ErrorMessage )
type StreamChunkMsg ¶
type StreamChunkMsg string
type StreamEndMsg ¶
type StreamEndMsg struct{}
type ToolEndMsg ¶
type ToolStartMsg ¶
type ToolStatus ¶
type ToolStatus int
ToolStatus represents the status of a tool call
const ( ToolWaiting ToolStatus = iota // Tool is being called (orange) ToolSuccess // Tool completed successfully (green) ToolError // Tool failed (red) )
Click to show internal directories.
Click to hide internal directories.