CreateAgentVersionInput Class
- java.
lang. Object - com.
azure. ai. agents. models. CreateAgentVersionInput
- com.
Implements
public final class CreateAgentVersionInput
implements JsonSerializable<CreateAgentVersionInput>
The CreateAgentVersionInput model.
Constructor Summary
| Constructor | Description |
|---|---|
| CreateAgentVersionInput(AgentDefinition definition) |
Creates an instance of Create |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Create |
fromJson(JsonReader jsonReader)
Reads an instance of Create |
|
Agent |
getBlueprintReference()
Get the blueprint |
|
Agent |
getDefinition()
Get the definition property: The agent definition. |
| String |
getDescription()
Get the description property: A human-readable description of the agent. |
| Map<String,String> |
getMetadata()
Get the metadata property: Set of 16 key-value pairs that can be attached to an object. |
| Boolean |
isDraft()
Get the draft property: (Preview) Whether this agent version is a draft (candidate) rather than a release. |
|
Create |
setBlueprintReference(AgentBlueprintReference blueprintReference)
Set the blueprint |
|
Create |
setDescription(String description)
Set the description property: A human-readable description of the agent. |
|
Create |
setDraft(Boolean draft)
Set the draft property: (Preview) Whether this agent version is a draft (candidate) rather than a release. |
|
Create |
setMetadata(Map<String,String> metadata)
Set the metadata property: Set of 16 key-value pairs that can be attached to an object. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
CreateAgentVersionInput
public CreateAgentVersionInput(AgentDefinition definition)
Creates an instance of CreateAgentVersionInput class.
Parameters:
Method Details
fromJson
public static CreateAgentVersionInput fromJson(JsonReader jsonReader)
Reads an instance of CreateAgentVersionInput from the JsonReader.
Parameters:
Returns:
Throws:
getBlueprintReference
public AgentBlueprintReference getBlueprintReference()
Get the blueprintReference property: The blueprint reference for the agent.
Returns:
getDefinition
public AgentDefinition getDefinition()
Get the definition property: The agent definition. This can be a workflow, hosted agent, or a simple agent definition.
Returns:
getDescription
public String getDescription()
Get the description property: A human-readable description of the agent.
Returns:
getMetadata
public Map<String,String> getMetadata()
Get the metadata property: Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
Returns:
isDraft
public Boolean isDraft()
Get the draft property: (Preview) Whether this agent version is a draft (candidate) rather than a release. The service defaults to `false` if a value is not specified by the caller. Draft versions are recorded but excluded from default 'latest' resolution and are not auto-promoted.
Returns:
setBlueprintReference
public CreateAgentVersionInput setBlueprintReference(AgentBlueprintReference blueprintReference)
Set the blueprintReference property: The blueprint reference for the agent.
Parameters:
Returns:
setDescription
public CreateAgentVersionInput setDescription(String description)
Set the description property: A human-readable description of the agent.
Parameters:
Returns:
setDraft
public CreateAgentVersionInput setDraft(Boolean draft)
Set the draft property: (Preview) Whether this agent version is a draft (candidate) rather than a release. The service defaults to `false` if a value is not specified by the caller. Draft versions are recorded but excluded from default 'latest' resolution and are not auto-promoted.
Parameters:
Returns:
setMetadata
public CreateAgentVersionInput setMetadata(Map<String,String> metadata)
Set the metadata property: Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
Parameters:
Returns: