Repository navigation
Releases: Phicks-debug/aiobedrock
Releases · Phicks-debug/aiobedrock
Release list
v1.0.0
aiobedrock v1.0.0
New Features
count_tokens()— Count input tokens before sending requests (Converse or InvokeModel style)apply_guardrail()— Evaluate content against a Bedrock Guardrail without invoking a modelstart_async_invoke()— Start background model invocations with S3 outputget_async_invoke()— Check status of an async invocationlist_async_invokes()— List recent async invocations with filteringoutputConfigparameter forconverse()andconverse_stream()— Structured JSON schema output
Bug Fixes
- Fixed
serviceTierheader name (X-Amzn-Bedrock-Service-Tier) - Fixed lazy
TCPConnectorinitialization for aiohttp >=3.10 compatibility - Fixed
count_tokensinvokeModel body serialization (JSON string, not base64) - Corrected
serviceTierenum values to match API (priority,default,flex,reserved)
Improvements
- Exported
BedrockClientErrorandBedrockStreamErrorfrom package - Comprehensive test suite (18 tests, pylint 10.00/10)
- New examples:
count_tokens.py,apply_guardrail.py,async_invoke.py - Full API reference in README for all new methods
v0.5.0
- Add profile_name and aws_account_id parameters to Client class
v4.0
v0.3.1
New api 'invoke_many'
Update to support new boto3 1.40.x
Handling concurrency better and more efficiency