ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
Loading...
Searching...
No Matches
foresthub::agent Namespace Reference

Agent framework: multi-turn execution with tool calling and handoffs. More...

Classes

class  Agent
 LLM agent with instructions, tools, and optional response format. More...
class  Handoff
 Tool that transfers control from one agent to another. More...
class  Runner
 Manages the agent execution loop: LLM calls, tool dispatch, and handoffs. More...
struct  RunResult
 Final outcome of an agent execution workflow. More...
struct  RunResultOrError
 Result wrapper that holds either a RunResult or an error message. More...

Functions

std::shared_ptr< HandoffNewHandoff (std::string name, std::string description, std::shared_ptr< Agent > agent, core::ModelID model="")
 Create a new Handoff tool.

Detailed Description

Agent framework: multi-turn execution with tool calling and handoffs.

Function Documentation

◆ NewHandoff()

std::shared_ptr< Handoff > foresthub::agent::NewHandoff ( std::string name,
std::string description,
std::shared_ptr< Agent > agent,
core::ModelID model = "" )
inline

Create a new Handoff tool.

Parameters
nameTool name visible to the LLM.
descriptionHuman-readable description sent to the LLM.
agentTarget agent to transfer control to.
modelOptional model override for the target agent.
Returns
Configured Handoff tool ready for use with Agent::AddTool().