Skip to main content

Canonical tool descriptions, parameter descriptions, and system prompts shared across every Copass Python adapter

Project description

copass-config

Canonical strings shared across every Python Copass adapter. Python mirror of @copass/config.

This package owns the single source of truth (for Python) for:

  • Tool descriptions the LLM sees (DISCOVER_DESCRIPTION, INTERPRET_DESCRIPTION, SEARCH_DESCRIPTION, MCP_DISCOVER_DESCRIPTION)
  • Parameter descriptions (DISCOVER_QUERY_PARAM, INTERPRET_ITEMS_PARAM, etc.)
  • System prompts (COPASS_AGENT_MCP_SYSTEM_PROMPT, COPASS_AGENT_SDK_SYSTEM_PROMPT)

Every Python Copass adapter (copass-pydantic-ai, copass-langchain, copass-anthropic-agents, etc.) imports from here so the LLM sees identical tool semantics regardless of framework wrapping.

Install

pip install copass-config

Zero runtime dependencies.

Usage

from copass_config import DISCOVER_DESCRIPTION, COPASS_AGENT_SDK_SYSTEM_PROMPT

# Register a tool whose LLM-facing description matches every other
# Copass adapter:
my_tool = Tool(
    name="discover",
    description=DISCOVER_DESCRIPTION,
    ...
)

# Seed an agent with the canonical Copass system prompt:
agent = BaseAgent(
    identity="copass-agent",
    system_prompt=COPASS_AGENT_SDK_SYSTEM_PROMPT,
    ...
)

Keeping in sync with @copass/config

This package is hand-ported from the TS source. When the TS side changes:

  1. Update the matching constant in src/copass_config/.
  2. Bump the minor version in pyproject.toml and __init__.py.
  3. Republish.

A future release may auto-generate these constants from the TS package's build artifacts.

License

MIT.

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

copass_config-0.5.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

copass_config-0.5.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file copass_config-0.5.0.tar.gz.

File metadata

  • Download URL: copass_config-0.5.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.9

File hashes

Hashes for copass_config-0.5.0.tar.gz
Algorithm Hash digest
SHA256 bb83e2fdb71457e5556d29c5255f08372157ceae10cbbbb9f0257740d111303e
MD5 c57e60213b896c08701c900d302bc97a
BLAKE2b-256 9fe70124b506aaf86423f9a4348ae6b1aa0c84466e9c697579e94ec2474dcbb3

See more details on using hashes here.

File details

Details for the file copass_config-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: copass_config-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.9

File hashes

Hashes for copass_config-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f3a41ac5bcbd9b84a72cba412dc207041c91d6797d30ab8c885772d72120c92
MD5 dc25f4b43ba63849b771c03304924f75
BLAKE2b-256 b43e1d9e8848cad3be6999ee5d5b87474a60df6702abc74eaae0bf3ea7c50779

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