Versions in this module Expand all Collapse all v0 v0.8.0 Mar 29, 2026 Changes in this version + type AgentConfig struct + APIKey string + MaxTokens int + MaxTurns int + Model string + Temperature float64 + func DefaultAgentConfig() AgentConfig + type AgentMode string + const ModeBaseline + const ModeSynapses + type AgentResult struct + Error string + Patch string + Stats AgentStats + func RunAgent(cfg AgentConfig, systemPrompt, taskPrompt string, tools []ToolDef, ...) (*AgentResult, error) + type AgentStats struct + Duration time.Duration + InputTokens int + OutputTokens int + SynapsesUsed bool + ToolCalls map[string]int + TotalTurns int + type BaselineExecutor struct + RepoDir string + func (e *BaselineExecutor) Execute(toolName string, input json.RawMessage) (string, error) + type ContextAccess struct + File string + LineEnd int + LineStart int + TaskID string + Timestamp time.Time + Tool string + type ContextResult struct + Raw string + Text string + type ImpactResult struct + Raw string + Text string + type RankedCandidate struct + Index int + Score float64 + type RecallResult struct + Raw string + Text string + type SearchResult struct + Raw string + Text string + type SynapsesClient struct + func NewClient(endpoint, project string) *SynapsesClient + func NewDisabledClient() *SynapsesClient + func (c *SynapsesClient) DrainAccesses() []ContextAccess + func (c *SynapsesClient) GetContextJSON(taskID, entity, detailLevel string) (string, error) + func (c *SynapsesClient) GetImpact(taskID, entity string) (*ImpactResult, error) + func (c *SynapsesClient) GetImpactWithDepth(taskID, entity string, depth int) (*ImpactResult, error) + func (c *SynapsesClient) PrepareContext(taskID, entity, intent string) (*ContextResult, error) + func (c *SynapsesClient) RankCandidates(query string, candidates []string) ([]RankedCandidate, error) + func (c *SynapsesClient) Recall(taskID, query string) (*RecallResult, error) + func (c *SynapsesClient) Search(taskID, query string) (*SearchResult, error) + func (c *SynapsesClient) SearchWithMode(query, mode string) (string, error) + func (c *SynapsesClient) WithProject(project string) *SynapsesClient + type SynapsesExecutor struct + Client *SynapsesClient + TaskID string + func (e *SynapsesExecutor) Execute(toolName string, input json.RawMessage) (string, error) + type ToolDef struct + Description string + InputSchema map[string]interface{} + Name string + func BaselineTools() []ToolDef + func SynapsesTools() []ToolDef + type ToolExecutor interface + Execute func(toolName string, input json.RawMessage) (string, error)