|
|
пре 2 месеци | |
|---|---|---|
| .. | ||
| src | пре 2 месеци | |
| tests | пре 2 месеци | |
| README.md | пре 2 месеци | |
| package.json | пре 2 месеци | |
| tsconfig.json | пре 2 месеци | |
The globally named send_message tool: a thin adapter over ctx.subagentControl.sendMessage(). Provider-bound @deepseek-ai/dsh-tool-subagent instances register distinct delegation tools per transport; this separately loaded package registers the one shared control tool, so multiple delegation tools never register duplicate global controls.
The tool performs no lifecycle routing. The control service decides between live delivery to the running activation's existing Task and a fresh Task that cold-resumes the durable child; the tool renders which route was taken and the relevant Task id. A control-service throw becomes an errored tool result stating the message was not delivered.
The generated send_message schema: subagent_id and message, with delivery-or-continue semantics and the task_output collection path described.
Fixed schema cost per parent request.
Prefix-stable; the schema does not change at runtime.
message delivered to running task <taskId> when the message joined the running activation, or message started task <taskId> continuing subagent <subagent_id> when it cold-resumed the child. Failures are errored results whose message states the message was not delivered (unknown or foreign child, ownership conflict, settlement race, no live-delivery capability).
One short acknowledgement per call; the child's response enters parent history only when collected through task_output or injected by the task completion notice.
Append-only; newly visible content follows the reusable request prefix and does not invalidate existing KV-cache entries.