delegate
Starts a task on a peer agent by alias and message, returning task ID, state, and version; follow progress with get_delegated_task_updates.
Instructions
Start a task on a peer (see list_peers). Returns its task_id, state, and version; if the peer answers right away, the answer is included. Use get_delegated_task_updates to follow it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | the peer's alias from list_peers | |
| message | Yes | what you want the peer to do | |
| session_id | No | from start_session; omit for a standalone task | |
| time_limit_minutes | No | cancel the task if it isn't done by then (default 60) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| answer | No | set when the peer answered directly instead of working on a task | |
| task_id | Yes | ||
| version | Yes | pass as after_version to get_delegated_task_updates to wait for the next change |