Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

withlore

Connect your voice or text agent to Lore. Lore records its traces, tool calls, conversations and call audio, then simulates users against it and grades every conversation.

Documentation: docs.lore-labs.ai

Create a key in Lore under Settings → Projects & keys, then:

export LORE_API_KEY="lore_sk_..."

Voice agents (LiveKit)

pip install "withlore[livekit]"

In your job entrypoint, before session.start():

from withlore.livekit import observe

await observe(ctx, session)
await session.start(agent=agent, room=ctx.room)

Lore records both sides of the call audio, the transcript with per-turn latency, tool calls and LiveKit's spans. When Lore simulates callers against your agent, the same call records into the simulation instead of production. See the LiveKit guide.

Text and AI agents

Install withlore with the extra for your framework, then call withlore.init() at startup, before you create your model client.

pip install "withlore[openai]"
import withlore

withlore.init()

with withlore.conversation() as convo:
    reply = client.chat.completions.create(model="gpt-5-mini", messages=messages)
    convo.record(messages + [reply.choices[0].message])

withlore.init() records traces. convo.record() records the conversation from the messages your framework already keeps: OpenAI and Anthropic message lists, OpenAI Agents SDK results, LangChain and LangGraph messages, and Claude Agent SDK messages.

Framework Install
OpenAI withlore[openai]
Anthropic withlore[anthropic]
OpenAI Agents SDK withlore[openai-agents]
Claude Agent SDK withlore[claude-agent-sdk]
LangChain / LangGraph withlore[langchain]

See Record conversations for chats that span several requests.

Name your agent

Set both of these so Lore can track the agent and compare its versions. If one process runs several agents, see Agents and versions.

export LORE_AGENT_KEY="support-agent"       # Stays the same
export LORE_AGENT_VERSION="2026-10-19"      # Changes with each release

Simulate and evaluate

withlore.Client and the withlore CLI run scenarios, simulations and grading from code or CI. Start with withlore auth login, then withlore catalog --json. See Evaluate your agent.

Bring an existing eval suite as a lore.library.v1 bundle (personas, metrics, scenarios and suite or holdout collections, each with a stable key): withlore library import bundle.json --dry-run, then without --dry-run. Repeating an import changes nothing; withlore library export prints the project's library for diffing. See Import a library.

Privacy

Trace content (prompts, outputs, tool payloads) follows capture_content or LORE_TRACE_CONTENT when you set them, and otherwise your project's setting; without either, Lore receives operational metadata only: models, token counts, timing and status. LiveKit agents stay metadata only unless you opt in. Redaction rules the project turns on run in the SDK before anything is sent. Conversation transcripts, tool payloads and audio are recorded only when your code asks for them and your project admits them. See Privacy.

Licensed under Apache-2.0.

Metadata

Release files for withlore 0.2.0a37

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for withlore 0.2.0a37
File Size Uploaded Provenance Actions
withlore-0.2.0a37.tar.gz 602.1 kB With provenance Details for withlore-0.2.0a37.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for withlore 0.2.0a37
File Interpreter ABI Platform Actions
withlore-0.2.0a37-py3-none-any.whl Python 3 none any Details for withlore-0.2.0a37-py3-none-any.whl

Total release size: 732.5 kB

Release files / withlore-0.2.0a37.tar.gz

Download URL withlore-0.2.0a37.tar.gz
Size 602.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bfe822eff8d20b015354b8619b68f774255b0ebe057b6f7ec97bdd62ca5625fa
BLAKE2b-256 checksum
How to use checksums
98ab080d5a249377a223239484c773379d227224f1285431500c78a22d4227ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 19, 2026.

Transparency log

Release files / withlore-0.2.0a37-py3-none-any.whl

Download URL withlore-0.2.0a37-py3-none-any.whl
Size 130.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7e86b0ca300baed5efb9364445cd2f171e6a4d4855c4b87ae61f80953fcd5ce
BLAKE2b-256 checksum
How to use checksums
5975dd0543a7bd0a0b2b4ecb05704d06d082c89b17444cdf5915a59f0bf6b461
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 19, 2026.

Transparency log

Security for withlore 0.2.0a37

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.

Select from 2 files

Attestation for withlore-0.2.0a37.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 19, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page