Versions in this module Expand all Collapse all v1 v1.0.0 Mar 21, 2026 Changes in this version + const DefaultMaxHistory + const FalconFolderName + var ErrSetupCancelled = errors.New("setup cancelled by user") + var SupportedFrameworks = []string + func EnsureGlobalFalconDir() error + func GetActiveProviderEntry(cfg *GlobalConfig) (providerID, model string, values map[string]string) + func GetConfigFramework() string + func GlobalConfigPath() string + func GlobalFalconDir() string + func InitializeFalconFolder(framework string, skipIndex bool) error + func RunGlobalConfigWizard() error + func SaveGlobalConfig(cfg *GlobalConfig) error + func SetProviderEntry(cfg *GlobalConfig, providerID, model string, values map[string]string) + type Agent struct + func NewAgent(llmClient llm.LLMClient) *Agent + func (a *Agent) AppendHistory(msg llm.Message) + func (a *Agent) AppendHistoryPair(assistantMsg, observationMsg llm.Message) + func (a *Agent) ExecuteTool(toolName string, args string) (string, error) + func (a *Agent) GetFramework() string + func (a *Agent) GetHistory() []llm.Message + func (a *Agent) GetPromptTokenEstimate() int + func (a *Agent) LLMClient() llm.LLMClient + func (a *Agent) ProcessMessage(input string) (string, error) + func (a *Agent) ProcessMessageWithEvents(ctx context.Context, input string, callback EventCallback) (string, error) + func (a *Agent) RegisterTool(tool Tool) + func (a *Agent) SetFramework(framework string) + func (a *Agent) SetLastResponse(response interface{}) + func (a *Agent) SetMaxHistory(max int) + func (a *Agent) SetMemoryStore(store *MemoryStore) + func (a *Agent) SwapLLMClient(client llm.LLMClient) + type AgentEvent struct + Content string + FileConfirmation *FileConfirmation + ToolArgs string + Type string + type Config struct + DefaultModel string + Framework string + GeminiConfig *GeminiConfig + OllamaAPIKey string + OllamaConfig *OllamaConfig + OllamaURL string + OpenRouterConfig *OpenRouterConfig + Provider string + ProviderConfig map[string]string + Theme string + type ConfirmableTool interface + SetEventCallback func(callback EventCallback) + type ErrorContext struct + Details []string + ErrorType string + Fields []string + Message string + StackFrames []StackFrame + func ExtractErrorContext(body string, statusCode int) *ErrorContext + func (ctx *ErrorContext) FormatErrorContext() string + type EventCallback func(AgentEvent) + type FileConfirmation struct + Diff string + FilePath string + IsNewFile bool + type GeminiConfig struct + APIKey string + type GlobalConfig struct + DefaultProvider string + LegacyDefaultModel string + LegacyProvider string + LegacyProviderConfig map[string]string + Providers map[string]ProviderEntry + Theme string + func LoadGlobalConfig() (*GlobalConfig, error) + type MemoryEntry struct + Category string + Key string + Source string + Timestamp string + Value string + type MemoryStore struct + func NewMemoryStore(falconDir string) *MemoryStore + func (ms *MemoryStore) FalconDir() string + func (ms *MemoryStore) Forget(key string) error + func (ms *MemoryStore) GetCompactSummary() string + func (ms *MemoryStore) List() []MemoryEntry + func (ms *MemoryStore) ListByCategory(category string) []MemoryEntry + func (ms *MemoryStore) Recall(query string) []MemoryEntry + func (ms *MemoryStore) Save(key, value, category string) error + func (ms *MemoryStore) UpdateKnowledge(section, newContent string) error + type OllamaConfig struct + APIKey string + Mode string + URL string + type OpenRouterConfig struct + APIKey string + type ProviderEntry struct + Config map[string]string + Model string + type SetupResult struct + Framework string + Model string + Provider string + ProviderValues map[string]string + type StackFrame struct + Code string + File string + Function string + Line int + func ParseStackTrace(text string) []StackFrame + type Tool interface + Description func() string + Execute func(args string) (string, error) + Name func() string + Parameters func() string