ProjectsAgentsModelFactory.AgentFromCodeOptions 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.AgentFromCodeOptions AgentFromCodeOptions(Azure.AI.Projects.Agents.AgentVersionFromCodeMetadata metadata = default, BinaryData code = default);
static member AgentFromCodeOptions : Azure.AI.Projects.Agents.AgentVersionFromCodeMetadata * BinaryData -> Azure.AI.Projects.Agents.AgentFromCodeOptions
Public Shared Function AgentFromCodeOptions (Optional metadata As AgentVersionFromCodeMetadata = Nothing, Optional code As BinaryData = Nothing) As AgentFromCodeOptions
Parameters
- metadata
- AgentVersionFromCodeMetadata
JSON metadata including description and hosted definition.
- code
- BinaryData
The code zip file (max 250 MB).
Returns
A new AgentFromCodeOptions instance for mocking.