NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::program::ProgramCoreProviderCallContext Struct Reference

Exact Program operation requesting a host-owned Core provider broker. More...

#include <core_provider_call.h>

Public Attributes

std::function< void(ProgramCoreProviderCallDiagnostic)> diagnostic
 #543: where a broker reports a ProgramCoreProviderCallDiagnostic.
 
std::shared_ptr< UsageAccumulator > journaled_usage
 Set only when the runtime settles an attempt that never runs again (a run its expired execution lease ends).
 
std::shared_ptr< ProgramMonetaryAccount > monetary_account
 The attempt's monetary account.
 
std::optional< ProgramCoreProviderCallReplaySource > replay_source
 #405: set on a fork for the calls it repeats; see ProgramCoreProviderCallReplaySource.
 

Detailed Description

Exact Program operation requesting a host-owned Core provider broker.

Definition at line 62 of file core_provider_call.h.

Member Data Documentation

◆ diagnostic

std::function<void(ProgramCoreProviderCallDiagnostic)> neograph::program::ProgramCoreProviderCallContext::diagnostic

#543: where a broker reports a ProgramCoreProviderCallDiagnostic.

The runtime sets it for every Core provider call; a broker may ignore it. It may be called from any thread, while the broker's call runs.

Definition at line 82 of file core_provider_call.h.

◆ journaled_usage

std::shared_ptr<UsageAccumulator> neograph::program::ProgramCoreProviderCallContext::journaled_usage

Set only when the runtime settles an attempt that never runs again (a run its expired execution lease ends).

Brokers that journal calls charge it, when they are bound, the tokens of the calls this attempt journaled in the operation, as they charge its monetary account.

Definition at line 75 of file core_provider_call.h.

◆ monetary_account

std::shared_ptr<ProgramMonetaryAccount> neograph::program::ProgramCoreProviderCallContext::monetary_account

The attempt's monetary account.

Null for recorded replay, which never spends. Brokers that price calls charge it; others may ignore it.

Definition at line 70 of file core_provider_call.h.

◆ replay_source

std::optional<ProgramCoreProviderCallReplaySource> neograph::program::ProgramCoreProviderCallContext::replay_source

#405: set on a fork for the calls it repeats; see ProgramCoreProviderCallReplaySource.

Brokers that do not journal ignore it.

Definition at line 78 of file core_provider_call.h.


The documentation for this struct was generated from the following file: