pulsatrix 1.1.0
Loading...
Searching...
No Matches
tool_registry.hpp File Reference

Tools defined once: their specs for a provider, and an executor that checks inputs. More...

#include <cstddef>
#include <functional>
#include <map>
#include <string>
#include <string_view>
#include <vector>
#include "pulsatrix/json.hpp"
#include "pulsatrix/orch/message.hpp"
#include "pulsatrix/orch/tool_loop.hpp"
Include dependency graph for tool_registry.hpp:

Go to the source code of this file.

Classes

struct  pulsatrix::orch::Tool
 A tool: what the model sees, and the function that runs it. More...
 
class  pulsatrix::orch::ToolRegistry
 The tools an agent may use. RunToolLoop() takes executor(), and a planned MCP server will serve the same registry, so a tool is defined once. More...
 

Namespaces

namespace  pulsatrix
 
namespace  pulsatrix::orch
 

Typedefs

using pulsatrix::orch::ToolHandler = std::function< ToolOutcome(const JsonValue &input)>
 Runs a tool on an input that already matches its schema. An exception becomes an error result with the exception's message.
 

Detailed Description

Tools defined once: their specs for a provider, and an executor that checks inputs.