Skip to main content

chats

Creates, updates, deletes, gets or lists a chats resource.

Overview

Namechats
TypeResource
Idaws.devops_agent.chats

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
executionsarrayList of recent chat executions
next_tokenstringToken for retrieving the next page of results

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_chatsselectagent_space_id, regionuserId, maxResults, nextTokenRetrieves a paginated list of the user's recent chat executions
create_chatinsertagent_space_id, regionuserId, userTypeCreates a new chat execution in the specified agent space

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_space_idstring
regionstringAWS region (default: us-east-1)
maxResultsintegerMaximum number of results to return
nextTokenstringToken for pagination
userIdstringThe user identifier for the chat. This field is deprecated and will be ignored — the service resolves user identity from the authenticated session.
userTypestringThe authentication type of the user

SELECT examples

Retrieves a paginated list of the user's recent chat executions

SELECT
executions,
next_token
FROM aws.devops_agent.chats
WHERE agent_space_id = '{{ agent_space_id }}' -- required
AND region = '{{ region }}' -- required
AND userId = '{{ userId }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

INSERT examples

Creates a new chat execution in the specified agent space

INSERT INTO aws.devops_agent.chats (
agent_space_id,
region,
userId,
userType
)
SELECT
'{{ agent_space_id }}',
'{{ region }}',
'{{ userId }}',
'{{ userType }}'
RETURNING
created_at,
execution_id
;