AgentsforBedrock / Client / list_agent_versions

list_agent_versions#

AgentsforBedrock.Client.list_agent_versions(**kwargs)#

Lists Agent Versions

See also: AWS API Documentation

Request Syntax

response = client.list_agent_versions(
    agentId='string',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • agentId (string) –

    [REQUIRED]

    Id generated at the server side when an Agent is created

  • maxResults (integer) – Max Results.

  • nextToken (string) – Opaque continuation token of previous paginated response.

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'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    List Agent Versions Response

    • agentVersionSummaries (list) –

      List of AgentVersionSummary.

      • (dict) –

        Summary of agent version.

        • agentName (string) –

          Name for a resource.

        • agentStatus (string) –

          Schema Type for Action APIs.

        • agentVersion (string) –

          Agent Version.

        • createdAt (datetime) –

          Time Stamp.

        • updatedAt (datetime) –

          Time Stamp.

        • description (string) –

          Description of the Resource.

    • nextToken (string) –

      Opaque continuation token of previous paginated response.

Exceptions

  • AgentsforBedrock.Client.exceptions.ThrottlingException

  • AgentsforBedrock.Client.exceptions.AccessDeniedException

  • AgentsforBedrock.Client.exceptions.ValidationException

  • AgentsforBedrock.Client.exceptions.InternalServerException

  • AgentsforBedrock.Client.exceptions.ResourceNotFoundException