AgentBuilder.GetAzureOpenAIAgentsAsync(String, String, String) 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.
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)/