Skip to content

symfonic.agent.facade_instrumentation

facade_instrumentation

Read-only attestation of the capability that owns an Agent event sink.

AgentInstrumentationMixin

Expose the actual folded sink owner to trusted transport adapters.

authorized_effects property

authorized_effects: frozenset[str]

Effect families this Agent's invocations are granted (CORE-194 resume check).

event_sink_owner property

event_sink_owner: Any | None

Capability whose sink this Agent runs, or None when there is none.

stream_usage_declared property

stream_usage_declared: bool

Whether the composed provider explicitly promises streamed usage.

event_sink_bindings

event_sink_bindings(capabilities: Any) -> tuple[tuple[Any, Any], ...]

Keep each event sink paired with the capability that supplied it.

Source code in src/symfonic/agent/facade_instrumentation.py
def event_sink_bindings(capabilities: Any) -> tuple[tuple[Any, Any], ...]:
    """Keep each event sink paired with the capability that supplied it."""
    return tuple(
        (capability, sink)
        for capability in capabilities
        if (sink := getattr(capability, "event_sink", None)) is not None
    )