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( invocationId='string', description='string', sessionIdentifier='string' ) - Parameters:
- invocationId (string) – A unique identifier for the invocation in UUID format. 
- description (string) – A description for the interactions in the invocation. For example, “User asking about weather in Seattle”. 
- sessionIdentifier (string) – - [REQUIRED] - The unique identifier for the associated session for the invocation. You can specify either the session’s - sessionIdor its Amazon Resource Name (ARN).
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'sessionId': 'string', 'invocationId': 'string', 'createdAt': datetime(2015, 1, 1) } - Response Structure- (dict) – - sessionId (string) – - The unique identifier for the session associated with the invocation. 
- invocationId (string) – - The unique identifier for the invocation. 
- createdAt (datetime) – - The timestamp for when the invocation was created. 
 
 
 - 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