Represents a tool call and its response in a conversation turn.
ToolTurn
The tool call specification.
The response from the tool call.
const toolTurn: ToolTurn = { call: { id: '1', name: 'getWeather', arguments: { location: 'New York' } }, response: { content: 'Sunny, 72°F' }}; Copy
const toolTurn: ToolTurn = { call: { id: '1', name: 'getWeather', arguments: { location: 'New York' } }, response: { content: 'Sunny, 72°F' }};
Represents a tool call and its response in a conversation turn.
ToolTurn
Param: call
The tool call specification.
Param: response
The response from the tool call.
Example