Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainStep ¶
type ChainStep struct {
ID string `json:"id,omitempty"` // alias for this step
ToolName string `json:"tool_name"`
Inputs map[string]any `json:"inputs,omitempty"`
UsePrevious bool `json:"use_previous,omitempty"`
Stream bool `json:"stream,omitempty"`
}
ChainStep defines one step in a Go-native UTCP tool chain.
type LanguageConfig ¶
type LanguageConfig struct {
Cmd string
Args []string
Extension string
CompileArgs []string
NeedsCompile bool
RunCompiled bool
}
--- Language Configurations ---
type ToolCaller ¶
type ToolCaller interface {
CallTool(ctx context.Context, toolName string, args map[string]any) (any, error)
CallToolStream(ctx context.Context, toolName string, args map[string]any) (transports.StreamResult, error)
}
--- ToolCaller Interface ---
type UtcpClient ¶
type UtcpClient struct {
Client ToolCaller
}
--- Core UTCP Client ---
Click to show internal directories.
Click to hide internal directories.