|
ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
|
Manages the agent execution loop: LLM calls, tool dispatch, and handoffs. More...
#include <runner.hpp>
Public Member Functions | |
| Runner (std::shared_ptr< foresthub::core::LLMClient > client, foresthub::core::ModelID model) | |
| Construct a runner with an LLM client and default model. | |
| Runner & | WithMaxTurns (int max_turns) |
| Set the turn limit for agent execution. | |
| RunResultOrError | Run (const std::shared_ptr< Agent > &starting_agent, const std::shared_ptr< core::Input > &input) |
| Execute an agent workflow from the given starting point. | |
| const std::shared_ptr< foresthub::core::LLMClient > & | client () const |
| const core::ModelID & | default_model () const |
| const foresthub::Optional< int > & | max_turns () const |
Manages the agent execution loop: LLM calls, tool dispatch, and handoffs.
| foresthub::agent::Runner::Runner | ( | std::shared_ptr< foresthub::core::LLMClient > | client, |
| foresthub::core::ModelID | model ) |
Construct a runner with an LLM client and default model.
| client | LLM client for chat requests. |
| model | Default model identifier. |
|
inline |
|
inline |
|
inline |
| RunResultOrError foresthub::agent::Runner::Run | ( | const std::shared_ptr< Agent > & | starting_agent, |
| const std::shared_ptr< core::Input > & | input ) |