46namespace neograph::observability {
104 Span* current_parent() const noexcept;
108 std::unique_ptr<Impl> impl_;
118 Tracer&, std::
string, std::
string);
129 std::
string root_name = "graph.run",
130 std::
string node_span_prefix = "node.");
159 std::function<
Span*()> parent_lookup =
nullptr,
160 std::string span_name =
"llm.complete");
165 asio::awaitable<ChatCompletion>
171 asio::awaitable<ChatCompletion>
182 asio::awaitable<ChatCompletion>
189 std::unique_ptr<Impl> impl_;
NEOGRAPH_API export/import macro for shared-library builds.
Abstract base class for LLM providers.
Provider wrapper that emits OpenInference LLM spans.
asio::awaitable< ChatCompletion > complete_stream_async(const CompletionParams ¶ms, const StreamCallback &on_chunk) override
Async streaming completion.
std::string get_name() const override
Get the provider name (e.g., "openai", "claude").
ChatCompletion complete(const CompletionParams ¶ms) override
Perform a synchronous LLM completion.
asio::awaitable< ChatCompletion > invoke(const CompletionParams ¶ms, StreamCallback on_chunk) override
v1.0 single-dispatch override (Candidate 6 PR6).
asio::awaitable< ChatCompletion > complete_async(const CompletionParams ¶ms) override
Perform an LLM completion as a coroutine.
OpenInferenceProvider(std::shared_ptr< Provider > inner, Tracer &tracer, std::function< Span *()> parent_lookup=nullptr, std::string span_name="llm.complete")
ChatCompletion complete_stream(const CompletionParams ¶ms, const StreamCallback &on_chunk) override
Perform a streaming LLM completion.
RAII session returned by openinference_tracer.
graph::GraphStreamCallback cb
Engine event callback. Pass to engine.run_stream().
Opaque per-request span; lifetime is unique_ptr.
Adapter facade for a tracing backend.
Graph engine type definitions: channels, edges, nodes, events, and control flow.
std::function< void(const GraphEvent &)> GraphStreamCallback
Callback for receiving graph execution events.
Abstract LLM provider interface.
std::function< void(const std::string &chunk)> StreamCallback
Callback invoked per token during streaming completion.
LLM completion response including the message and token usage.
Parameters for an LLM completion request.
Dep-free abstract Tracer / Span interface.