Session
autogen.beta.network.client.session.Session #
Per-participant handle for a session.
Constructed by AgentClient.open(...) / hydrated when an EV_SESSION_OPENED lands. The metadata attribute is a snapshot — call :meth:info to refresh from the hub.
Source code in autogen/beta/network/client/session.py
send async #
Post an envelope into this session.
audience=None broadcasts within the session (all participants except sender). content is the substantive body for EV_TEXT envelopes; for non-text events pass event_data and event_type instead. depth overrides the default 0 so callers (e.g. delegate) can stamp the delegation hop count for Rule.limits.delegation_depth enforcement.
Source code in autogen/beta/network/client/session.py
info async #
Re-fetch metadata from the hub (refreshes cached state).
close async #
Close the session. Auto-cascades expiry to non-terminal tasks.