Skip to main content

agent_collaborators

Creates, updates, deletes, gets or lists an agent_collaborators resource.

Overview

Nameagent_collaborators
TypeResource
Idaws.bedrock_agent.agent_collaborators

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
agent_descriptorobjectAn agent descriptor.
agent_idstringThe collaborator's agent ID. (pattern: <code>[0-9a-zA-Z]{10}</code>)
agent_versionstringThe collaborator's agent version. (pattern: <code>(DRAFT|[0-9]{0,4}[1-9][0-9]{0,4})</code>)
client_tokenstringThe collaborator's client token. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,256}</code>)
collaboration_instructionstringThe collaborator's instructions.
collaborator_idstringThe collaborator's collaborator ID. (pattern: <code>[0-9a-zA-Z]{10}</code>)
collaborator_namestringThe collaborator's collaborator name. (pattern: <code>([0-9a-zA-Z][_-]?){1,100}</code>)
created_atstring (date-time)When the collaborator was created.
last_updated_atstring (date-time)When the collaborator was updated.
relay_conversation_historystringThe collaborator's relay conversation history. (TO_COLLABORATOR, DISABLED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_agent_collaboratorselectagent_id, agent_version, collaborator_id, regionRetrieves information about an agent's collaborator.
list_agent_collaboratorsselectagent_id, agent_version, regionRetrieve a list of an agent's collaborators.
update_agent_collaboratorupdateagent_id, agent_version, collaborator_id, region, agentDescriptor, collaboratorName, collaborationInstructionUpdates an agent's collaborator.
associate_agent_collaboratorupdateagent_id, agent_version, region, agentDescriptor, collaboratorName, collaborationInstructionMakes an agent a collaborator for another agent.
disassociate_agent_collaboratorupdateagent_id, agent_version, collaborator_id, regionDisassociates an agent collaborator.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agent_idstringAn agent ID.
agent_versionstringThe agent's version.
collaborator_idstringThe collaborator's ID.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information about an agent's collaborator.

SELECT
agent_descriptor,
agent_id,
agent_version,
client_token,
collaboration_instruction,
collaborator_id,
collaborator_name,
created_at,
last_updated_at,
relay_conversation_history
FROM aws.bedrock_agent.agent_collaborators
WHERE agent_id = '{{ agent_id }}' -- required
AND agent_version = '{{ agent_version }}' -- required
AND collaborator_id = '{{ collaborator_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates an agent's collaborator.

UPDATE aws.bedrock_agent.agent_collaborators
SET
agentDescriptor = '{{ agentDescriptor }}',
collaboratorName = '{{ collaboratorName }}',
collaborationInstruction = '{{ collaborationInstruction }}',
relayConversationHistory = '{{ relayConversationHistory }}'
WHERE
agent_id = '{{ agent_id }}' --required
AND agent_version = '{{ agent_version }}' --required
AND collaborator_id = '{{ collaborator_id }}' --required
AND region = '{{ region }}' --required
AND agentDescriptor = '{{ agentDescriptor }}' --required
AND collaboratorName = '{{ collaboratorName }}' --required
AND collaborationInstruction = '{{ collaborationInstruction }}' --required
RETURNING
agent_collaborator;