Updates the AI model associated with an agent version.
PATCH/api/v2/AgentVersion/:agentCode/:agentVersion/model
Updates the AI model associated with an agent version.
Request
Path Parameters
The code of the agent.
The version number of the agent.
Query Parameters
Use this param to override the culture of the response. Options: - en (default) - es
- application/json
- text/json
- application/*+json
Body
The AI model update request.
main
object
required
The model code associated with the AI model to be used by the agent. Required if Id is not provided.
The vendor associated with the AI model to be used by the agent. Required if Id is not provided.
parameters
object
Request DTO for configuring AI model execution parameters.
A float value between -2 and 2 that penalizes the likelihood of an agent reusing similar completions.
A JSON object that maps tokens to an associated bias value from -100 to 100.
The maximum number of tokens shared between the Prompt and the Output.
The maximum number of tokens that can be generated by the AI in the response.
A float value between -2 and 2 that penalizes the likelihood of an agent reusing phrases already present in the input.
The reasoning level of the agent's response (e.g., "low", "medium", "high").
Defines sequences of tokens upon which the agent should stop generating completions.
A float value between 0 and 2 that determines the randomness of the agent's responses.
A float value that specifies the Top-K sampling parameter.
A float value between 0 and 1 that specifies the probability cutoff for generating the response (nucleus sampling).
Defines if the agent should use Vision capabilities.
Defines if the agent should use Plugin Emulator instead of native tools.
Defines if the agent should use extended thinking (Alibaba Cloud and DeepSeek only).
Body
The AI model update request.
main
object
required
The model code associated with the AI model to be used by the agent. Required if Id is not provided.
The vendor associated with the AI model to be used by the agent. Required if Id is not provided.
parameters
object
Request DTO for configuring AI model execution parameters.
A float value between -2 and 2 that penalizes the likelihood of an agent reusing similar completions.
A JSON object that maps tokens to an associated bias value from -100 to 100.
The maximum number of tokens shared between the Prompt and the Output.
The maximum number of tokens that can be generated by the AI in the response.
A float value between -2 and 2 that penalizes the likelihood of an agent reusing phrases already present in the input.
The reasoning level of the agent's response (e.g., "low", "medium", "high").
Defines sequences of tokens upon which the agent should stop generating completions.
A float value between 0 and 2 that determines the randomness of the agent's responses.
A float value that specifies the Top-K sampling parameter.
A float value between 0 and 1 that specifies the probability cutoff for generating the response (nucleus sampling).
Defines if the agent should use Vision capabilities.
Defines if the agent should use Plugin Emulator instead of native tools.
Defines if the agent should use extended thinking (Alibaba Cloud and DeepSeek only).
Body
The AI model update request.
main
object
required
The model code associated with the AI model to be used by the agent. Required if Id is not provided.
The vendor associated with the AI model to be used by the agent. Required if Id is not provided.
parameters
object
Request DTO for configuring AI model execution parameters.
A float value between -2 and 2 that penalizes the likelihood of an agent reusing similar completions.
A JSON object that maps tokens to an associated bias value from -100 to 100.
The maximum number of tokens shared between the Prompt and the Output.
The maximum number of tokens that can be generated by the AI in the response.
A float value between -2 and 2 that penalizes the likelihood of an agent reusing phrases already present in the input.
The reasoning level of the agent's response (e.g., "low", "medium", "high").
Defines sequences of tokens upon which the agent should stop generating completions.
A float value between 0 and 2 that determines the randomness of the agent's responses.
A float value that specifies the Top-K sampling parameter.
A float value between 0 and 1 that specifies the probability cutoff for generating the response (nucleus sampling).
Defines if the agent should use Vision capabilities.
Defines if the agent should use Plugin Emulator instead of native tools.
Defines if the agent should use extended thinking (Alibaba Cloud and DeepSeek only).
Responses
- 200
- 400
- 401
- 403
- 404
- 500
AI model updated successfully.
If the request is invalid or the model is not available.
The user is unauthorized or the session expired
The user does not have permission
If the agent, version, or model is not found.
There was an unexpected error