Represents a tool call paired with its result. Useful for rendering tool invocations and their outputs together.
ToolCallWithResultThe AI message that initiated this tool call.
The tool call from the AI message.
Index of this tool call within the AI message's tool_calls array.