diff --git a/astrbot/core/astr_agent_context.py b/astrbot/core/astr_agent_context.py index 5eed5de8f..9c6451cc7 100644 --- a/astrbot/core/astr_agent_context.py +++ b/astrbot/core/astr_agent_context.py @@ -6,8 +6,10 @@ from astrbot.core.platform.astr_message_event import AstrMessageEvent from astrbot.core.star.context import Context -@dataclass(config={"arbitrary_types_allowed": True}) +@dataclass class AstrAgentContext: + __pydantic_config__ = {"arbitrary_types_allowed": True} + context: Context """The star context instance""" event: AstrMessageEvent