NeuralPlus 0.2.0
A small C++17 SDK for AI clients, sessions, tools, and tracing
Loading...
Searching...
No Matches
neuralplus::ToolSpec Struct Reference

Description and JSON Schema advertised to a model. More...

#include <types.hpp>

Public Attributes

std::string name
 Portable function name.
 
std::string description
 Human-readable instruction for deciding when to call the tool.
 
JsonValue input_schema
 JSON Schema whose root type must be object.
 
JsonValue provider_options = JsonValue::object()
 

Detailed Description

Description and JSON Schema advertised to a model.

Examples
simple_session.cpp.

Member Data Documentation

◆ input_schema

JsonValue neuralplus::ToolSpec::input_schema
Initial value:
=
JsonValue{{"type", "object"}, {"properties", JsonValue::object()}}
nlohmann::json JsonValue
Definition types.hpp:26

JSON Schema whose root type must be object.

Examples
simple_session.cpp.

◆ provider_options

JsonValue neuralplus::ToolSpec::provider_options = JsonValue::object()

Provider-native function-declaration fields.

Provider adapters merge this object first, then apply the stable name, description, and input schema so portable fields cannot be replaced.


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