Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

identa_sdk-0.4.5.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

identa_sdk-0.4.5-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file identa_sdk-0.4.5.tar.gz.

File metadata

  • Download URL: identa_sdk-0.4.5.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

Hashes for identa_sdk-0.4.5.tar.gz
Algorithm Hash digest
SHA256 8cfcf6738c2cc16f65f9cbe3566e711163a0f992ba85fceeb3f5a47850fe8237
MD5 723143151782203e39ef488938723a8f
BLAKE2b-256 5e59ba3865be8ccb53c24003c951bf2f9df39370c2ca6a42c35cd54b4ed404a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for identa_sdk-0.4.5.tar.gz:

Publisher: release.yml on Identa-agent/Identa

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

File details

Details for the file identa_sdk-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: identa_sdk-0.4.5-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

Hashes for identa_sdk-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7f60fb4f890abc3e4f5b4175bd39483cf43c3c2e61e2116ff15408aabed5faee
MD5 48124a6afd20a0b2285d1efe349d7d53
BLAKE2b-256 00d1b658a85d22410033efde46afd374c8098a876dc9e28d02ab1891aed0dae7

See more details on using hashes here.

Provenance

The following attestation bundles were made for identa_sdk-0.4.5-py3-none-any.whl:

Publisher: release.yml on Identa-agent/Identa

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