types-aiobotocore-bedrock-agentcore
raw JSON → 3.5.0 verified Fri May 01 auth: no python
Type annotations for aiobotocore BedrockAgentCore service (v3.5.0), generated with mypy-boto3-builder 8.12.0. This package provides static type checking support for code using the Bedrock Agent Core client from aiobotocore. It is part of the types-aiobotocore ecosystem and requires Python >=3.9. Releases follow aiobotocore service version updates.
pip install types-aiobotocore-bedrock-agentcore Common errors
error ModuleNotFoundError: No module named 'types_aiobotocore_bedrock_agentcore' ↓
cause Package not installed or installed in wrong environment.
fix
Run 'pip install types-aiobotocore-bedrock-agentcore' in the correct Python environment.
error AttributeError: module 'types_aiobotocore_bedrock_agentcore' has no attribute 'BedrockAgentCoreClient' ↓
cause Trying to import the client type incorrectly, or the version is too old.
fix
Use 'from types_aiobotocore_bedrock_agentcore import BedrockAgentCoreClient'. Ensure package version >=3.5.0.
error TypeError: 'BedrockAgentCoreClient' object is not callable ↓
cause Attempting to call the class directly instead of using aiobotocore session.
fix
Do not instantiate BedrockAgentCoreClient directly. Use 'await session.create_client('bedrock-agent-core')'.
Warnings
breaking Version 3.5.0 drops Python 3.8 support (requires >=3.9). If your project is on Python 3.8, pin to an older version (e.g., types-aiobotocore-bedrock-agentcore<3.5.0). ↓
fix Upgrade Python to 3.9+ or pin dependency to <3.5.0.
deprecated Old import paths like 'types_aiobotocore_bedrock_agentcore.client' may change in future releases. Use 'from types_aiobotocore_bedrock_agentcore import BedrockAgentCoreClient' for the client type. ↓
fix Always import the client type directly from the top-level module as shown in the quickstart.
gotcha The package only provides type stubs; it does not contain runtime implementations. Attempting to instantiate classes directly (e.g., BedrockAgentCoreClient(...)) will fail at runtime. ↓
fix Use aiobotocore's session.create_client('bedrock-agent-core') to get the client, then leverage the type stubs for static analysis.
Imports
- bedrock_agent_core wrong
import types_aiobotocore_bedrock_agentcorecorrectimport aiobotocore; from types_aiobotocore_bedrock_agentcore import type_defs, client
Quickstart
import asyncio
from aiobotocore.session import get_session
from types_aiobotocore_bedrock_agentcore import BedrockAgentCoreClient
async def main():
session = get_session()
async with session.create_client('bedrock-agent-core', region_name='us-east-1') as client:
# client is of type BedrockAgentCoreClient
print(type(client).__name__)
asyncio.run(main())