pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::orch::ToolSpec Struct Reference

A tool the model may call. ToolRegistry::specs() makes these from its tools. More...

#include <message.hpp>

Collaboration diagram for pulsatrix::orch::ToolSpec:

Public Attributes

std::string name
 letters, digits, _ and -, 1 to 128 characters
 
std::string description
 
JsonValue input_schema
 a JSON Schema object
 
bool strict = false
 Ask the provider to guarantee inputs that match the schema (Anthropic's strict tool use). The schema must then follow the provider's strict-mode rules, such as "additionalProperties": false on every object.
 

Detailed Description

A tool the model may call. ToolRegistry::specs() makes these from its tools.

Member Data Documentation

◆ description

std::string pulsatrix::orch::ToolSpec::description

◆ input_schema

JsonValue pulsatrix::orch::ToolSpec::input_schema

a JSON Schema object

◆ name

std::string pulsatrix::orch::ToolSpec::name

letters, digits, _ and -, 1 to 128 characters

◆ strict

bool pulsatrix::orch::ToolSpec::strict = false

Ask the provider to guarantee inputs that match the schema (Anthropic's strict tool use). The schema must then follow the provider's strict-mode rules, such as "additionalProperties": false on every object.


The documentation for this struct was generated from the following file: