AgentsforBedrock / Client / list_agent_versions
list_agent_versions¶
- AgentsforBedrock.Client.list_agent_versions(**kwargs)¶
- Lists the versions of an agent and information about each version. - See also: AWS API Documentation - Request Syntax- response = client.list_agent_versions( agentId='string', maxResults=123, nextToken='string' ) - Parameters:
- agentId (string) – - [REQUIRED] - The unique identifier of the agent. 
- 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.
- nextToken (string) – If the total number of results is greater than the - maxResultsvalue provided in the request, enter the token returned in the- nextTokenfield in the response in this field to return the next batch of results.
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'agentVersionSummaries': [ { 'agentName': 'string', 'agentStatus': 'CREATING'|'PREPARING'|'PREPARED'|'NOT_PREPARED'|'DELETING'|'FAILED'|'VERSIONING'|'UPDATING', 'agentVersion': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'description': 'string', 'guardrailConfiguration': { 'guardrailIdentifier': 'string', 'guardrailVersion': 'string' } }, ], 'nextToken': 'string' } - Response Structure- (dict) – - agentVersionSummaries (list) – - A list of objects, each of which contains information about a version of the agent. - (dict) – - Contains details about a version of an agent. - agentName (string) – - The name of the agent to which the version belongs. 
- agentStatus (string) – - The status of the agent to which the version belongs. 
- agentVersion (string) – - The version of the agent. 
- createdAt (datetime) – - The time at which the version was created. 
- updatedAt (datetime) – - The time at which the version was last updated. 
- description (string) – - The description of the version of the agent. 
- guardrailConfiguration (dict) – - Details about the guardrail associated with the agent. - guardrailIdentifier (string) – - The unique identifier of the guardrail. 
- guardrailVersion (string) – - The version of the guardrail. 
 
 
 
- 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 the- nextTokenfield to return the next batch of results.
 
 
 - Exceptions