Announce Completion • AI Agent SDK

announce_completion: Announce sub-agent completion via event bus (sync version).

announce_completion

Method

</div>

This is a method of the AgentTeam class in the agents module.

Announce sub-agent completion via event bus (sync version).

Note: For async contexts, use aannounce_completion() to avoid blocking the event loop.

Signature

python
def announce_completion(agent_id: str, task_id: str, result: Any, success: bool, error: Optional[str], metadata: Optional[Dict[str, Any]]) -> None

Parameters

ParamField str

No description available.

ParamField str

No description available.

ParamField Any

No description available.

ParamField bool

No description available.

ParamField Optional[str]

No description available.

ParamField Optional

No description available.

Uses

  • SubAgentCompletionEvent
  • publish
  • logger.debug

Used By

Source

View on GitHub

praisonaiagents/agents/agents.py at line 4555