SDK for Identa - Agent Evaluation
Project description
Identa SDK 🚀
The user-facing toolkit for evaluating and migrating LLM-based agents. Identa provides a zero-friction experience for LangGraph, PydanticAI, and LangChain agents.
Getting Started
1. Installation
pip install identa-sdk
Features
1. Evaluation Engine
The evaluate function executes your agent against test suites and computes metrics across your agent's graph/flow.
import identa
# Define a test suite
suite = [
{"input": {"query": "Fly to Paris"}, "expected": {"destination": "CDG"}}
]
# Run evaluation with metrics
results = identa.evaluate(
agent=my_agent,
suite=suite,
metrics=["accuracy", "latency"],
resolution="graph"
)
print(results.report())
2. Tracing Service
Use the context-aware span collector to debug agent execution in real-time.
import identa
# Start a trace session
with identa.trace("flight-booking-flow") as tracer:
# Any agent calls within this block are automatically spanned
response = my_agent.run("Book a flight to Tokyo")
# Retrieve trace data
spans = tracer.get_spans()
3. Migration Engine
Validate and apply model-binding swaps (e.g., swapping gpt-4o for claude-3-5-sonnet) safely.
from identa.sdk.migration import MigrationEngine
engine = MigrationEngine(workspace="travel_agent")
# Validate if the swap is safe based on structural drift
is_safe = engine.validate_swap(
source_model="gpt-4o",
target_model="claude-3-5-sonnet"
)
if is_safe:
engine.apply_swap(target_model="claude-3-5-sonnet")
4. Reproduction Engine
Replay previous experiments and detect structural drift between the original run and the current state.
from identa.sdk.reproduction import ReproductionEngine
repro = ReproductionEngine(workspace="travel_agent")
# Replay a failed run
analysis = repro.replay(run_id="run_123")
if analysis.has_drift:
print(f"Structural drift detected: {analysis.drift_details}")
CLI
Identa comes with a CLI to manage your runs and view results.
# List all runs in a workspace
identa runs list --workspace travel_agent
# Show details of a specific run
identa runs show <run_id>
Framework Support
| Feature | LangGraph | PydanticAI | LangChain |
|---|---|---|---|
| Boundary Eval | ✅ | ✅ | ✅ |
| Node Tracing | ✅ | ✅ | ✅ |
| Structural Inspection | ✅ | ✅ | 🚧 |
| Model Migration | ✅ | 🚧 | 🚧 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file identa_sdk-0.4.4.tar.gz.
File metadata
- Download URL: identa_sdk-0.4.4.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1007b7dedd045cffd5e1da05e65ead05f8bb34dce51610257154000501351fd9
|
|
| MD5 |
14a94ce7ab7fda49f9dbbdec1c644cbd
|
|
| BLAKE2b-256 |
557e728364d8b4ec9f41ee8acdc8ffeccbfba560f01f1ff547ab9f2b68d669a9
|
Provenance
The following attestation bundles were made for identa_sdk-0.4.4.tar.gz:
Publisher:
release.yml on Identa-agent/Identa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
identa_sdk-0.4.4.tar.gz -
Subject digest:
1007b7dedd045cffd5e1da05e65ead05f8bb34dce51610257154000501351fd9 - Sigstore transparency entry: 1406368124
- Sigstore integration time:
-
Permalink:
Identa-agent/Identa@0d7eee3ecc76200ad561de54cd060c24bd6bb541 -
Branch / Tag:
refs/tags/v0.4.4 - Owner: https://github.com/Identa-agent
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0d7eee3ecc76200ad561de54cd060c24bd6bb541 -
Trigger Event:
push
-
Statement type:
File details
Details for the file identa_sdk-0.4.4-py3-none-any.whl.
File metadata
- Download URL: identa_sdk-0.4.4-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e240e95e88dbc58a20df6ad1c35a4bcae47828f8c02fc12f5f56d22cc1f1f5f6
|
|
| MD5 |
f946aaf4a774d88a0cdd9caa11473047
|
|
| BLAKE2b-256 |
703a9e0776c5e411ed19edeab81068e911a3f6fb828d5efddf785b0d42a3ec00
|
Provenance
The following attestation bundles were made for identa_sdk-0.4.4-py3-none-any.whl:
Publisher:
release.yml on Identa-agent/Identa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
identa_sdk-0.4.4-py3-none-any.whl -
Subject digest:
e240e95e88dbc58a20df6ad1c35a4bcae47828f8c02fc12f5f56d22cc1f1f5f6 - Sigstore transparency entry: 1406368196
- Sigstore integration time:
-
Permalink:
Identa-agent/Identa@0d7eee3ecc76200ad561de54cd060c24bd6bb541 -
Branch / Tag:
refs/tags/v0.4.4 - Owner: https://github.com/Identa-agent
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0d7eee3ecc76200ad561de54cd060c24bd6bb541 -
Trigger Event:
push
-
Statement type: