create_session
async
¶
create_session(
workflow_definition_name: WorkflowDefinitionName,
workflow_run_id: UuidString,
*,
config_overrides: Optional[AsyncNovaActClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> CreateSessionResponse
Creates a new session context within a workflow run to manage conversation state and acts.
Parameters:
-
workflow_definition_name(WorkflowDefinitionName) –The name of the workflow definition containing the workflow run.
-
workflow_run_id(UuidString) –The unique identifier of the workflow run to create the session in.
-
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.