HandoffResult
Defined in the handoff module.Rust AI Agent SDK Result of a handoff operation.
Fields
| Name | Type | Description |
|---|---|---|
success | bool | Whether the handoff succeeded |
response | Option<String> | Response from target agent |
target_agent | Option<String> | Name of the target agent |
source_agent | Option<String> | Name of the source agent |
duration_seconds | f64 | Duration of the handoff in seconds |
error | Option<String> | Error message if failed |
handoff_depth | usize | Handoff depth at completion |
Methods
success
| Name | Type |
|---|---|
response | impl Into<String> |
failure
| Name | Type |
|---|---|
error | impl Into<String> |
with_target
| Name | Type |
|---|---|
agent | impl Into<String> |
with_source
| Name | Type |
|---|---|
agent | impl Into<String> |
with_duration
| Name | Type |
|---|---|
seconds | f64 |
with_depth
| Name | Type |
|---|---|
depth | usize |
Source
View on GitHub
praisonai/src/handoff/mod.rs at line 292
