OpenAI API

Message creation

object

Details of the message creation by the run step.

typestringrequired

Always message_creation.

Allowed values:message_creation

message_creationobject
Show Child Parameters
Example

Code interpreter tool call

object

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

indexintegerrequired

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

idstring

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_interpreterobject

The Code Interpreter tool call definition.

Show Child Parameters
Example

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