Update agent

updateAgent(input: UpdateProjectAgentInput!): ProjectAgentDocument!

Requires project.agents.write.

Arguments

ArgumentTypeRequired
inputUpdateProjectAgentInput!Yes

Input fields

input

UpdateProjectAgentInput

FieldTypeRequired
projectReferenceStringNo
agentIdString!Yes
sourceTargetKindStringNo
targetBranchIdIDNo
idStringNo
nameStringNo
descriptionStringNo
modelStringNo
systemPromptStringNo
thinkingJSONNo
temperatureFloatNo
maxStepsIntNo
allowedModels[String!]No
skillIds[String!]No
skillSelectionProjectAgentSkillSelectionInputNo
skillsJSONNo

All fields of UpdateProjectAgentInput.

Response

Returns ProjectAgentDocument!. Open the type for its fields and nested types.

FieldType
idID!
nameString!
descriptionString
modelString
systemPromptString
thinkingJSON
temperatureFloat
maxStepsInt

All fields of ProjectAgentDocument.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation UpdateAgent($input: UpdateProjectAgentInput!) {
  updateAgent(input: $input) {
    id
    name
    allowedModels
    allToolsEnabled
    avatar
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "agentId": "00000000-0000-4000-8000-000000000001"
  }
}