Documentation
¶
Overview ¶
Package extension defines the stable, protocol-independent vocabulary of a golder extension. It does not grant host authority and imports no internal API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Call ¶
type Call struct {
ID string `json:"id"`
Tool string `json:"tool"`
Arguments json.RawMessage `json:"arguments"`
}
type ContentBlock ¶
type ContentBlock struct {
Type string `json:"type"` // text, image, resource_link
Text string `json:"text,omitempty"`
Data string `json:"data,omitempty"` // base64 for image
MIMEType string `json:"mimeType,omitempty"`
URI string `json:"uri,omitempty"`
}
ContentBlock is data, never a request to execute or to change host policy.
type Result ¶
type Result struct {
Content []ContentBlock `json:"content"`
StructuredContent json.RawMessage `json:"structuredContent,omitempty"`
IsError bool `json:"isError,omitempty"`
}
type ToolSpec ¶
type ToolSpec struct {
Name string `json:"name"`
Description string `json:"description"`
InputSchema json.RawMessage `json:"inputSchema"`
OutputSchema json.RawMessage `json:"outputSchema,omitempty"`
Hints ToolHints `json:"hints,omitempty"`
}