Skip to main content

Shared Utilities for aiSSEMBLE Open Inference Protocol

Project description

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:

  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.0.1.tar.gz.

File metadata

File hashes

Hashes for aissemble_open_inference_protocol_shared-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8383450d4262f7af0e8267f0aaa10d1ec0259dcedc109576ef33e5aa65580709
MD5 d498e2c658b0619f635fa3f08e2dc46a
BLAKE2b-256 8409f01d20e122d6e4d8aebc937fcac313553cc7b31051411432997e5119ccee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aissemble_open_inference_protocol_shared-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8465be43c49305a2f8b7a1072c67ea89277f769346f63841d961b812faa70008
MD5 58269f8eb8f53e175951921bcdd0343a
BLAKE2b-256 3461b09f556c1dcefd3373ac1e26612d4402aedca42b59c7a01445feea7781df

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