Circle Flake
The experimentation and measurement platform for AI agents.
Circle Flake helps teams understand how their AI agents perform in production, measure the outcomes that matter, and systematically improve how those agents work.
Agents are becoming increasingly capable, but capability alone does not tell us whether an agent is effective. Teams need to understand what agents actually do, how their actions contribute to business outcomes, and whether a new version or strategy performs better than the existing one.
Circle Flake provides the measurement and experimentation layer for this evolution.
Capture agent execution from LangChain, LangGraph, and Deep Agents using one framework-independent trace/span model.
Install
pip install circleflake
LangChain
Run the included deterministic sample (no provider API key required):
python examples/langchain_agent.py
from circleflake import CircleFlake
cf = CircleFlake(agent_name="gtm-agent")
# Pass the handler to a chain/model invoke call.
result = chain.invoke(
{"input": "Qualify Acme"},
config={"callbacks": [cf.langchain_handler]},
)
# Export captured traces as JSON.
print(cf.exporter.exported)
# Optional: POST completed traces to your Circle Flake ingestion endpoint.
# cf = CircleFlake(agent_name="gtm-agent",
# endpoint="https://api.example.com/v1/traces",
# api_key="...")
cf.flush()
LangGraph
LangGraph accepts LangChain callback handlers through RunnableConfig:
result = graph.invoke(
{"messages": [...]},
config={"callbacks": [cf.langgraph_handler]},
)
The LangGraph adapter uses the callback lifecycle and records graph/node metadata when supplied by the runtime.
Deep Agents
Deep Agents are built on the LangGraph/LangChain runtime. Start by passing the Deep Agents adapter in the same callbacks config:
result = agent.invoke(
{"messages": [...]},
config={"callbacks": [cf.deepagents_handler]},
)
This captures framework callback activity. Deep-Agent-specific planning and delegation semantics are not yet normalized into dedicated span types; those will be added against the exact Deep Agents version used by your application.
Data handling
Inputs and outputs are not captured by default. Set capture_content=True only
if you have reviewed the privacy implications for your prompts, tool arguments,
and outputs.
Agent Framework request
email project maintainer at dheerajkaim@circleflake.com for feature requests or to add new agent frameworks.
Metadata
Release files for circleflake 0.1.4
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 |
|---|---|---|---|---|
| circleflake-0.1.4.tar.gz | 12.1 kB | Without provenance | Details for circleflake-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| circleflake-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for circleflake-0.1.4-py3-none-any.whl |
Total release size: 25.8 kB
Release files / circleflake-0.1.4.tar.gz
| Download URL | circleflake-0.1.4.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3812d331c3161b83739bed5004f369d9bf8a7540a7227c2eca9dd021ab53230
|
|
BLAKE2b-256 checksum How to use checksums |
7498604ffc4fbbf92496ac188d06ce05e74ac5abfb80a29e409aa3c31432d74b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / circleflake-0.1.4-py3-none-any.whl
| Download URL | circleflake-0.1.4-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64bdce19789fdeb5ccc4f88338cdb7651509fc43d01d0dd77172dafec9c118f4
|
|
BLAKE2b-256 checksum How to use checksums |
80865a44f67a002e287a9dbd11e4578199a43eba06776c51552b30912bd576c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for circleflake 0.1.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.