Skip to main content

Frozen interface contracts for kailash-ml and kailash-kaizen interop

Project description

kailash-ml-protocols

Frozen interface contracts for the Kailash ML ecosystem. This thin package (~160 lines, zero dependencies) breaks the circular dependency between kailash-ml and kailash-kaizen.

Install

pip install kailash-ml-protocols

No dependencies required -- Python 3.10+ stdlib only.

Protocols

MLToolProtocol

Tools that Kaizen agents call via MCP to access ML capabilities.

  • predict(model_name, features, *, options=None) -- Single-record prediction
  • get_metrics(model_name, version=None, *, options=None) -- Model metrics
  • get_model_info(model_name, *, options=None) -- Model metadata

AgentInfusionProtocol

Protocol for agent-augmented engine methods.

  • suggest_model(data_profile, task_type, *, options=None) -- Suggest model families
  • suggest_features(data_profile, existing_features, *, options=None) -- Suggest feature engineering
  • interpret_results(experiment_results, *, options=None) -- Interpret experiment results
  • interpret_drift(drift_report, *, options=None) -- Interpret drift report

Schemas

  • FeatureField -- Single feature column definition
  • FeatureSchema -- Schema for a feature set with to_dict() / from_dict() round-trip
  • ModelSignature -- Input/output schema for a trained model
  • MetricSpec -- A single evaluation metric with its value

License

Apache 2.0 -- Terrene Foundation

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

kailash_ml_protocols-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file kailash_ml_protocols-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kailash_ml_protocols-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ba510da5d45f4ab3087aacc46bc1037ccc90e9bec9ebd3737e17bf8dec0ea8a
MD5 eb156a7a058a5061ede1a3ca24046b00
BLAKE2b-256 360c53670b0c56b7bad7d4728466ce03dd4966551ed3e3af52885da5094e7043

See more details on using hashes here.

Provenance

The following attestation bundles were made for kailash_ml_protocols-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on terrene-foundation/kailash-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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