himring-agent-hooks
This package records what a voice agent built on LiveKit or Pipecat said after it searched a Himring knowledge base, and it sends those answers to Himring so that Himring can judge them.
pip install "himring-agent-hooks[livekit]"
pip install "himring-agent-hooks[pipecat]"
The package needs Python 3.11 or later, and it calls Himring through the himring SDK.
Recording a conversation
from himring_agent_hooks import AnswerRecorder, HimringTarget
from himring_agent_hooks.livekit_hook import attach_livekit_session
recorder = AnswerRecorder(
HimringTarget(
base_url="https://api.himring.ai",
api_key="hk_live_...",
project_id="prj_...",
knowledge_base_id="kb_...",
)
)
conversation = recorder.conversation(end_user_id="caller-7", call_id="room-12")
attach_livekit_session(conversation, session)
found = await conversation.search("When do you open on Sunday?")
The recorder sends answers in batches of at most 100, every 5 seconds by default or as soon as 100 answers are waiting. It retries a batch when Himring is unreachable or answers 429 or a 5xx status, and it waits as long as the Retry-After header asks, up to 60 seconds. The recorder also writes each answer to a spool directory that only your user can read, so that a later recorder can send what an agent left there when its process died.
Call await recorder.close() before the process exits, so that the recorder can send what it still holds.
License
MIT
Metadata
Release files for himring-agent-hooks 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| himring_agent_hooks-0.1.0.tar.gz | 13.7 kB | With provenance | Details for himring_agent_hooks-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| himring_agent_hooks-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for himring_agent_hooks-0.1.0-py3-none-any.whl |
Total release size: 33.0 kB
Release files / himring_agent_hooks-0.1.0.tar.gz
| Download URL | himring_agent_hooks-0.1.0.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
baa7d81a1f2999568ad9fd0724dfd1c181c614a198ea4654c952b2c37f5a30c4
|
|
BLAKE2b-256 checksum How to use checksums |
aec7893313cc3420d774db91031ae898799f2c4a6751ba3d7641206d3c5725b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / himring_agent_hooks-0.1.0-py3-none-any.whl
| Download URL | himring_agent_hooks-0.1.0-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
932a36df435051b7e5003319150f941b94bed448f82a097b339b1648398ff336
|
|
BLAKE2b-256 checksum How to use checksums |
87b51affdf0e79e9f929d407525a78b278fa1b15b3cb647159e607d2d40ecf7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for himring-agent-hooks 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for himring_agent_hooks-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.