pub struct ToolDescriptor {
pub name: String,
pub description: String,
pub parameters: Value,
pub policy: Policy,
pub source: ToolSource,
pub advertised: bool,
pub deferred: bool,
pub disabled: bool,
}Expand description
Everything known about one tool, in one place.
The model request (ToolSpec), eclipse tools list, eclipse tools schema and the tests
all derive from this, so the four cannot disagree about what a tool is called, what it takes
or who added it. advertised is the only field that is about this configuration rather
than the tool: the descriptor still reports a denied tool, because an operator needs to see
that it exists and why it is not offered.
Fields§
§name: String§description: String§parameters: ValueJSON Schema for the arguments object.
policy: Policy§source: ToolSource§advertised: boolWhether the model is offered this tool. False for a policy of deny, for anything named
in [tools] disabled, and for anything deferred — the last of which is reachable through
tool_call, so deferred is the field that says why.
deferred: boolRegistered and callable, but withheld from the request to save its description’s tokens.
disabled: boolNamed in [tools] disabled: not offered and not callable at all. Kept apart from a
deny policy because the two are removed by different hands and a listing should say
which.