aiSSEMBLE™ Open Inference Protocol Shared Utils
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:
- Handler Output Content Type: If the handler's output specifies a
content_type, it takes highest precedence and is used directly. - Per-Output Content Type: If
request.outputsis set, thecontent_typespecified for each output is used. - Request-Level Content Type: If no per-output type is set, falls back to the request-level
content_type(fromrequest.parameters.content_type). - Default Fallback: If none of the above are set, defaults to
Noneas 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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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
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.