schema

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// ToolSeparator separates the namespace and name in a tool's canonical
	// name
	ToolSeparator = ":"
)

Variables

This section is empty.

Functions

func CanonicalToolName

func CanonicalToolName(namespace, name string) string

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

func (Tool) Cell

func (t Tool) Cell(col int) tui.CellText

func (Tool) Header

func (t Tool) Header() []string

func (Tool) String

func (t Tool) String() string

func (Tool) Width

func (t Tool) Width(col int) int

type ToolList

type ToolList struct {
	ToolListRequest
	Count uint64  `json:"count"`
	Body  []*Tool `json:"body,omitempty"`
}

ToolList is the tools, with their number

func (ToolList) String

func (t ToolList) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL