Table of Contents

Class CodeInterpreterToolCall

Namespace
OpenAI.Responses
Assembly
OpenAI-DotNet.dll

A tool call to run code.

public sealed class CodeInterpreterToolCall : BaseResponse, IResponseItem, IServerSentEvent, IListItem
Inheritance
CodeInterpreterToolCall
Implements
Inherited Members

Properties

Code

The code to run.

[JsonInclude]
[JsonPropertyName("code")]
public string Code { get; }

Property Value

string

ContainerId

The ID of the container used to run the code.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("container_id")]
public string ContainerId { get; }

Property Value

string

Id

The unique ID of this response item.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("id")]
public string Id { get; }

Property Value

string

Object

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("object")]
public string Object { get; }

Property Value

string

Results

The results of the code interpreter tool call.

[JsonInclude]
[JsonPropertyName("results")]
public IReadOnlyList<CodeInterpreterOutputs> Results { get; }

Property Value

IReadOnlyList<CodeInterpreterOutputs>

Status

The status of the response item.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("status")]
public ResponseStatus Status { get; }

Property Value

ResponseStatus

Type

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("type")]
public ResponseItemType Type { get; }

Property Value

ResponseItemType