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.1.0.tar.gz (8.2 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.1.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cq_schema-0.1.0.tar.gz
  • Upload date:
  • Size: 8.2 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.1.0.tar.gz
Algorithm Hash digest
SHA256 98297d3a6888c891069a9309095c501fba6a36272edbd6062fe3eb6a1a91652e
MD5 cbc7e3128abc5baa50e14d30f7dc9c2e
BLAKE2b-256 aed6a725fb55c28c5bc82ff740ae298df433800b2f31ad1f9c23550f8044949e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: cq_schema-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b359b00069c9e1f0569fabaad420c433009ed898063061951c5e823586d73366
MD5 88285a4cf2ab7cc529594e94d316f040
BLAKE2b-256 2fa370788149e26fe979691f738480e8bfca0fce77025c09347976ac7a640e2f

See more details on using hashes here.

Provenance

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