FoundryStateStore.GetItemAsync 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.
Overloads
| Name | Description |
|---|---|
| GetItemAsync(String, String, CancellationToken) |
Fetches one item by key. |
| GetItemAsync(String, CancellationToken) |
Fetches one item by key. |
GetItemAsync(String, String, CancellationToken)
- Source:
- FoundryStateStore.cs
Fetches one item by key.
public virtual System.Threading.Tasks.Task<Azure.AI.AgentServer.Core.Storage.StateStoreItem?> GetItemAsync(string key, string? callId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetItemAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.AgentServer.Core.Storage.StateStoreItem>
override this.GetItemAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.AgentServer.Core.Storage.StateStoreItem>
Public Overridable Function GetItemAsync (key As String, callId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of StateStoreItem)
Parameters
- key
- String
The item key.
- callId
- String
The Foundry call ID to forward, or null to use the current request context.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
The item, or null if it does not exist.
Applies to
GetItemAsync(String, CancellationToken)
- Source:
- FoundryStateStore.cs
Fetches one item by key.
public virtual System.Threading.Tasks.Task<Azure.AI.AgentServer.Core.Storage.StateStoreItem?> GetItemAsync(string key, System.Threading.CancellationToken cancellationToken = default);
abstract member GetItemAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.AgentServer.Core.Storage.StateStoreItem>
override this.GetItemAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.AgentServer.Core.Storage.StateStoreItem>
Public Overridable Function GetItemAsync (key As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of StateStoreItem)
Parameters
- key
- String
The item key.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
The item, or null if it does not exist.