RunStepCodeInterpreterImageOutput Class

public final class RunStepCodeInterpreterImageOutput
extends RunStepCodeInterpreterToolCallOutput

A representation of an image output emitted by a code interpreter tool in response to a tool call by the model.

Method Summary

Modifier and Type Method and Description
static RunStepCodeInterpreterImageOutput fromJson(JsonReader jsonReader)

Reads an instance of RunStepCodeInterpreterImageOutput from the JsonReader.

RunStepCodeInterpreterImageReference getImage()

Get the image property: Referential information for the image associated with this output.

String getType()

Get the type property: The object type.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from RunStepCodeInterpreterToolCallOutput

Methods inherited from java.lang.Object

Method Details

fromJson

public static RunStepCodeInterpreterImageOutput fromJson(JsonReader jsonReader)

Reads an instance of RunStepCodeInterpreterImageOutput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RunStepCodeInterpreterImageOutput if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getImage

public RunStepCodeInterpreterImageReference getImage()

Get the image property: Referential information for the image associated with this output.

Returns:

the image value.

getType

public String getType()

Get the type property: The object type.

Overrides:

RunStepCodeInterpreterImageOutput.getType()

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RunStepCodeInterpreterImageOutput.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to