Versions in this module Expand all Collapse all v1 v1.4.0 Oct 20, 2026 Changes in this version + func CallTenantTool(ctx context.Context, mcp MCPClient, executionID, name string, args any) (json.RawMessage, error) + func EnvelopePrefix() string + func ExtractUpstreamOutputs(goal string) map[string]string + func InvokeModelText(ctx context.Context, deps Deps, executionID, modelRef, system, user string) (string, error) + func PutMemory(ctx context.Context, mcp MCPClient, ...) error + func RoleFromRef(versionRef string) string + func Run(ctx context.Context, deps Deps, executionID, versionRef, goal string) (json.RawMessage, error) + func SpawnChild(ctx context.Context, mcp MCPClient, executionID, name, childRef, goal string, ...) error + type ChatCall struct + Arguments string + ID string + Name string + type ChatMessage struct + Content string + Role string + ToolCallID string + ToolCalls []ChatCall + type ChatTurn struct + Content string + ToolCalls []ChatCall + func InvokeModel(ctx context.Context, mcp MCPClient, executionID, modelRef string, ...) (ChatTurn, error) + type Claim struct + Claim string + ClaimID string + Confidence float64 + Evidence string + Grounded bool + SourceHash string + type Deps struct + MCP MCPClient + Models Models + Workdir func(namespace string) string + type Envelope struct + Goal string + Question *Question + Role string + Round int + Source *SourceHit + Verdict string + Workflow string + func ParseEnvelope(goal, versionRef string) Envelope + type EvidenceBundle struct + Claims []Claim + ResearchQuestionID string + SourceID string + Title string + URL string + type FetchedDocument struct + Content string + FetchedAt string + SourceID string + Title string + URL string + type HTTPMCPClient struct + func NewHTTPMCPClient(endpoint string) *HTTPMCPClient + func (c *HTTPMCPClient) CallTool(ctx context.Context, executionID, name string, callArgs any) (json.RawMessage, error) + type MCPClient interface + CallTool func(ctx context.Context, executionID, name string, args any) (json.RawMessage, error) + type MCPToolError struct + Code string + Message string + func (e *MCPToolError) Error() string + type MemoryRecord struct + Content string + ID string + Key string + Namespace string + func SearchMemory(ctx context.Context, mcp MCPClient, executionID, namespace, query string, ...) ([]MemoryRecord, error) + type Models struct + Fast string + Reader string + Reasoning string + type Question struct + ID string + Priority int + Question string + SearchQueries []string + type ReaderErrorDisposition int + const ReaderFail + const ReaderRetry + const ReaderSkip + type Runtime struct + func NewRuntime(mcpEndpoint string, models Models) *Runtime + func (r *Runtime) Checkpoint(_ context.Context, executionID string) (agent.Checkpoint, error) + func (r *Runtime) Restore(_ context.Context, request agent.RestoreRequest) error + func (r *Runtime) Run(ctx context.Context, request agent.StartRequest, emit agent.Emitter) (json.RawMessage, error) + type SourceHit struct + Query string + QuestionText string + ResearchQuestionID string + Snippet string + SourceID string + Title string + URL string + type SpawnOutcomeError struct + Message string + Name string + Outcome string + func (e *SpawnOutcomeError) Error() string