Documentation
¶
Index ¶
Constants ¶
View Source
const ( TransportCommand = "command" TransportSSE = "sse" DefaultTimeoutMS = 30000 DefaultMaxBytes = 20000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallResult ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListTools ¶
func (c *Client) ListTools(ctx context.Context, serverName string, opts ListToolsOptions) (ListToolsResult, error)
type ListToolsOptions ¶
type ListToolsResult ¶ added in v0.1.19
type ListToolsResult struct {
Tools []ToolSummary `json:"tools"`
Total int `json:"total"`
Truncated bool `json:"truncated,omitempty"`
}
ListToolsResult reports the bounded tool inventory plus the true total so callers (and the models reading their output) can tell when the list was cut by MaxTools.
type Server ¶
type Server struct {
Name string `yaml:"name" json:"name"`
Transport string `yaml:"transport" json:"transport"`
Command string `yaml:"command,omitempty" json:"command,omitempty"`
Args []string `yaml:"args,omitempty" json:"args,omitempty"`
URL string `yaml:"url,omitempty" json:"url,omitempty"`
TimeoutMS int `yaml:"timeout_ms,omitempty" json:"timeout_ms,omitempty"`
MaxBytes int `yaml:"max_bytes,omitempty" json:"max_bytes,omitempty"`
Description string `yaml:"description,omitempty" json:"description,omitempty"`
}
type State ¶
type State struct {
Servers []Server `yaml:"servers" json:"servers"`
}
func (State) PublicServers ¶
Click to show internal directories.
Click to hide internal directories.