Skip to main content

Shared Utilities for aiSSEMBLE Open Inference Protocol

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file aissemble_open_inference_protocol_shared-1.1.0.tar.gz.

File metadata

File hashes

Hashes for aissemble_open_inference_protocol_shared-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f9e1321da082c4020dfc425d4668bf1945f03f67fdca8facf0a0664c97a2a689
MD5 ed63f895475287e35337299feda7707c
BLAKE2b-256 fc4d0462d2a5fb4c9c5053645070bb23151d132d47555eb69affab289b920fe2

See more details on using hashes here.

File details

Details for the file aissemble_open_inference_protocol_shared-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aissemble_open_inference_protocol_shared-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b73538bf105fd62f0d11b670c58f98d6bc4c3d54d258eddc83444864f731281
MD5 d9740a59d41ad23c6a8bf82f44978be4
BLAKE2b-256 51c4c50abb21501890eefd36bbeb807159acdea7193d2b68386b14d199d1af6b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page