OpenAI API

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

File search tool call

object
idstringrequired

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.

Show Child Parameters
Example

File search tool call ranking options

object

The ranking options for the file search.

rankerstringrequired

The ranker used for the file search.

Allowed values:default_2024_08_21

score_thresholdnumberrequired

The score threshold for the file search. All values must be a floating point number between 0 and 1.

>= 0<= 1

Example