SessionFileWriteResult Class

  • java.lang.Object
    • com.azure.ai.agents.models.SessionFileWriteResult

Implements

public final class SessionFileWriteResult
implements JsonSerializable<SessionFileWriteResult>

Response from uploading a file to a session sandbox.

Method Summary

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

Reads an instance of SessionFileWriteResult from the JsonReader.

long getBytesWritten()

Get the bytesWritten property: Number of bytes written.

String getPath()

Get the path property: The path where the file was written, relative to the session home directory.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static SessionFileWriteResult fromJson(JsonReader jsonReader)

Reads an instance of SessionFileWriteResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getBytesWritten

public long getBytesWritten()

Get the bytesWritten property: Number of bytes written.

Returns:

the bytesWritten value.

getPath

public String getPath()

Get the path property: The path where the file was written, relative to the session home directory.

Returns:

the path value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to