ProjectsAgentsModelFactory.ProjectAgentSession Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An agent session providing a long-lived compute sandbox for hosted agent invocations.
public static Azure.AI.Projects.Agents.ProjectAgentSession ProjectAgentSession(string agentSessionId = default, Azure.AI.Projects.Agents.VersionIndicator versionIndicator = default, Azure.AI.Projects.Agents.AgentSessionStatus status = default, DateTimeOffset createdAt = default, DateTimeOffset lastAccessedAt = default, DateTimeOffset expiresAt = default);
static member ProjectAgentSession : string * Azure.AI.Projects.Agents.VersionIndicator * Azure.AI.Projects.Agents.AgentSessionStatus * DateTimeOffset * DateTimeOffset * DateTimeOffset -> Azure.AI.Projects.Agents.ProjectAgentSession
Public Shared Function ProjectAgentSession (Optional agentSessionId As String = Nothing, Optional versionIndicator As VersionIndicator = Nothing, Optional status As AgentSessionStatus = Nothing, Optional createdAt As DateTimeOffset = Nothing, Optional lastAccessedAt As DateTimeOffset = Nothing, Optional expiresAt As DateTimeOffset = Nothing) As ProjectAgentSession
Parameters
- agentSessionId
- String
The session identifier.
- versionIndicator
- VersionIndicator
The version indicator determining which agent version backs this session.
- status
- AgentSessionStatus
The current status of the session.
- createdAt
- DateTimeOffset
The Unix timestamp (in seconds) when the session was created.
- lastAccessedAt
- DateTimeOffset
The Unix timestamp (in seconds) when the session was last accessed.
- expiresAt
- DateTimeOffset
The Unix timestamp (in seconds) when the session expires (rolling, 30 days from last activity).
Returns
A new ProjectAgentSession instance for mocking.