Lingua

ProjectAgentSession Class

Definition

An agent session providing a long-lived compute sandbox for hosted agent invocations.

public class ProjectAgentSession : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.Agents.ProjectAgentSession>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.Agents.ProjectAgentSession>
type ProjectAgentSession = class
    interface IJsonModel<ProjectAgentSession>
    interface IPersistableModel<ProjectAgentSession>
Public Class ProjectAgentSession
Implements IJsonModel(Of ProjectAgentSession), IPersistableModel(Of ProjectAgentSession)
Inheritance
ProjectAgentSession
Implements

Properties

Name Description
AgentSessionId

The session identifier.

CreatedOn

The Unix timestamp (in seconds) when the session was created.

ExpiresOn

The Unix timestamp (in seconds) when the session expires (rolling, 30 days from last activity).

LastAccessedOn

The Unix timestamp (in seconds) when the session was last accessed.

Status

The current status of the session.

StoppedOn

The Unix timestamp (in seconds) when the session sandbox was last observed to stop or go idle. Present only after the session has gone idle at least once, used for accurate idle-billing reconciliation.

VersionIndicator

The version indicator determining which agent version backs this session.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Operators

Name Description
Explicit(ClientResult to ProjectAgentSession)

Explicit Interface Implementations

Name Description
IJsonModel<ProjectAgentSession>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<ProjectAgentSession>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<ProjectAgentSession>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<ProjectAgentSession>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<ProjectAgentSession>.Write(ModelReaderWriterOptions)

Applies to