{"version":"2.1.280","anchor":"sdk-tool-result-streaming-can-attach-agentiddurationms-for","canonical_anchor":"sdk-tool-result-streaming-can-attach-agentiddurationms-for","heading":"SDK tool-result streaming can attach agentId\/durationMs for Task-like tools","tier":"internal","area":"SDK","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280\/e\/sdk-tool-result-streaming-can-attach-agentiddurationms-for","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280","markdown":"### SDK tool-result streaming can attach agentId\/durationMs for Task-like tools\n\nStreamed tool results for the Task tool can now include an agent ID and duration\n\n**What**\n\nWhen tool-result events are streamed through the SDK for the Task tool (used to launch subagents) and one other tool, they can now be enriched with an `agentId` (looked up via a new mapper) and a `durationMs` value pulled from the tool result, when those are present.\n\n**Why**\n\nThis lets SDK consumers see which agent produced a streamed result and how long it took, useful for tracking subagent work as it streams in.\n\n- Area: SDK\n- Names: `agentId`, `durationMs`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5"}