The caller's authorization/context, passed per entry-verb call (send_message/3,
resolve/4) and threaded into :server tool callbacks via Agentix.Turn.
A scope is per-call and never persisted — it reflects who is acting now, not conversation state. Two flavours:
- a user scope — carries
current_userand arbitraryassigns; - a system scope (
system/0) —system?: true, the documented scope for timeout-driven resolutions and other server-initiated actions. A system scope may not carry acurrent_user.
Built with new/1 (rejects unknown keys).
Summary
Functions
Builds a scope from attrs. Raises ArgumentError on unknown keys, if assigns
is not a map, or if a system scope carries a current_user.
The documented system scope (e.g. timeout-driven resolutions).
Types
Functions
Builds a scope from attrs. Raises ArgumentError on unknown keys, if assigns
is not a map, or if a system scope carries a current_user.
@spec system() :: t()
The documented system scope (e.g. timeout-driven resolutions).