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.3.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.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: identa_sdk-0.4.3.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.3.tar.gz
Algorithm Hash digest
SHA256 d7a7d12a89d56305c2ffe55a2fdcc5b8ceecfeb576de02be1313d979fe933c71
MD5 76f9c3ef49661da852eff1b135a4bf05
BLAKE2b-256 e7f91881a951d2e70b0aef81b2a3efc0a372d47147244729a1794c7861e5045e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: identa_sdk-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 67f9fb3dc0d940a4b0b33b5fcd4a75c098fea51a656831ad6f9c58baabbdd052
MD5 ffd6d6d6630b18b619eee618a677e7cc
BLAKE2b-256 c81dde451cfc551664b10cbe7d913e17c94fc38f1ab9901f17aac33c7cdc5679

See more details on using hashes here.

Provenance

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