Documentation
¶
Overview ¶
Package a2a provides a toolset implementation for connecting to remote A2A agents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToolSet ¶ added in v1.60.0
func CreateToolSet(ctx context.Context, toolset latest.Toolset, runConfig *config.RuntimeConfig) (tools.ToolSet, error)
CreateToolSet is used by the tools registry.
func Creator ¶ added in v1.132.0
func Creator(ctx context.Context, toolset latest.Toolset, _ string, runConfig *config.RuntimeConfig, _ string) (tools.ToolSet, error)
Creator builds this toolset from its YAML declaration. It matches teamloader.ToolsetCreator so it can be registered directly:
teamloader.NewToolsetRegistry(map[string]teamloader.ToolsetCreator{"a2a": a2a.Creator})
Types ¶
type Option ¶ added in v1.66.0
type Option func(*Toolset)
Option configures a Toolset.
func WithAllowPrivateIPs ¶ added in v1.66.0
WithAllowPrivateIPs disables SSRF dial-time protection so the a2a tool can reach internal services. Off by default; matches the behaviour of the same flag on `fetch`, `api`, `openapi` and remote `mcp`.
func WithExpander ¶ added in v1.67.0
func WithTimeout ¶ added in v1.66.0
WithTimeout overrides the default HTTP client timeout (see httpclient.DefaultToolHTTPTimeout) used both for fetching the agent card and for streaming messages.
type Toolset ¶
type Toolset struct {
// contains filtered or unexported fields
}
Toolset implements tools.ToolSet for A2A remote agents.
func NewToolset ¶
NewToolset creates a new A2A toolset for the given URL.
func (*Toolset) Instructions ¶
Instructions returns instructions for using the A2A toolset.