Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an llm toolkit HTTP client that wraps the base HTTP client and provides typed methods for interacting with the llm toolkit API.
func New ¶
New creates a new llm toolkit HTTP client with the given base URL and options. The url parameter should point to the shared API endpoint (the same one the registry, filer and credential clients use), e.g. "http://localhost:8080/api" - each method includes its own "llm/..." path segment, matching how httphandler registers its routes.
func (*Client) CallTool ¶
func (c *Client) CallTool(ctx context.Context, name string, input json.RawMessage) (json.RawMessage, error)
CallTool runs the tool with the canonical name, such as "weatherapi:current", with the input, which may be empty, and returns its result as JSON, or nil when the tool has no result