ProjectsAgentsModelFactory.AgentIdentifier(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.
Identifies the registered Foundry agent to optimize (request-only). Skills, tools, and system_prompt are specified in options.optimization_config.
public static Azure.AI.Projects.Agents.AgentIdentifier AgentIdentifier(string agentName = default, string agentVersion = default);
static member AgentIdentifier : string * string -> Azure.AI.Projects.Agents.AgentIdentifier
Public Shared Function AgentIdentifier (Optional agentName As String = Nothing, Optional agentVersion As String = Nothing) As AgentIdentifier
Parameters
- agentName
- String
Registered Foundry agent name (required).
- agentVersion
- String
Pinned agent version. Defaults to latest if omitted.
Returns
A new AgentIdentifier instance for mocking.