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 framework shims for LangGraph and PydanticAI to enable multi-resolution tracing and performance tracking.

Getting Started

1. Installation

pip install identa-sdk

2. Basic Evaluation (LangGraph)

from identa.sdk import api
from identa.sdk.adapters.langgraph_adapter import LangGraphAdapter

# Set your workspace
api.set_workspace("travel_agent")

# Inspect your graph structure
structure = LangGraphAdapter.inspect(my_graph)

# Wrap for tracing
wrapped_agent = LangGraphAdapter.wrap_for_tracing(my_graph)

# Define a test suite
suite = [
    {"input": {"query": "Fly to Paris"}, "expected": {"destination": "CDG"}}
]

# Run evaluation
with api.start_run("gpt-4-baseline") as run:
    results = api.evaluate(
        agent=wrapped_agent.invoke,
        suite=suite,
        metrics=["exact_match", "latency"],
        resolution="node",
        structure=structure
    )

print(f"Success Rate: {results.aggregates[0].value}")

3. Usage with PydanticAI

from identa.sdk.adapters.pydantic_ai_adapter import PydanticAIAdapter

wrapped_agent = PydanticAIAdapter.wrap_for_tracing(my_agent)

# Evaluate similarly
api.evaluate(agent=wrapped_agent.run, 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
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.1.0.tar.gz (3.8 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.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: identa_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 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.1.0.tar.gz
Algorithm Hash digest
SHA256 adfad32a5dd778bdbd73655b9dc9b9d0bd072d0683761e5bbd4f2f0c78b64ebc
MD5 9f5aef23ba06b010b3b3ba27ccd27dab
BLAKE2b-256 6c54311b001d0763e0166a4651b61bf9513c835788db1e5a3efbfd80efc8105e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: identa_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c64d9e2b245865a13f4b18b462be731724c0ebaec302495c5848a2ce84d00e1e
MD5 ee1806cc952859b30b6e82e60a63a14c
BLAKE2b-256 38c3e96c23bf750971737ad28302216afb04bafd58afb63cedd516a7815918de

See more details on using hashes here.

Provenance

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