NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::program::JavaScriptCommand Class Referencefinal

Immutable host-owned JavaScript command. More...

#include <command.h>

Public Member Functions

json arguments () const
 Returns an owned copy, so callers cannot mutate the sealed command.
 
json to_json () const
 Canonical JSON representation with all required protocol fields.
 

Static Public Member Functions

static JavaScriptCommand from_json (const json &value)
 Strictly decode a canonical command object.
 
static JavaScriptCommand make (std::uint32_t protocol_version, JavaScriptCommandKind kind, std::uint32_t import_slot, std::string source_site, json arguments)
 Construct a host-owned command after applying the same validation.
 

Detailed Description

Immutable host-owned JavaScript command.

from_json is the strict interchange boundary used by compatibility and diagnostic code. The QuickJS bridge additionally requires the opaque sealed value created by an ng constructor before it will dispatch a command yielded by a generator.

Definition at line 62 of file command.h.


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