Skip to main content

Module schema

Module schema 

Source
Expand description

JSON schemas for action-tagged tools.

Model APIs accept a flat object schema for function parameters; a top-level oneOf is dropped or collapsed to one variant, which hid every action but the last from the model. So each schema is one object: an action enum, every field as an optional property, and the required fields per action in the descriptions. The Rust enums that decode the call stay strict.

Structs§

Action
One action: its name, what it does, and its fields as (name, schema, required).
Field
One field of a non-action tool.

Functions§

action
batch
The arguments of a write tool: 1 to 20 operations over actions.
body
A comment or description body.
field
flat
One flat object schema over actions: the arguments of a read tool, or one operation of a write tool.
id
single
text