Udostępnij za pośrednictwem


AgentBuilder.GetOpenAIAgentsAsync(String) Method

Definition

Retrieve defined agents from OpenAI services.

public static System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.SemanticKernel.Experimental.Agents.AgentReference>> GetOpenAIAgentsAsync (string apiKey);
static member GetOpenAIAgentsAsync : string -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.SemanticKernel.Experimental.Agents.AgentReference>>
Public Shared Function GetOpenAIAgentsAsync (apiKey As String) As Task(Of IList(Of AgentReference))

Parameters

apiKey
String

Returns

Remarks

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

Applies to