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

A tool: what the model sees, and the function that runs it. More...

#include <tool_registry.hpp>

Collaboration diagram for pulsatrix::orch::Tool:

Public Attributes

std::string name
 letters, digits, _ and -, 1 to 128 characters
 
std::string description
 
JsonValue input_schema
 A JSON Schema with "type": "object", using only the keywords json_schema.hpp lists.
 
ToolHandler handler
 
bool strict = false
 Ask the provider to guarantee inputs that match the schema. The schema must suit strict mode (see StrictModeProblem()). Inputs are checked here either way.
 

Detailed Description

A tool: what the model sees, and the function that runs it.

Member Data Documentation

◆ description

std::string pulsatrix::orch::Tool::description

◆ handler

ToolHandler pulsatrix::orch::Tool::handler

◆ input_schema

JsonValue pulsatrix::orch::Tool::input_schema

A JSON Schema with "type": "object", using only the keywords json_schema.hpp lists.

◆ name

std::string pulsatrix::orch::Tool::name

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

◆ strict

bool pulsatrix::orch::Tool::strict = false

Ask the provider to guarantee inputs that match the schema. The schema must suit strict mode (see StrictModeProblem()). Inputs are checked here either way.


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