Versions in this module Expand all Collapse all v0 v0.1.0 Apr 15, 2026 Changes in this version + var ErrMissingToolName = errors.New("tool_invocation: tool name is required") + var ErrNilHTTPClient = errors.New("tool_invocation: HTTP client not configured") + var ErrNilRegistryClient = errors.New("tool_invocation: registry client not configured") + var ErrUnsupportedToolType = errors.New("tool_invocation: unsupported tool type") + func WireHTTPFetch(hf *wasm.HostFunctions, pipeline *ToolInvocationPipeline) + type ToolInvocation struct + Arguments map[string]any + Meta ToolInvocationMeta + Name string + Type string + type ToolInvocationMeta struct + RequestID string + SessionID string + TenantID string + UserID string + type ToolInvocationPipeline struct + func NewToolInvocationPipeline(httpClient *wasm.SandboxedHTTPClient, ...) *ToolInvocationPipeline + func (p *ToolInvocationPipeline) Invoke(ctx context.Context, inv ToolInvocation) (*ToolResult, error) + type ToolResult struct + Duration time.Duration + Error error + Output []byte + StatusCode int