AS AgentScopeAPI 手册 / API Reference
类class agentscope.state

TaskContext

class TaskContext(BaseModel)
源码Source agentscope/state/_state.py:175–179

任务上下文。位于 agentscope.state 包。

The task context. Declared in agentscope.state.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
taskslist[Task]
任务字段。
Field(default_factory=lambda: [])

属性详情Attribute Detail

tasks

list[Task] = Field(default_factory=lambda: [])

任务字段。声明为 list[Task]。

The tasks field.

源码Source agentscope/state/_state.py:178
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.