ProjectConversationsClient.GetProjectConversationsAsync 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.
Asynchronously gets the project conversations.
public virtual System.ClientModel.AsyncCollectionResult<Azure.AI.Extensions.OpenAI.ProjectConversation> GetProjectConversationsAsync(Azure.AI.Extensions.OpenAI.AgentReference agent = default, int? limit = default, string order = default, string after = default, string before = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetProjectConversationsAsync : Azure.AI.Extensions.OpenAI.AgentReference * Nullable<int> * string * string * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<Azure.AI.Extensions.OpenAI.ProjectConversation>
override this.GetProjectConversationsAsync : Azure.AI.Extensions.OpenAI.AgentReference * Nullable<int> * string * string * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<Azure.AI.Extensions.OpenAI.ProjectConversation>
Public Overridable Function GetProjectConversationsAsync (Optional agent As AgentReference = Nothing, Optional limit As Nullable(Of Integer) = Nothing, Optional order As String = Nothing, Optional after As String = Nothing, Optional before As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncCollectionResult(Of ProjectConversation)
Parameters
- agent
- AgentReference
If provided, retrieves only conversations associated with the referenced agent.
The maximum number of objects to return. The value can range between 1 and 100, and the default is 20.
- order
- String
The sort order by the created_at timestamp of the objects. Use asc for ascending order and desc
for descending order.
- after
- String
A pagination cursor. after is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 objects ending with obj_foo, your
subsequent call can include after=obj_foo to fetch the next page of the list.
- before
- String
A pagination cursor. before is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 objects ending with obj_foo, your
subsequent call can include before=obj_foo to fetch the previous page of the list.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
The project conversations.
Exceptions
The service returned a non-success status code.