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.0.1.tar.gz (7.5 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.0.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cq_schema-0.0.1.tar.gz
  • Upload date:
  • Size: 7.5 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.0.1.tar.gz
Algorithm Hash digest
SHA256 d0cd7fb930e4e7ab600119578fe3e5eb9870fed08b4c165566e093450963007f
MD5 60aea3e93ecf27f03aefa1cb7d594bde
BLAKE2b-256 b7e296487f6b21bcc75e8d4d4d7e4df4db7c7ca84de8d91229c037196392e032

See more details on using hashes here.

Provenance

The following attestation bundles were made for cq_schema-0.0.1.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.0.1-py3-none-any.whl.

File metadata

  • Download URL: cq_schema-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 48a32d7fc7e46a3739e94c64942831edd08d7e71e2f2ff693846b0fa444eedde
MD5 f5c514325723b4a20c32f1ffc4585842
BLAKE2b-256 9ebcdaa0544d8d4b45705e2aaf5096c52f6ff18150626af371ad48b9489cf04f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cq_schema-0.0.1-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