AgentFromCodeOptions Class

Definition

Multipart request body for creating a new code-based agent (POST /agents). Inherits from CreateAgentVersionFromCodeContent for future extensibility.

public class AgentFromCodeOptions
type AgentFromCodeOptions = class
Public Class AgentFromCodeOptions
Inheritance
AgentFromCodeOptions

Constructors

Name Description
AgentFromCodeOptions(AgentVersionFromCodeMetadata, BinaryData)

Initializes a new instance of AgentFromCodeOptions.

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:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

Metadata

JSON metadata including description and hosted definition.

Applies to