CreateAgentVersionFromCodeContent Class

  • java.lang.Object
    • com.azure.ai.agents.models.CreateAgentVersionFromCodeContent

public final class CreateAgentVersionFromCodeContent

Multipart request body for updating or versioning a code-based agent (POST /agents/{name} and POST /agents/{name}/versions).

Constructor Summary

Constructor Description
CreateAgentVersionFromCodeContent(CreateAgentVersionFromCodeMetadata metadata, CodeFileDetails code)

Creates an instance of CreateAgentVersionFromCodeContent class.

Method Summary

Modifier and Type Method and Description
CodeFileDetails getCode()

Get the code property: The code zip file (max 250 MB).

CreateAgentVersionFromCodeMetadata getMetadata()

Get the metadata property: JSON metadata including description and hosted definition.

Methods inherited from java.lang.Object

Constructor Details

CreateAgentVersionFromCodeContent

public CreateAgentVersionFromCodeContent(CreateAgentVersionFromCodeMetadata metadata, CodeFileDetails code)

Creates an instance of CreateAgentVersionFromCodeContent class.

Parameters:

metadata - the metadata value to set.
code - the code value to set.

Method Details

getCode

public CodeFileDetails getCode()

Get the code property: The code zip file (max 250 MB).

Returns:

the code value.

getMetadata

public CreateAgentVersionFromCodeMetadata getMetadata()

Get the metadata property: JSON metadata including description and hosted definition.

Returns:

the metadata value.

Applies to