SubAgentResult#

Build extensions, choose hooks, and manage request-scoped state. See the guide.

class zett_agent.extensions.subagent.SubAgentResult(*, session_id, parent_session_id, subagent_type, content, stop=None)[源代码]#

Final report and durable child-session identity returned to the parent.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

参数:
  • session_id (str)

  • parent_session_id (str)

  • subagent_type (str)

  • content (str)

  • stop (StopInfo | None)

Fields#

session_id (required)

New child session created for this task

parent_session_id (required)

Parent session that delegated this task

subagent_type (required)

Selected subagent definition

content (required)

Subagent's final report for the parent agent

stop (optional)

Why the subagent stopped early; absent when it finished normally. If present, the report may be missing or partial.