CreateAgentFromCodeOptions Class
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 class CreateAgentFromCodeOptions : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.Agents.CreateAgentFromCodeOptions>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.Agents.CreateAgentFromCodeOptions>
type CreateAgentFromCodeOptions = class
interface IJsonModel<CreateAgentFromCodeOptions>
interface IPersistableModel<CreateAgentFromCodeOptions>
Public Class CreateAgentFromCodeOptions
Implements IJsonModel(Of CreateAgentFromCodeOptions), IPersistableModel(Of CreateAgentFromCodeOptions)
- Inheritance
-
CreateAgentFromCodeOptions
- Implements
Constructors
| Name | Description |
|---|---|
| CreateAgentFromCodeOptions(CreateAgentVersionFromCodeMetadata, BinaryData) |
Initializes a new instance of CreateAgentFromCodeOptions. |
Properties
| Name | Description |
|---|---|
| Code |
The code zip file (max 250 MB). To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). Examples:
|
| Metadata |
JSON metadata including description and hosted definition. |
Methods
Operators
| Name | Description |
|---|---|
| Implicit(CreateAgentFromCodeOptions to BinaryContent) | |