MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / AstrAgentContext

Class AstrAgentContext

astrbot/core/astr_agent_context.py:10–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9@dataclass
10class AstrAgentContext:
11 __pydantic_config__ = {"arbitrary_types_allowed": True}
12
13 context: Context
14 """The star context instance"""
15 event: AstrMessageEvent
16 """The message event associated with the agent context."""
17 extra: dict[str, str] = Field(default_factory=dict)
18 """Customized extra data."""
19
20
21AgentContextWrapper = ContextWrapper[AstrAgentContext]

Callers 3

build_main_agentFunction · 0.90
tool_loop_agentMethod · 0.90
processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected