Maps our messages to the Chat Completions format. tool_call parts become assistant.tool_calls, tool_result parts become tool messages, and reasoning is dropped: it is never sent back.
tool_call
assistant.tool_calls
tool_result
tool
Maps our messages to the Chat Completions format.
tool_callparts becomeassistant.tool_calls,tool_resultparts becometoolmessages, and reasoning is dropped: it is never sent back.