Class CodeInterpreterToolCall
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
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
Id
The unique ID of this response item.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("id")]
public string Id { get; }
Property Value
Object
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("object")]
public string Object { get; }
Property Value
Results
The results of the code interpreter tool call.
[JsonInclude]
[JsonPropertyName("results")]
public IReadOnlyList<CodeInterpreterOutputs> Results { get; }
Property Value
Status
The status of the response item.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("status")]
public ResponseStatus Status { get; }
Property Value
Type
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("type")]
public ResponseItemType Type { get; }