OpenAI API

Code interpreter image output

object
indexintegerrequired

The index of the output in the outputs array.

typestringrequired

Always image.

Allowed values:image

imageobject
Show Child Parameters
Example

Code interpreter log output

object

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

indexintegerrequired

The index of the output in the outputs array.

typestringrequired

Always logs.

Allowed values:logs

logsstring

The text output from the Code Interpreter tool call.

Example

File search tool call

object
indexintegerrequired

The index of the tool call in the tool calls array.

idstring

The ID of the tool call object.

typestringrequired

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

Allowed values:file_search

file_searchobjectrequired

For now, this is always going to be an empty object.

Example

Function tool call

object
indexintegerrequired

The index of the tool call in the tool calls array.

idstring

The ID of the tool call object.

typestringrequired

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

Allowed values:function

functionobject

The definition of the function that was called.

Show Child Parameters
Example

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