OpenAI API

Tool calls

object

Details of the tool call.

typestringrequired

Always tool_calls.

Allowed values:tool_calls

tool_callsOne Of
array

An array of tool calls the run step was involved in. These can be associated with one of three types of tools: code_interpreter, file_search, or function.

Code interpreter tool callobject

Details of the Code Interpreter tool call the run step was involved in.

Show Child Parameters
Example

Message creation

object

Details of the message creation by the run step.

typestringrequired

Always message_creation.

Allowed values:message_creation

message_creationobjectrequired
Show Child Parameters
Example

Code Interpreter tool call

object

Details of the Code Interpreter tool call the run step was involved in.

idstringrequired

The ID of the tool call.

typestringrequired

The type of tool call. This is always going to be code_interpreter for this type of tool call.

Allowed values:code_interpreter

code_interpreterobjectrequired

The Code Interpreter tool call definition.

Show Child Parameters
Example

Code Interpreter image output

object
typestringrequired

Always image.

Allowed values:image

imageobjectrequired
Show Child Parameters
Example

Code Interpreter log output

object

Text output from the Code Interpreter tool call as part of a run step.

typestringrequired

Always logs.

Allowed values:logs

logsstringrequired

The text output from the Code Interpreter tool call.

Example