From Outcome • AI Agent SDK
from_outcome: Create HandoffResult from AgentRunOutcome.
from_outcome
Method
</div>
This is a method of the HandoffResult class in the handoff module.
Create HandoffResult from AgentRunOutcome.
Signature
def from_outcome(outcome: AgentRunOutcome, target_agent: Optional[str], source_agent: Optional[str], handoff_depth: int) -> 'HandoffResult'Parameters
ParamField
AgentRunOutcomeNo description available.
ParamField
Optional[str]No description available.
ParamField
Optional[str]No description available.
ParamField
intNo description available.
Returns
ResponseField
'HandoffResult'The result of the operation.
Uses
clsoutcome.is_success
Source
View on GitHubpraisonaiagents/agent/handoff.py at line 349