Source code for autogen_core.base._message_context

from dataclasses import dataclass

from ._agent_id import AgentId
from ._cancellation_token import CancellationToken
from ._topic import TopicId


[docs] @dataclass class MessageContext: sender: AgentId | None topic_id: TopicId | None is_rpc: bool cancellation_token: CancellationToken