Skip to main content

Copass agent primitives for the Hermes API server (NousResearch hermes-agent), routed to LLMs via OpenRouter

Project description

copass-hermes-agents

Copass agent primitives for the Hermes API server (NousResearch hermes-agent), routed to LLMs via OpenRouter.

This package owns the Hermes-specific backend and the CopassHermesAgent(BaseAgent) convenience subclass. Hermes itself runs inside a per-(user, sandbox) Daytona sandbox; this client speaks HTTP/SSE to the sandbox endpoint via httpx.AsyncClient.

Spike-locked posture (ADR 0008 Phase 1b)

  • Stateless /v1/chat/completions only. The full conversation history is sent in messages[] on every turn — Hermes' on-disk session DB is unused.
  • Authorization: Bearer <API_SERVER_KEY> on every call. The bearer is the per-sandbox caller-side key minted at provision time; it is NOT an LLM key.
  • Single OpenRouter credential-pool entry per sandbox (no rotation). Hermes resolves the OpenRouter key from process env at agent construction time.
  • Model strings use the hermes/<openrouter-model-id> shape; the backend strips the hermes/ prefix before forwarding to Hermes.

Conversation metadata: speaker + participants

When auto_record=True (the default when window is supplied), the agent constructs a CopassTurnRecorder that auto-populates the envelope's typed metadata on every turn:

  • speaker — set from the author constructor arg on assistant turns; falls back to "User" / "Assistant" from the role on user turns.
  • participants — defaults to ["User", author or "Assistant"]. The roster rides on every turn so downstream retrieval can resolve second-person pronouns.
agent = CopassHermesAgent(
    identity="support",
    system_prompt="You are helpful.",
    sandbox_url=os.environ["HERMES_SANDBOX_URL"],
    api_server_key=os.environ["HERMES_API_KEY"],
    window=window,
    author="agent:support-bot",   # → speaker on every assistant turn
    # participants auto-defaults to ["User", "agent:support-bot"]
)

If you need a richer roster (multi-party threads) or a logged-in user identity, build a CopassTurnRecorder directly with participants=... and user_speaker="Alice", then pass auto_record=False to the agent and drive recording yourself. See copass-context-agents for the recorder surface and full envelope semantics.

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_hermes_agents-1.4.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

copass_hermes_agents-1.4.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file copass_hermes_agents-1.4.0.tar.gz.

File metadata

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

File hashes

Hashes for copass_hermes_agents-1.4.0.tar.gz
Algorithm Hash digest
SHA256 7bee21dfeffe8bb2c61c7c7f0c0590c002c919bc8b567e16de74e77f8338dd07
MD5 005169dc75162f3d7015ca52ad8f37a4
BLAKE2b-256 09f3866599b074e5a32fb4c7e8a95f4a52fd01eee9e0c1dc5e8bba8f5ebaba0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for copass_hermes_agents-1.4.0.tar.gz:

Publisher: release-python.yml on olane-labs/copass

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

File details

Details for the file copass_hermes_agents-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for copass_hermes_agents-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05b30ff3070bf2a376257b2fcd7b14cd4674024319bf9d83d89d07e741bb7f3f
MD5 d541e188cb62c5227699cab005b8f64a
BLAKE2b-256 3121c26ff0633ca88c84beaa202889b2aacdbef3789e80f0300d6290c92a9051

See more details on using hashes here.

Provenance

The following attestation bundles were made for copass_hermes_agents-1.4.0-py3-none-any.whl:

Publisher: release-python.yml on olane-labs/copass

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