academy.context¶
ActionContext
¶
ActionContext(
source_id: EntityId,
exchange_client: AgentExchangeClient[Any, Any],
)
AgentContext
dataclass
¶
AgentContext(
agent_id: AgentId[BehaviorT],
exchange_client: AgentExchangeClient[BehaviorT, Any],
shutdown_event: Event,
)
Agent runtime context.
agent_id
instance-attribute
¶
ID of the exchange as registered with the exchange.
exchange_client
instance-attribute
¶
exchange_client: AgentExchangeClient[BehaviorT, Any]
Client used by agent to communicate with the exchange.