Saltar al contenido principal

Add agent version skill

POST 

/api/v2/AgentVersion/:agentCode/:agentVersion/skills

Adds a single skill to a draft agent version, without sending the version's full skills configuration.

Request​

Path Parameters

    agentCode stringrequired

    The code of the agent.

    agentVersion int32required

    The version number of the agent.

Query Parameters

    culture string

    Use this param to override the culture of the response. Options: - en (default) - es

Body

The skill to add.

    oneOf

    Request model for creating or updating an Agent Executor skill within an agent.

    type stringrequired

    Possible values: non-empty, [AgentExecutor]

    The skill type identifier. Always "AgentExecutor" for agent executor skills.

    settings

    object

    required

    agentCode stringrequired

    Possible values: <= 50 characters, Value must match regular expression ^[a-zA-Z0-9\-]*$

    The code of the agent to execute when this skill is invoked.

    agentVersion int32nullable

    The version of the agent to use for this skill.

    code stringrequired

    Possible values: <= 50 characters, Value must match regular expression ^[a-zA-Z0-9]+$

    The unique code for this skill configuration.

    description stringnullable

    Possible values: <= 4000 characters

    The description of this skill configuration.

    includeInAgentResult boolean

    When set to true, the skill result will be returned within the agent result.

    reuseOutput boolean

    When set to true, the skill results will be cached and reused throughout a conversation as long as the input parameters remain the same.

    requiresApproval boolean

    When set to true, each call the agent makes to this skill must be approved by the user before it runs.

    active boolean

    Only active skills will be imported during agent execution.

Responses​

Skill added successfully.

Loading...