Documentation
¶
Overview ¶
Package mcpbatch owns strict, snapshot-gated MCP batch input validation and execution.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Call ¶
type Call struct {
ID string `json:"id"`
Tool string `json:"tool"`
Arguments map[string]any `json:"arguments,omitempty"`
Select *string `json:"select,omitempty"`
Head *int `json:"head,omitempty"`
}
Call is one named, schema-validated read-only tool invocation.
type Caller ¶
type Caller interface {
Call(context.Context, string, map[string]any) (*protocol.CallToolResult, error)
}
Caller is the connected MCP client surface used by a batch worker pool.
type Input ¶
type Input struct {
Version int `json:"version"`
MaxConcurrency *int `json:"max_concurrency,omitempty"`
FailFast bool `json:"fail_fast,omitempty"`
Calls []Call `json:"calls"`
CallTimeout time.Duration `json:"-"`
}
Input is the versioned, bounded batch request document.
type Projector ¶
type Projector func(*protocol.CallToolResult, Call) (any, error)
Projector adapts normal tool results to the optional call projection contract.
Click to show internal directories.
Click to hide internal directories.