Waiting for engine...
Skip to main content

aiAgentUpdate

Update an existing AI Agent in the AI Agent Registry.

Description: This mutation updates the AI Agent associated with the authenticated user’s account. Either id or externalId must be provided to identify the agent for updating.

Input Parameters (AiAgentUpdateInput):

  • id: ID! - Required. Unique identifier of the internal AI agent to be updated
  • agentName: String - Required. Name of the AI agent.
  • agentDescription: String - Optional. Description of the AI agent.
  • tags: Array of type AiAgentTagInput - Optional
  • metaData: String - Optional. Metadata for the version in JSON format

Response:

  • Returns the updated AiAgent object.

Example Request:

mutation {
aiAgentUpdate(input: {
id: "agent-123",
agentName: "Alpha Updated",
agentDescription: "Updated description of the AI agent",
tags: [
{
key: "priority",
value: "urgent"
}
],
trustLevel: ENDORSED,
metaData: "{ \"department\": \"support\" }"
}) {
id
externalId
createdByOrigin
agentVersions {
id
externalId
version
name
description
agentStatus
versionMetadata
tags {
id
key
value
}
llms {
id
name
description
version
}
syncData {
lastSyncStatus
lastSyncStartDate
lastSyncEndDate
}
auditData {
createdByUserId
createdTime
modifiedByUserId
modifiedTime
createdByOrigin
updatedByOrigin
updatedAtProviderTime
}
}
}
}

aiAgentUpdate(
input: AiAgentUpdateInput!
): AiAgent

Arguments

aiAgentUpdate.input ● AiAgentUpdateInput! non-null input agent-control-tower

Type

AiAgent object agent-control-tower

On this Page