Skip to main content

Canonical JSON Schemas and scoring values for cq — shared agent knowledge commons

Project description

cq-schema

Canonical JSON Schemas and parsed scoring values for cq.

This package ships:

  • The JSON Schema documents that define the cq wire format (knowledge units, scoring, query/propose/confirm/flag/review payloads, health, stats).
  • Parsed scoring constants (relevance weights, confidence bounds) drawn from scoring.values.json.

The package deliberately ships no JSON Schema validator. Consumers that need runtime validation can pass load_schema_bytes(name) (or load_schema(name)) to their preferred library (e.g. jsonschema).

Usage

import json

import jsonschema

from cq_schema import (
    CONFIRMATION_BOOST,
    DOMAIN_WEIGHT,
    INITIAL_CONFIDENCE,
    load_schema,
    load_schema_bytes,
)

# Parsed constants (immutable; treat as read-only).
print(DOMAIN_WEIGHT, INITIAL_CONFIDENCE, CONFIRMATION_BOOST)

# Raw schema documents.
schema = load_schema("knowledge_unit")
jsonschema.validate(instance=my_unit, schema=schema)

# Or as bytes if your validator prefers.
raw = load_schema_bytes("scoring")

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

cq_schema-0.2.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

cq_schema-0.2.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file cq_schema-0.2.0.tar.gz.

File metadata

  • Download URL: cq_schema-0.2.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cq_schema-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b12d07f3ccad3ef8e2a5798a15101e2b6fd4712c9bd5ec5289c8379fff910ded
MD5 d2f41be371ef962b6088ea16323da72c
BLAKE2b-256 44e7decbad3d55a393cc0b73fc708d8892d28daa3ad823dec473be80bdb15a86

See more details on using hashes here.

Provenance

The following attestation bundles were made for cq_schema-0.2.0.tar.gz:

Publisher: release-schema.yaml on mozilla-ai/cq

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

File details

Details for the file cq_schema-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cq_schema-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cq_schema-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e7484f1b2545ca500b91a6bb414f69498d4fbbc58f715e9ea5a33551dd12448
MD5 9425bb1217c5b9922ad9200199bdee69
BLAKE2b-256 953cbe36a9a5cf2e4174823430f42145647ec04ef3cde2b5ebdb1a7baa425caa

See more details on using hashes here.

Provenance

The following attestation bundles were made for cq_schema-0.2.0-py3-none-any.whl:

Publisher: release-schema.yaml on mozilla-ai/cq

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