Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadSystemPrompt ¶
LoadSystemPrompt loads system prompt from file
Types ¶
type Config ¶
type Config struct {
MCPServers map[string]MCPServerConfig `json:"mcpServers" yaml:"mcpServers"`
Model string `json:"model,omitempty" yaml:"model,omitempty"`
MaxSteps int `json:"max-steps,omitempty" yaml:"max-steps,omitempty"`
MessageWindow int `json:"message-window,omitempty" yaml:"message-window,omitempty"`
Debug bool `json:"debug,omitempty" yaml:"debug,omitempty"`
SystemPrompt string `json:"system-prompt,omitempty" yaml:"system-prompt,omitempty"`
OpenAIAPIKey string `json:"openai-api-key,omitempty" yaml:"openai-api-key,omitempty"`
AnthropicAPIKey string `json:"anthropic-api-key,omitempty" yaml:"anthropic-api-key,omitempty"`
GoogleAPIKey string `json:"google-api-key,omitempty" yaml:"google-api-key,omitempty"`
OpenAIURL string `json:"openai-url,omitempty" yaml:"openai-url,omitempty"`
AnthropicURL string `json:"anthropic-url,omitempty" yaml:"anthropic-url,omitempty"`
Prompt string `json:"prompt,omitempty" yaml:"prompt,omitempty"`
}
Config represents the application configuration
func LoadMCPConfig ¶
LoadMCPConfig loads MCP configuration from file
type MCPServerConfig ¶
type MCPServerConfig struct {
Command string `json:"command,omitempty"`
Args []string `json:"args,omitempty"`
URL string `json:"url,omitempty"`
Headers []string `json:"headers,omitempty"`
AllowedTools []string `json:"allowedTools,omitempty"`
ExcludedTools []string `json:"excludedTools,omitempty"`
}
MCPServerConfig represents configuration for an MCP server
type SystemPromptConfig ¶
type SystemPromptConfig struct {
SystemPrompt string `json:"systemPrompt"`
}
SystemPromptConfig represents system prompt configuration
Click to show internal directories.
Click to hide internal directories.