Skip to main content

aiSSEMBLE™ Open Inference Protocol Shared Utils

PyPI - Version PyPI - Python Version PyPI - Format PyPI - Downloads Build (github)

Contains common functionality shared across multiple interfaces

Content Type Precedence

When constructing an InferenceResponse, the build_inference_response utility determines the content_type for each output using the following precedence chain:

  1. Handler Output Content Type: If the handler's output specifies a content_type, it takes highest precedence and is used directly.
  2. Per-Output Content Type: If request.outputs is set, the content_type specified for each output is used.
  3. Request-Level Content Type: If no per-output type is set, falls back to the request-level content_type (from request.parameters.content_type).
  4. Default Fallback: If none of the above are set, defaults to None as the content type.

This ensures that the most specific content type is always used, with clear and predictable fallback behavior.

Examples

For working examples and more details on shared features, configuration options, and usage, refer to the Examples documentation.

Metadata

Release files for aissemble-open-inference-protocol-shared 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aissemble-open-inference-protocol-shared 1.1.0
File Size Uploaded Provenance Actions
aissemble_open_inference_protocol_shared-1.1.0.tar.gz 21.8 kB Without provenance Details for aissemble_open_inference_protocol_shared-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aissemble-open-inference-protocol-shared 1.1.0
File Interpreter ABI Platform Actions
aissemble_open_inference_protocol_shared-1.1.0-py3-none-any.whl Python 3 none any Details for aissemble_open_inference_protocol_shared-1.1.0-py3-none-any.whl

Total release size: 62.5 kB

Release files / aissemble_open_inference_protocol_shared-1.1.0.tar.gz

Download URL aissemble_open_inference_protocol_shared-1.1.0.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f9e1321da082c4020dfc425d4668bf1945f03f67fdca8facf0a0664c97a2a689
BLAKE2b-256 checksum
How to use checksums
fc4d0462d2a5fb4c9c5053645070bb23151d132d47555eb69affab289b920fe2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.4 Linux/6.11.0-1018-azure

Release files / aissemble_open_inference_protocol_shared-1.1.0-py3-none-any.whl

Download URL aissemble_open_inference_protocol_shared-1.1.0-py3-none-any.whl
Size 40.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b73538bf105fd62f0d11b670c58f98d6bc4c3d54d258eddc83444864f731281
BLAKE2b-256 checksum
How to use checksums
51c4c50abb21501890eefd36bbeb807159acdea7193d2b68386b14d199d1af6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.4 Linux/6.11.0-1018-azure

Security for aissemble-open-inference-protocol-shared 1.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page