|
pulsatrix 1.1.0
|
The agent loop: ask the model, run the tools it calls, send back the results, repeat. More...
#include <functional>#include <string>#include <vector>#include "pulsatrix/orch/message.hpp"#include "pulsatrix/orch/provider.hpp"

Go to the source code of this file.
Classes | |
| struct | pulsatrix::orch::ToolCall |
| One tool call to run. More... | |
| struct | pulsatrix::orch::ToolOutcome |
| What a tool returned. An error is reported to the model, which can try again. More... | |
| struct | pulsatrix::orch::ToolLoopOptions |
| Settings for RunToolLoop(). More... | |
| struct | pulsatrix::orch::ToolLoopResult |
| How a tool loop ended. More... | |
Namespaces | |
| namespace | pulsatrix |
| namespace | pulsatrix::orch |
Typedefs | |
| using | pulsatrix::orch::ToolExecutor = std::function< ToolOutcome(const ToolCall &)> |
| Runs one tool call. ToolRegistry::executor() provides one; any function works. | |
Functions | |
| ToolLoopResult | pulsatrix::orch::RunToolLoop (Provider &provider, ChatRequest request, const ToolExecutor &execute, const ToolLoopOptions &options={}) |
Sends request, runs each tool the model calls with execute, and sends the results back, until the model stops calling tools or options.max_turns requests have been made. | |
The agent loop: ask the model, run the tools it calls, send back the results, repeat.