subagent_report#

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

zett_agent.extensions.subagent.subagent_report(result)[source]#

Return a subagent’s report, with a leading notice when it did not finish.

A subagent that was refused, cut off, or interrupted still returns a message, and its text can be empty or partial. A parent model that is handed that text as “the report” would treat it as a finished answer, so the notice is part of what it reads.

Parameters:

result (AssistantMessage)

Return type:

str