pulsatrix 1.1.0
Loading...
Searching...
No Matches
LLM Agents

The native LLM agent library, pulsatrix::orch (target pulsatrix_orchestrator, opt-in via PULSATRIX_ENABLE_ORCHESTRATOR). So far: orch::Secret for API keys, an HTTP transport with cpp-httplib and libcurl backends (orch::HttpTransport), and a parser for server-sent events (orch::SseParser), and the Anthropic and OpenAI-compatible providers (orch::Provider) with the agent loop (orch::RunToolLoop), and a tool registry (orch::ToolRegistry) that checks inputs with a small JSON Schema validator (orch::ValidateJson). More...

Files

file  http.hpp
 HTTP for the orchestrator: requests, responses and a transport with two backends.
 
file  json_schema.hpp
 A small JSON Schema validator for tool inputs.
 
file  message.hpp
 The orchestrator's message format, shared by every LLM provider.
 
file  provider.hpp
 LLM providers: the Anthropic API and OpenAI-compatible servers, behind one interface.
 
file  secret.hpp
 A credential such as an API key, which can't be printed by accident.
 
file  sse.hpp
 A parser for server-sent events, the format LLM APIs stream their responses in.
 
file  tool_loop.hpp
 The agent loop: ask the model, run the tools it calls, send back the results, repeat.
 
file  tool_registry.hpp
 Tools defined once: their specs for a provider, and an executor that checks inputs.
 

Detailed Description

The native LLM agent library, pulsatrix::orch (target pulsatrix_orchestrator, opt-in via PULSATRIX_ENABLE_ORCHESTRATOR). So far: orch::Secret for API keys, an HTTP transport with cpp-httplib and libcurl backends (orch::HttpTransport), and a parser for server-sent events (orch::SseParser), and the Anthropic and OpenAI-compatible providers (orch::Provider) with the agent loop (orch::RunToolLoop), and a tool registry (orch::ToolRegistry) that checks inputs with a small JSON Schema validator (orch::ValidateJson).