Skip to main content

Module adapter

Module adapter 

Source
Expand description

In-process sink for callback-driven agents — the integration contract as a typed interface. YoAgentStateAdapter routes the entity-creating callbacks (run start/finish, model/tool calls, tool failures) through the paired record_* helpers and records the non-entity-creating finish events (model.finished, tool.finished) raw, auto-chained and correlated to the open run — so a log emitted through the sink is GASP-conformant: runs open/close (with validation), tool and model calls become paired nodes chained to the run, and failures carry ids and pairs.

Contract: callbacks between on_run_started and on_run_finished belong to that run; calling other callbacks with no run open produces events that root at raw kinds (invalid roots under conformance check 5) and is non-conformant. Known limitations: the run structs’ metadata fields are not persisted by the paired helpers, and the *_finished callbacks do not update the call nodes’ output_summary/success — call outcomes live in the raw events, not the folded graph.

Structs§

YoAgentModelCalled
YoAgentModelFinished
YoAgentRunFinished
YoAgentRunStarted
YoAgentStateAdapter
YoAgentToolCalled
YoAgentToolFinished

Traits§

YoAgentStateSink