|
NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
|
Abstract LLM provider interface. More...
#include <neograph/api.h>#include <neograph/types.h>#include <asio/awaitable.hpp>#include <functional>#include <memory>#include <stdexcept>#include <string>Go to the source code of this file.
Classes | |
| struct | neograph::CompletionParams |
| Parameters for an LLM completion request. More... | |
| class | neograph::Provider |
| Abstract base class for LLM providers. More... | |
| class | neograph::RateLimitError |
| Thrown by a Provider when an upstream API returned HTTP 429 (rate limit exceeded). More... | |
Typedefs | |
| using | neograph::StreamCallback = std::function< void(const std::string &chunk)> |
| Callback invoked per token during streaming completion. | |
Abstract LLM provider interface.
Defines the Provider base class that all LLM backends must implement. Supports both synchronous and streaming completions.
Definition in file provider.h.
| using neograph::StreamCallback = typedef std::function<void(const std::string& chunk)> |
Callback invoked per token during streaming completion.
| chunk | The token or text chunk received from the LLM. |
Definition at line 52 of file provider.h.