Table of Contents

Namespace LMKit.Agents.Tools.Http

Classes

HttpApiTool

Runs an HttpApiToolDefinition as a tool: the model's arguments fill the URL, the query string, headers and the JSON body, the operation is called, and the answer (cut to the definition's response path and length) comes back as { status, ok, body }. A method that only reads is a low-risk read; any other is a network write that asks for approval unless the definition says otherwise. With an egress policy, every call is checked against it first and redirects are never followed.

HttpApiTool.Exchange

One call of the tool as it happened on the wire.

HttpApiToolDefinition

A tool that calls one HTTP API operation, described as data: the method, a URL template whose {name} placeholders are filled from the arguments, fixed headers, the JSON schema of the arguments the model passes, and the part of the answer to keep. HttpApiTool runs it; OpenApiImporter makes definitions from an OpenAPI document. Plain JSON, so a host stores, exports and edits it like any other definition.

OpenApiImporter

Turns the operations of an OpenAPI 3 document (JSON or YAML) into HttpApiToolDefinitions: one tool per operation, named after its operationId, described by its summary, with its path, query and header parameters and its JSON body as the tool's arguments (references to shared schemas resolved), so an existing service becomes tools in one step.

Share