forgeant docs-test-0
Build LLM-powered agents in C++
Loading...
Searching...
No Matches
Forgeant

Forgeant is a C++23 agent framework that provides tool use, structured output, and a ReAct-style agent loop across multiple LLM providers — all without leaving C++.

Quick example

auto agent = forgeant::Agent::create("anthropic", {
.api_key = "sk-...",
.model = "claude-sonnet-4-20250514",
});
auto result = agent->run("What is the capital of France?");
std::cout << result.output << std::endl;
static std::unique_ptr< Agent > create(const std::string &provider, const AgentOptions &options)

Where to look

Source and issues

Forgeant is open source under the MIT license. Development happens at github.com/Jimdrews/forgeant.