AgentsforBedrockRuntime / Client / create_invocation
create_invocation#
- AgentsforBedrockRuntime.Client.create_invocation(**kwargs)#
Creates a new invocation within a session. An invocation groups the related invocation steps that store the content from a conversation. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.
Related APIs
See also: AWS API Documentation
Request Syntax
response = client.create_invocation( description='string', invocationId='string', sessionIdentifier='string' )
- Parameters:
description (string) – A description for the interactions in the invocation. For example, “User asking about weather in Seattle”.
invocationId (string) – A unique identifier for the invocation in UUID format.
sessionIdentifier (string) –
[REQUIRED]
The unique identifier for the associated session for the invocation. You can specify either the session’s
sessionId
or its Amazon Resource Name (ARN).
- Return type:
dict
- Returns:
Response Syntax
{ 'createdAt': datetime(2015, 1, 1), 'invocationId': 'string', 'sessionId': 'string' }
Response Structure
(dict) –
createdAt (datetime) –
The timestamp for when the invocation was created.
invocationId (string) –
The unique identifier for the invocation.
sessionId (string) –
The unique identifier for the session associated with the invocation.
Exceptions
AgentsforBedrockRuntime.Client.exceptions.ResourceNotFoundException
AgentsforBedrockRuntime.Client.exceptions.ValidationException
AgentsforBedrockRuntime.Client.exceptions.InternalServerException
AgentsforBedrockRuntime.Client.exceptions.ThrottlingException
AgentsforBedrockRuntime.Client.exceptions.AccessDeniedException
AgentsforBedrockRuntime.Client.exceptions.ServiceQuotaExceededException