Versions in this module Expand all Collapse all v1 v1.4.0 Oct 20, 2026 Changes in this version + func EnvelopePrefix() string + func RoleFromRef(versionRef string) string + func Run(ctx context.Context, deps Deps, versionRef, goal string) (json.RawMessage, error) + type ChatMessage struct + Content string + Role string + type Deps struct + ExecutionID string + MCP MCPClient + Models Models + Workdir func(string) string + type Envelope struct + Goal string + Role string + WorkflowID string + func ParseEnvelope(goal, versionRef string) Envelope + 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 Models struct + Fast string + Reasoning string + 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)