Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPrompt ¶
func BuildPrompt(messages []AgentMessage, systemPrompt string) string
BuildPrompt constructs a plain text prompt from messages and an optional system prompt.
Types ¶
type AgentMessage ¶
AgentMessage represents a single message in the conversation context.
type AgentRequest ¶
type AgentRequest struct {
SessionID string `json:"session_id"`
Messages []AgentMessage `json:"messages"`
SystemPrompt string `json:"system_prompt"`
ChannelID string `json:"channel_id"`
DirPath string `json:"dir_path,omitempty"`
}
AgentRequest is the input sent to the agent runner.
type AgentResponse ¶
type AgentResponse struct {
Response string `json:"response"`
SessionID string `json:"session_id"`
Error string `json:"error,omitempty"`
}
AgentResponse is the output from the agent runner.
Click to show internal directories.
Click to hide internal directories.