Skip to content

SubagentCompletedData

A subagent answered, with what it did and cost along the way: its events stay out of the log, so these are the whole of it.

Property Type Description
agent? object -
agent.id? string -
agent.name? string -
message Message -
duration_ms number -
tool_calls? number How many tool calls it made.
usage? Usage -
cost? Cost | null What its model calls and tools cost, together, which counts as the calling tool's; null where nothing priced them.