|
forgeant docs-test-0
Build LLM-powered agents in C++
|
Namespaces | |
| namespace | detail |
| namespace | json |
Classes | |
| class | Agent |
| struct | AgentOptions |
| struct | AgentResult |
| class | AgentRunError |
| class | AnthropicProvider |
| struct | ChatRequest |
| class | Conversation |
| class | CurlHttpClient |
| class | HttpClient |
| struct | HttpResponse |
| class | Json |
| class | LlmProvider |
| struct | LlmResponse |
| struct | Message |
| class | OpenAiProvider |
| struct | ParamSchema |
| struct | ParamSchema< bool > |
| struct | ParamSchema< double > |
| struct | ParamSchema< int > |
| struct | ParamSchema< std::string > |
| struct | ProviderConfig |
| struct | RunOverrides |
| class | Schema |
| class | SchemaBuilder |
| struct | StructuredConfig |
| struct | TextBlock |
| struct | Tool |
| class | ToolRegistry |
| struct | ToolResultBlock |
| struct | ToolUseBlock |
| struct | ToolView |
| struct | Usage |
Typedefs | |
| using | HttpHeaders = std::unordered_map< std::string, std::string > |
| using | StreamCallback = std::function< bool(std::string_view)> |
| using | ContentBlock = std::variant< TextBlock, ToolUseBlock, ToolResultBlock > |
Enumerations | |
| enum class | Role : std::uint8_t { system , user , assistant , tool } |
Functions | |
| Json | extract_json_from_response (const LlmResponse &response) |
| template<typename T > | |
| AgentResult< T > | structured (LlmProvider &provider, Conversation working, StructuredConfig config={}) |
| template<typename Params , typename Func > | |
| Tool | make_tool (std::string name, std::string description, Func &&func) |
| void | to_json (Json &j, const TextBlock &block) |
| void | from_json (const Json &j, TextBlock &block) |
| void | to_json (Json &j, const ToolUseBlock &block) |
| void | from_json (const Json &j, ToolUseBlock &block) |
| void | to_json (Json &j, const ToolResultBlock &block) |
| void | from_json (const Json &j, ToolResultBlock &block) |
| void | to_json (Json &j, const ContentBlock &block) |
| void | from_json (const Json &j, ContentBlock &block) |
| void | to_json (Json &j, const Conversation &conv) |
| void | from_json (const Json &j, Conversation &conv) |
| void | to_json (Json &j, const Message &msg) |
| void | from_json (const Json &j, Message &msg) |
| void | to_json (Json &j, Role role) |
| void | from_json (const Json &j, Role &role) |
| std::string_view | version_string () noexcept |
Variables | |
| constexpr int | VERSION_MAJOR = 0 |
| constexpr int | VERSION_MINOR = 2 |
| constexpr int | VERSION_PATCH = 0 |
| using forgeant::ContentBlock = typedef std::variant<TextBlock, ToolUseBlock, ToolResultBlock> |
| using forgeant::HttpHeaders = typedef std::unordered_map<std::string, std::string> |
| using forgeant::StreamCallback = typedef std::function<bool(std::string_view)> |
|
strong |
| Json forgeant::extract_json_from_response | ( | const LlmResponse & | response | ) |
| void forgeant::from_json | ( | const Json & | j, |
| ContentBlock & | block | ||
| ) |
| void forgeant::from_json | ( | const Json & | j, |
| Conversation & | conv | ||
| ) |
| void forgeant::from_json | ( | const Json & | j, |
| ToolResultBlock & | block | ||
| ) |
| void forgeant::from_json | ( | const Json & | j, |
| ToolUseBlock & | block | ||
| ) |
| Tool forgeant::make_tool | ( | std::string | name, |
| std::string | description, | ||
| Func && | func | ||
| ) |
| AgentResult< T > forgeant::structured | ( | LlmProvider & | provider, |
| Conversation | working, | ||
| StructuredConfig | config = {} |
||
| ) |
| void forgeant::to_json | ( | Json & | j, |
| const ContentBlock & | block | ||
| ) |
| void forgeant::to_json | ( | Json & | j, |
| const Conversation & | conv | ||
| ) |
| void forgeant::to_json | ( | Json & | j, |
| const ToolResultBlock & | block | ||
| ) |
| void forgeant::to_json | ( | Json & | j, |
| const ToolUseBlock & | block | ||
| ) |
|
noexcept |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |