Documentation
¶
Index ¶
- Variables
- func ExecTool(cfg *config.Config, args []string, format string) error
- func Execute()
- func GetUserspaceFlag(cmd *cobra.Command) bool
- func RunAgentCommand(cfg *config.Config, modelFlag, taskDescription string) error
- func StartChatSession(cfg *config.Config, v *viper.Viper) error
- func ValidateTool(cfg *config.Config, command string) error
- type AgentSession
- type ConversationMessage
- type InitConversationMessage
- type ProjectAnalysisSession
Constants ¶
This section is empty.
Variables ¶
View Source
var V *viper.Viper
Global Viper instance for commands to use
Functions ¶
func GetUserspaceFlag ¶ added in v0.41.0
GetUserspaceFlag checks for --userspace flag on the current command or parent commands
func RunAgentCommand ¶ added in v0.41.0
func StartChatSession ¶ added in v0.41.0
StartChatSession starts a chat session
Types ¶
type AgentSession ¶ added in v0.36.0
type AgentSession struct {
// contains filtered or unexported fields
}
AgentSession manages the background execution session
type ConversationMessage ¶ added in v0.36.0
type ConversationMessage struct {
Role string `json:"role"`
Content string `json:"content"`
ToolCalls *[]sdk.ChatCompletionMessageToolCall `json:"tool_calls,omitempty"`
Tools []string `json:"tools,omitempty"`
ToolCallID string `json:"tool_call_id,omitempty"`
TokenUsage *sdk.CompletionUsage `json:"token_usage,omitempty"`
Timestamp time.Time `json:"timestamp"`
RequestID string `json:"request_id,omitempty"`
Internal bool `json:"-"`
}
ConversationMessage represents a message in the JSON output conversation
type InitConversationMessage ¶ added in v0.49.0
type InitConversationMessage struct {
Role string `json:"role"`
Content string `json:"content"`
ToolCalls *[]sdk.ChatCompletionMessageToolCall `json:"tool_calls,omitempty"`
Tools []string `json:"tools,omitempty"`
ToolCallID string `json:"tool_call_id,omitempty"`
TokenUsage *sdk.CompletionUsage `json:"token_usage,omitempty"`
Timestamp time.Time `json:"timestamp"`
RequestID string `json:"request_id,omitempty"`
Internal bool `json:"-"`
}
InitConversationMessage represents a message in the analysis conversation
type ProjectAnalysisSession ¶ added in v0.49.0
type ProjectAnalysisSession struct {
// contains filtered or unexported fields
}
ProjectAnalysisSession manages the iterative analysis session for generating AGENTS.md
Click to show internal directories.
Click to hide internal directories.