pub fn obs_context(
fallback_agent_id: Option<&str>,
) -> (String, String, String, String)Expand description
Build the observability context tuple (trace_id, run_id, agent_id, agent_name).
Resolution order for agent_id:
AGENT_BLOCK_AGENT_IDenvironment variable (non-empty)fallback_agent_idargument (non-None)- Process-scoped auto-generated UUID v4 (generated once per process lifetime).
Scope: one agent-block execution = one
agent_id. Conceptually coarser thanrun_id(per-call), though both may share the same value in simple invocations.