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.6.tar.gz (9.9 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.6-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: identa_sdk-0.4.6.tar.gz
  • Upload date:
  • Size: 9.9 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.6.tar.gz
Algorithm Hash digest
SHA256 3813bcb15eb47fba04c9a0f10fc672387a555136b353832cc3e016e0b4553061
MD5 43de93620b6b5439d43d2e2623b9ba9a
BLAKE2b-256 635666b839c7895683d3dec03a59149c113ab84acd883055886fbbc857ec58b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for identa_sdk-0.4.6.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.6-py3-none-any.whl.

File metadata

  • Download URL: identa_sdk-0.4.6-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f752cead458887688e5059587276a00ebb75be63317533189db6429277230e41
MD5 39b47a184d42abb1afb72f0aeef37f79
BLAKE2b-256 a90b5f72453d108dd9d6dd3262dfd52642f6c2be1c8e90a5e8c004fa06076303

See more details on using hashes here.

Provenance

The following attestation bundles were made for identa_sdk-0.4.6-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