ProjectsAgentsModelFactory.CreateAgentFromCodeOptions 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.
Multipart request body for creating a new code-based agent (POST /agents). Inherits from CreateAgentVersionFromCodeContent for future extensibility.
public static Azure.AI.Projects.Agents.CreateAgentFromCodeOptions CreateAgentFromCodeOptions(Azure.AI.Projects.Agents.CreateAgentVersionFromCodeMetadata metadata = default, BinaryData code = default);
static member CreateAgentFromCodeOptions : Azure.AI.Projects.Agents.CreateAgentVersionFromCodeMetadata * BinaryData -> Azure.AI.Projects.Agents.CreateAgentFromCodeOptions
Public Shared Function CreateAgentFromCodeOptions (Optional metadata As CreateAgentVersionFromCodeMetadata = Nothing, Optional code As BinaryData = Nothing) As CreateAgentFromCodeOptions
Parameters
- metadata
- CreateAgentVersionFromCodeMetadata
JSON metadata including description and hosted definition.
- code
- BinaryData
The code zip file (max 250 MB).
Returns
A new CreateAgentFromCodeOptions instance for mocking.