AgentBuilder.GetOpenAIAgentsAsync(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 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)/