Documentation
¶
Index ¶
Constants ¶
const ( // ToolSeparator separates the namespace and name in a tool's canonical // name ToolSeparator = ":" )
Variables ¶
This section is empty.
Functions ¶
func CanonicalToolName ¶
CanonicalToolName returns the canonical name of a tool in a namespace, which is the namespace and tool name separated by a colon
Types ¶
type CallToolRequest ¶
type CallToolRequest struct {
Input json.RawMessage `` /* 127-byte string literal not displayed */
}
CallToolRequest is a request to run a tool with its input
func (CallToolRequest) String ¶
func (t CallToolRequest) String() string
type Tool ¶
type Tool struct {
Name string `json:"name" readonly:"" help:"Tool name" example:"current"`
Canonical string `` /* 150-byte string literal not displayed */
Description string `` /* 127-byte string literal not displayed */
Input json.RawMessage `json:"input,omitempty" readonly:"" help:"JSON schema of the tool's input"`
Output json.RawMessage `json:"output,omitempty" readonly:"" help:"JSON schema of the tool's output, if it has one"`
}
Tool is a tool which models can call
type ToolList ¶
type ToolList struct {
ToolListRequest
Count uint64 `json:"count"`
Body []*Tool `json:"body,omitempty"`
}
ToolList is the tools, with their number
type ToolListRequest ¶
type ToolListRequest struct {
Namespace string `json:"namespace,omitempty" help:"Returns only the tools in this namespace" example:"weatherapi" optional:""`
}
ToolListRequest filters a list of tools
func (ToolListRequest) Query ¶
func (t ToolListRequest) Query() url.Values
Query returns the request as URL query parameters
func (ToolListRequest) String ¶
func (t ToolListRequest) String() string