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 node-level resolution
results = identa.evaluate(
    agent=my_agent, 
    suite=suite,
    metrics=["accuracy", "latency"],
    resolution="node"
)

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.core.domain.migration import MigrationEngine, MigrationPlan

# Validate if a model swap is safe based on structural drift
plan = MigrationPlan(id="swap-to-claude", source_structure_hash="...", changes=[])
plan.replace_model(node="llm_1", to="claude-3-5-sonnet")

results = identa.evaluate(agent=my_agent, suite=suite)
report = MigrationEngine.validate(plan, agent=my_agent, current_structure=results.structure)

if report.ok:
    print("Migration is safe!")

4. Reproduction Engine

Replay previous experiments and detect structural drift between the original run and the current state.

# Replay a previous run with structural parity checks
results = identa.reproduce(
    run_id="run_123",
    agent=my_agent,
    suite=suite
)

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 🚧 🚧

Architecture & Contributing Guidelines

To maintain clean architectural boundaries, all contributions must follow these rules:

  • The Adapter Rule: If you are integrating a new third-party framework (e.g., LlamaIndex, LangChain), it goes in identa/sdk/adapters/. If you are adding a new internal domain concept, metric, or tracing algorithm, it goes in identa-core.
  • The Import Rule: Application code (end-users) should only import from identa.sdk. Internal tools (like identa-cli) are permitted to instantiate identa.core commands directly, provided they use the sdk.api.execute() bus for execution.
  • Strict Public API: Only functions explicitly listed in identa/__init__.py's __all__ are considered part of the stable public API.

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.9b3.tar.gz (11.7 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.9b3-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file identa_sdk-0.4.9b3.tar.gz.

File metadata

  • Download URL: identa_sdk-0.4.9b3.tar.gz
  • Upload date:
  • Size: 11.7 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.9b3.tar.gz
Algorithm Hash digest
SHA256 ca5286662a4c8a18ce326fea1e6d1596e77fe29889172950c6826c4cc3ea2f96
MD5 a9d6c90f8446150b3f9f85a87bda8d57
BLAKE2b-256 6dc0667050eb5f39305e2e78b2876eed21c555cde9a6785da4033c2f4c091be1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: identa_sdk-0.4.9b3-py3-none-any.whl
  • Upload date:
  • Size: 14.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.9b3-py3-none-any.whl
Algorithm Hash digest
SHA256 9c8f501f3b7ef25e5340606c447ab7f4fdfb14fb20e4e1f85f3cb6512435ded4
MD5 a8e45e0bc36c965896d27df83229a972
BLAKE2b-256 5ca82edca33560acf909880e21a60d26fb96affff153088f4e070c173363277c

See more details on using hashes here.

Provenance

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