AgentsforBedrockRuntime / Client / list_invocations
list_invocations¶
- AgentsforBedrockRuntime.Client.list_invocations(**kwargs)¶
Lists all invocations associated with a specific session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.
See also: AWS API Documentation
Request Syntax
response = client.list_invocations( nextToken='string', maxResults=123, sessionIdentifier='string' )
- Parameters:
nextToken (string) – If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.maxResults (integer) – The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.sessionIdentifier (string) –
[REQUIRED]
The unique identifier for the session to list invocations for. You can specify either the session’s
sessionIdor its Amazon Resource Name (ARN).
- Return type:
dict
- Returns:
Response Syntax
{ 'invocationSummaries': [ { 'sessionId': 'string', 'invocationId': 'string', 'createdAt': datetime(2015, 1, 1) }, ], 'nextToken': 'string' }
Response Structure
(dict) –
invocationSummaries (list) –
A list of invocation summaries associated with the session.
(dict) –
Contains details about an invocation in a session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.
sessionId (string) –
The unique identifier for the session associated with the invocation.
invocationId (string) –
A unique identifier for the invocation in UUID format.
createdAt (datetime) –
The timestamp for when the invocation was created.
nextToken (string) –
If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
Exceptions
AgentsforBedrockRuntime.Client.exceptions.ResourceNotFoundExceptionAgentsforBedrockRuntime.Client.exceptions.ValidationExceptionAgentsforBedrockRuntime.Client.exceptions.InternalServerExceptionAgentsforBedrockRuntime.Client.exceptions.ThrottlingExceptionAgentsforBedrockRuntime.Client.exceptions.AccessDeniedException