Skip to main content

acts

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

Overview

Nameacts
TypeResource
Idaws.nova_act.acts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
act_idstringThe unique identifier of the act. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
ended_atstring (date-time)The timestamp when the act completed execution, if applicable.
session_idstringThe unique identifier of the session containing this act. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
started_atstring (date-time)The timestamp when the act started execution.
statusstringThe current execution status of the act. (RUNNING, PENDING_CLIENT_ACTION, PENDING_HUMAN_ACTION, SUCCEEDED, FAILED, TIMED_OUT)
trace_locationobjectThe location where trace information for this act is stored.
workflow_run_idstringThe unique identifier of the workflow run containing this act. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_actsselectworkflow_definition_name, regionworkflowRunId, sessionId, maxResults, nextTokenLists all acts within a specific session with their current status and execution details.
create_actinsertworkflow_definition_name, workflow_run_id, session_id, region, taskCreates a new AI task (act) within a session that can interact with tools and perform specific actions.
update_actupdateworkflow_definition_name, workflow_run_id, session_id, act_id, region, statusUpdates an existing act's configuration, status, or error information.
invoke_act_stepexecworkflow_definition_name, workflow_run_id, session_id, act_id, region, callResultsExecutes the next step of an act, processing tool call results and returning new tool calls if needed.

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
act_idstringThe unique identifier of the act to invoke the next step for.
regionstringAWS region (default: us-east-1)
session_idstringThe unique identifier of the session containing the act.
workflow_definition_namestringThe name of the workflow definition containing the act.
workflow_run_idstringThe unique identifier of the workflow run containing the act.
maxResultsintegerThe maximum number of acts to return in a single response.
nextTokenstringThe token for retrieving the next page of results.
sessionIdstringThe unique identifier of the session to list acts for.
workflowRunIdstringThe unique identifier of the workflow run containing the session.

SELECT examples

Lists all acts within a specific session with their current status and execution details.

SELECT
act_id,
ended_at,
session_id,
started_at,
status,
trace_location,
workflow_run_id
FROM aws.nova_act.acts
WHERE workflow_definition_name = '{{ workflow_definition_name }}' -- required
AND region = '{{ region }}' -- required
AND workflowRunId = '{{ workflowRunId }}'
AND sessionId = '{{ sessionId }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

INSERT examples

Creates a new AI task (act) within a session that can interact with tools and perform specific actions.

INSERT INTO aws.nova_act.acts (
task,
toolSpecs,
clientToken,
workflow_definition_name,
workflow_run_id,
session_id,
region
)
SELECT
'{{ task }}' /* required */,
'{{ toolSpecs }}',
'{{ clientToken }}',
'{{ workflow_definition_name }}',
'{{ workflow_run_id }}',
'{{ session_id }}',
'{{ region }}'
RETURNING
act_id,
status
;

UPDATE examples

Updates an existing act's configuration, status, or error information.

UPDATE aws.nova_act.acts
SET
status = '{{ status }}',
error = '{{ error }}'
WHERE
workflow_definition_name = '{{ workflow_definition_name }}' --required
AND workflow_run_id = '{{ workflow_run_id }}' --required
AND session_id = '{{ session_id }}' --required
AND act_id = '{{ act_id }}' --required
AND region = '{{ region }}' --required
AND status = '{{ status }}' --required;

Lifecycle Methods

Executes the next step of an act, processing tool call results and returning new tool calls if needed.

EXEC aws.nova_act.acts.invoke_act_step
@workflow_definition_name='{{ workflow_definition_name }}' --required,
@workflow_run_id='{{ workflow_run_id }}' --required,
@session_id='{{ session_id }}' --required,
@act_id='{{ act_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"callResults": "{{ callResults }}",
"previousStepId": "{{ previousStepId }}"
}'
;