RunStepCodeInterpreterLogOutput Class

public final class RunStepCodeInterpreterLogOutput
extends RunStepCodeInterpreterToolCallOutput

A representation of a log 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 RunStepCodeInterpreterLogOutput fromJson(JsonReader jsonReader)

Reads an instance of RunStepCodeInterpreterLogOutput from the JsonReader.

String getLogs()

Get the logs property: The serialized log output emitted by the code interpreter.

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 RunStepCodeInterpreterLogOutput fromJson(JsonReader jsonReader)

Reads an instance of RunStepCodeInterpreterLogOutput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RunStepCodeInterpreterLogOutput 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.

getLogs

public String getLogs()

Get the logs property: The serialized log output emitted by the code interpreter.

Returns:

the logs value.

getType

public String getType()

Get the type property: The object type.

Overrides:

RunStepCodeInterpreterLogOutput.getType()

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RunStepCodeInterpreterLogOutput.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to