types-aiobotocore-bedrock-agent

raw JSON →
3.5.0 verified Fri May 01 auth: no python

Type annotations for aiobotocore Agents for Bedrock service, auto-generated by mypy-boto3-builder. Version 3.5.0 requires Python >= 3.9. This package provides static type hints for the bedrock-agent client of aiobotocore, enabling type checking and IDE autocompletion.

pip install types-aiobotocore[bedrock-agent]
error ModuleNotFoundError: No module named 'types_aiobotocore_bedrock_agent'
cause The standalone package is not installed or import name is misspelled (underscore vs hyphen).
fix
Run: pip install types-aiobotocore-bedrock-agent. Then import: from types_aiobotocore_bedrock_agent import ...
error Cannot import name 'BedrockAgentClient' from 'types_aiobotocore_bedrock_agent'
cause Client class name may differ from the service name or is not directly exported.
fix
Check the available exports: from types_aiobotocore_bedrock_agent import BedrockAgentClient (note capital B). If using older version, use client = await session.create_client('bedrock-agent') and annotate with 'BedrockAgentClient' after importing.
breaking The generated package version number is separate from aiobotocore/boto3. Ensure you install the version matching your aiobotocore version.
fix Check the version table in the GitHub README or use the service extra (types-aiobotocore[bedrock-agent]) to get compatible versions.
deprecated Python 3.8 support removed since mypy_boto3_builder 8.12.0. If you still use Python 3.8, pin to an older version (<=8.11.0).
fix Upgrade to Python >=3.9 or use types-aiobotocore-bedrock-agent <=3.4.0 (if available).
gotcha The types package is auto-generated; some type definitions may be incomplete or contain issues. Report problems to the mypy_boto3_builder repo.
fix If you encounter a missing or incorrect type, open an issue at https://github.com/youtype/mypy_boto3_builder
pip install types-aiobotocore-bedrock-agent

Basic async client usage with type annotations

import os
from types_aiobotocore_bedrock_agent import BedrockAgentClient
from aiobotocore.session import get_session

async def main():
    session = get_session()
    async with session.create_client('bedrock-agent', region_name='us-east-1') as client:
        # client is type-annotated
        response = await client.list_agents()
        print(response)

if __name__ == '__main__':
    import asyncio
    asyncio.run(main())