Udostępnij za pośrednictwem


AgentBuilder.GetAzureOpenAIAgentsAsync(String, String, String) Method

Definition

Retrieve defined agents from an Azure OpenAI endpoint.

public static System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.SemanticKernel.Experimental.Agents.AgentReference>> GetAzureOpenAIAgentsAsync (string endpoint, string apiKey, string? version = default);
static member GetAzureOpenAIAgentsAsync : string * string * string -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.SemanticKernel.Experimental.Agents.AgentReference>>
Public Shared Function GetAzureOpenAIAgentsAsync (endpoint As String, apiKey As String, Optional version As String = Nothing) As Task(Of IList(Of AgentReference))

Parameters

endpoint
String
apiKey
String
version
String

Returns

Remarks

The Id can be used to retrieve a hydrated agent via GetAsync(String, CancellationToken)/

Applies to