Registry / type-stubs / mypy-boto3-bedrock-agentcore-control

mypy-boto3-bedrock-agentcore-control

JSON →
library1.43.78pypypi✓ verified 28d ago

This library provides PEP 561-compliant type annotations for the `boto3` Bedrock Agent Core Control service, enabling static type checking with tools like `mypy`. It helps developers catch type-related errors early and improves IDE autocompletion for `boto3`. The current version is 1.42.87, and it is updated frequently to align with new `boto3` releases.

pip install boto3 mypy-boto3-bedrock-agentcore-control
INSTALL
IMPORT
SIG · MYPY-BOTO3-BEDROCK
M
mypy-boto3-bedrock-agentcore-control
type-stubspythonv1.43.78
Install
3.9s avg
Import
—
Disk
51MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v1.43.78 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 53.1MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 3.9s · import 0.000s · 54MB
51MB installed
● package 51MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BedrockAgentCoreControlClient
✓ from mypy_boto3_bedrock_agent_core_control.client import BedrockAgentCoreControlClient
✗ from boto3.client import BedrockAgentCoreControlClient
Boto3 itself does not export specific client types; stubs are needed for type hints.
ListAgentsResponseTypeDef
✓ from mypy_boto3_bedrock_agent_core_control.type_defs import ListAgentsResponseTypeDef
✗ from mypy_boto3_bedrock_agentcorecontrol.type_defs import ListAgentsResponseTypeDef
The generated package name uses underscores for `bedrock_agent_core_control`, not hyphens or direct concatenation.

This quickstart demonstrates how to initialize a `boto3` client with `mypy-boto3` type hints for the Bedrock Agent Core Control service. It shows typical usage of type-hinted request and response dictionaries. Remember to install `boto3` separately.

import boto3 from mypy_boto3_bedrock_agent_core_control.client import BedrockAgentCoreControlClient from mypy_boto3_bedrock_agent_core_control.type_defs import ListAgentsRequestRequestTypeDef, ListAgentsResponseTypeDef from typing import TYPE_CHECKING, cast # Ensure boto3 is configured, e.g., via AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION_NAME env vars # This example does not use actual credentials, but they would be needed for a real call. # Use TYPE_CHECKING for type hints that are not needed at runtime if TYPE_CHECKING: # Cast the boto3 client to the specific type stub for better type checking client: BedrockAgentCoreControlClient = cast(BedrockAgentCoreControlClient, boto3.client("bedrock-agent-core-control")) else: client = boto3.client("bedrock-agent-core-control") # Example of using a typed request and response try: request: ListAgentsRequestRequestTypeDef = { "maxResults": 10 } response: ListAgentsResponseTypeDef = client.list_agents(**request) print(f"Successfully listed agents. Total agents found: {len(response.get('agentSummaries', []))}") for agent in response.get('agentSummaries', []): print(f" - Agent ID: {agent['agentId']}, Status: {agent['agentStatus']}") except Exception as e: print(f"Error listing agents: {e}") print("Ensure your AWS credentials and region are configured correctly and Bedrock Agent Core Control is available.")
Debug
Known issues
breakingPython 3.8 support has been removed from `mypy-boto3-builder` versions 8.12.0 and later, which affects generated stub packages. Users on Python 3.8 will encounter issues.
fix
Upgrade to Python 3.9 or newer to continue receiving updates and full type-checking support. If unable to upgrade, pin to an older `mypy-boto3` version compatible with Python 3.8.
affects: 1.42.x and newer (generated by `mypy-boto3-builder 8.12.0+`)
breakingMigration to PEP 561 package structure (`mypy-boto3-builder 8.12.0+`) might require updates to custom `mypy` configurations that rely on older module resolution paths. This primarily affects advanced `mypy` setups.
fix
Review `mypy` configuration files (e.g., `mypy.ini`, `pyproject.toml`) to ensure `mypy` can correctly locate type stubs under the new PEP 561 structure. Typically, this change is seamless.
affects: 1.42.x and newer (generated by `mypy-boto3-builder 8.12.0+`)
breakingTypeDef naming conventions were changed in `mypy-boto3-builder 8.9.0` to resolve conflicts and shorten names (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`). If you directly import specific `TypeDef` names, they might have changed.
fix
Update `TypeDef` import names in your codebase according to the new conventions. Consult the `mypy-boto3` documentation or generated stub files for the correct names.
affects: 1.42.x and newer (generated by `mypy-boto3-builder 8.9.0+`)
gotchaThis library provides *only* type annotations for `boto3`. You must explicitly install `boto3` (e.g., `pip install boto3`) for your code to run at runtime.
fix
Always install `boto3` alongside `mypy-boto3-bedrock-agentcore-control` to ensure runtime functionality.
affects: All versions
gotchaAWS service APIs (and thus `boto3`'s implementation) are constantly updated. To ensure your type hints are accurate and reflect the latest API, you should periodically update `mypy-boto3-bedrock-agentcore-control`.
fix
Regularly run `pip install --upgrade mypy-boto3-bedrock-agentcore-control` to keep your stubs synchronized with the latest `boto3` versions.
affects: All versions
gotchaWhen initializing the client, ensure the service name passed to `boto3.client()` exactly matches the service for which the stubs are provided. The correct name is 'bedrock-agent-core-control'.
fix
Always use `boto3.client("bedrock-agent-core-control")` when creating the client instance that you intend to type-hint with `BedrockAgentCoreControlClient`.
affects: All versions
Upgrade
Version history
1.43.78latest on PyPI · released Aug 21, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for boto3; boto3 itself must be installed for runtime.
mypyoptionalRequired for static type checking against the provided type annotations.
typing-extensionsoptionalMay be required for older Python versions (e.g., <3.9) for full type annotation support.
Agent activity
19 hits · last 30 days
node
16
OpenAI (training)
1
Resources
mypy-boto3-bedrock-agentcore-control — pip install mypy-boto3-bedrock-agentcore-control · libregistry