Update skills advanced settings
PATCH/api/v2/AgentVersion/:agentCode/:agentVersion/skillsAdvancedSettings
Updates the settings that apply to all the skills of an agent version. Settings not sent are disabled, except the always included skills, which are kept when not sent.
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 skills advanced settings.
selectionOptimization
object
Skill selection optimization: before each execution, a decision model picks the skills the execution needs, so the
agent doesn't load every skill.
Whether the decision model selects the skills of each execution.
The decision model that selects the skills. When neither this nor ModelCode and Vendor are sent, the platform's default decision model is used.
The code of the decision model. Used together with Vendor when AIModelId is not provided.
The vendor of the decision model. Used together with ModelCode when AIModelId is not provided.
Possible values: <= 1
The minimum probability the decision model must give a skill for it to be imported. Higher imports fewer skills. When not sent, the platform's default threshold is used.
Possible values: <= 100
The codes of the agent's skills that are always imported, without the decision model evaluating them. Every tool of an MCP skill is included. When not sent, creating or replacing an agent includes none, and updating a version keeps the current ones.
The unique identifier of the AI model to use. Used instead of Vendor and ModelCode.
The model code to use. Used together with Vendor when AIModelId is not provided.
The vendor of the model to use. Used together with ModelCode when AIModelId is not provided.
Body
The skills advanced settings.
selectionOptimization
object
Skill selection optimization: before each execution, a decision model picks the skills the execution needs, so the
agent doesn't load every skill.
Whether the decision model selects the skills of each execution.
The decision model that selects the skills. When neither this nor ModelCode and Vendor are sent, the platform's default decision model is used.
The code of the decision model. Used together with Vendor when AIModelId is not provided.
The vendor of the decision model. Used together with ModelCode when AIModelId is not provided.
Possible values: <= 1
The minimum probability the decision model must give a skill for it to be imported. Higher imports fewer skills. When not sent, the platform's default threshold is used.
Possible values: <= 100
The codes of the agent's skills that are always imported, without the decision model evaluating them. Every tool of an MCP skill is included. When not sent, creating or replacing an agent includes none, and updating a version keeps the current ones.
The unique identifier of the AI model to use. Used instead of Vendor and ModelCode.
The model code to use. Used together with Vendor when AIModelId is not provided.
The vendor of the model to use. Used together with ModelCode when AIModelId is not provided.
Body
The skills advanced settings.
selectionOptimization
object
Skill selection optimization: before each execution, a decision model picks the skills the execution needs, so the
agent doesn't load every skill.
Whether the decision model selects the skills of each execution.
The decision model that selects the skills. When neither this nor ModelCode and Vendor are sent, the platform's default decision model is used.
The code of the decision model. Used together with Vendor when AIModelId is not provided.
The vendor of the decision model. Used together with ModelCode when AIModelId is not provided.
Possible values: <= 1
The minimum probability the decision model must give a skill for it to be imported. Higher imports fewer skills. When not sent, the platform's default threshold is used.
Possible values: <= 100
The codes of the agent's skills that are always imported, without the decision model evaluating them. Every tool of an MCP skill is included. When not sent, creating or replacing an agent includes none, and updating a version keeps the current ones.
The unique identifier of the AI model to use. Used instead of Vendor and ModelCode.
The model code to use. Used together with Vendor when AIModelId is not provided.
The vendor of the model to use. Used together with ModelCode when AIModelId is not provided.
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Skills advanced settings updated successfully.
If the request is invalid.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
Array [
]
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
errors
object
nullable
Map of keys (an invalid request field or the rule that failed) to messages. Only present when the error has specific detail to report. Values are strings, except on input_validation_error, where each value is an array of messages for that field.
property name*
object
nullable
oneOf
string
string
{
"code": "string",
"message": "string",
"documentationUrl": "string",
"errors": {}
}
The user is unauthorized or the session expired
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}
The user does not have permission
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}
If the agent or version is not found.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
Array [
]
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
errors
object
nullable
Map of keys (an invalid request field or the rule that failed) to messages. Only present when the error has specific detail to report. Values are strings, except on input_validation_error, where each value is an array of messages for that field.
property name*
object
nullable
oneOf
string
string
{
"code": "string",
"message": "string",
"documentationUrl": "string",
"errors": {}
}
There was an unexpected error
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}