create_act
¶
create_act(
workflow_definition_name: WorkflowDefinitionName,
workflow_run_id: UuidString,
session_id: UuidString,
task: Task,
*,
config_overrides: Optional[NovaActClientConfig] = None,
tool_specs: Optional[ToolSpecs] = None,
client_token: Optional[ClientToken] = None,
) -> CreateActResponse
Creates a new AI task (act) within a session that can interact with tools and perform specific actions.
Parameters:
-
workflow_definition_name(WorkflowDefinitionName) –The name of the workflow definition containing the session.
-
workflow_run_id(UuidString) –The unique identifier of the workflow run containing the session.
-
session_id(UuidString) –The unique identifier of the session to create the act in.
-
task(Task) –The task description that defines what the act should accomplish.
-
tool_specs(Optional[ToolSpecs], default:None) –A list of tool specifications that the act can invoke to complete its task.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Raises:
-
AccessDeniedException–You don't have sufficient permissions to perform this action.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource.
-
InternalServerException–An internal server error occurred. Please try again later.
-
ResourceNotFoundException–The requested resource was not found.
-
ServiceQuotaExceededException–The request would exceed a service quota limit.
-
ThrottlingException–The request was throttled due to too many requests. Please try again later.
-
ValidationException–The input parameters for the request are invalid.
-
UnknownServiceError–The service returned an error code this client does not model.