The repository or configuration that created this release differ from a previous release. View details.
ocai-bedrock
Bedrock hosting for ocai, separate from shared AWS authentication and semantic provider codecs. This package owns InvokeModel addressing, native host errors and response metadata/effects. It performs no discovery and imports no provider SDK.
import ocai.chat
from ocai.aws import SigV4Credential
from ocai.bedrock import Bedrock
model = ocai.chat.model(
"anthropic/us.anthropic.claude-3-5-sonnet-20241022-v2:0",
host=Bedrock(region="us-east-1"),
credentials=SigV4Credential(
access_key="synthetic-access-key", secret_key="synthetic-secret-key",
region="us-east-1",
),
)
Install the Anthropic codec and AWS credential packages separately or use the
anthropic and aws extras. The application supplies credentials explicitly;
ocai-aws delegates signing to AWS-maintained code. Users do not import its SDK.
Qualified unary surface: text, function tools, trait-declared version/beta body placement, encoded identifiers, native errors and response metadata/guardrail accounting. Explicit profile aliases affect capability lookup only. No model-ID heuristic is used. Existing preflight profiles include dialect-wide wildcard declarations; those and coverage_complete are not hosted-model qualification (G-15). Verify deployment support independently of dialect declarations.
beta is an explicit tuple of body beta values; it does not silently enable any
feature. Version/beta conflicts fail before I/O. Binding-level arbitrary headers
are transmitted as explicit caller data, not qualified as feature relocations.
Use the host's beta field or trait-declared feature mappings for that purpose.
Configure guardrail identifier/version together. Recognized trace assessments separate blocked output (ContentFilterError) from masking (reported semantic shift). An intervention without sufficient trace is reported as unclassified; it is never guessed to be blocked or unmodified. FidelityPolicy can reject those shifts. HostEvidence retains native headers/body and host metadata; traces can contain original content, so application exporters must redact them. Passive observers omit this evidence.
Streaming, Converse, media, managed prompts, regional discovery and compatibility endpoints are not qualified here. Streaming fails before I/O. Recorded tests prove wire behavior without live keys; they do not establish service/account access.
| Surface | Recorded qualification |
|---|---|
| Text and system instruction | Exact body, canonical text/finish and input/output usage, both drivers |
| Function tools | Custom tool schema, auto selection, returned call identity/arguments and finish |
| Routing and beta | Encoded identifier, explicit version and beta placement; no beta feature availability claim |
| Errors | Header-only throttle/access/model error and body native codes; unknown codes preserved |
| Guardrails | Explicit blocking, output masking, uncertain intervention, caller fidelity rejection |
| Metadata | Host body fields and latency/tier headers retained; future host/dialect fields separated |
| Excluded | Streaming, Converse, media, managed prompts, regional/model discovery, live availability |
The recordings are synthetic, hand-authored against the AWS research sources in
docs/providers/amazon-bedrock.md section 16. They reuse the existing Anthropic
conversion graph. There is no new semantic edge or canonical revision.
Metadata
Release files for ocai-bedrock 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Change of provenance
The repository or configuration that created these release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ocai_bedrock-0.1.1.tar.gz | 14.2 kB | With provenance | Details for ocai_bedrock-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ocai_bedrock-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for ocai_bedrock-0.1.1-py3-none-any.whl |
Total release size: 22.1 kB
Release files / ocai_bedrock-0.1.1.tar.gz
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | ocai_bedrock-0.1.1.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
157616be27c88117739e642435f71c0401cfc3b1cba3c5b45659be7d0db089b8
|
|
BLAKE2b-256 checksum How to use checksums |
a26c2cb39a838aea8360c432536bc6188703c86c4567a18d1186a9c06e8361ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / ocai_bedrock-0.1.1-py3-none-any.whl
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | ocai_bedrock-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22d24c9cf177465d6b7f969532ad4176572627cad8db6acd912809810173285d
|
|
BLAKE2b-256 checksum How to use checksums |
02fe3bf341600ed9933cba8f1e65b3a24a482ffe4fd01a3db71a0510ffe7841d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logSecurity for ocai-bedrock 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Change of provenance
The configuration that created this release differs from a previous release.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Attestation for ocai_bedrock-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.