Skip to main content

KATE SDK — local-first auto-eval for AI agents

Project description

PyPI License Python

KATE SDK

Auto-eval and observability for AI agents. Trace every LLM call, run evaluations, and catch regressions before they ship.

Install

pip install projectkate

Optional instrumentation extras

pip install projectkate[openai]                # OpenAI
pip install projectkate[anthropic-instrument]  # Anthropic
pip install projectkate[langchain]             # LangChain / LangGraph
pip install projectkate[mistral]               # Mistral
pip install projectkate[vertexai]              # Vertex AI
pip install projectkate[google-genai]          # Google GenAI
pip install projectkate[crewai]                # CrewAI
pip install projectkate[all]                   # All supported providers

Quick Start

Trace mode — instrument your agent

import projectkate

# Initialize — reads KATE_API_URL, KATE_API_KEY, KATE_AGENT_ID from env
projectkate.init()

@projectkate.trace("summarize")
def summarize(text: str) -> str:
    return client.messages.create(
        model="claude-sonnet-4-20250514",
        messages=[{"role": "user", "content": f"Summarize: {text}"}],
    ).content[0].text

async with projectkate.run() as ctx:
    result = summarize("Today's top news stories...")
    ctx.output(result)

Management client — programmatic platform access

from projectkate import KateClient

async with KateClient(api_key="kate_...") as kate:
    # List your agents
    agents = await kate.agents.list()

    # Check eval results for a run
    evals = await kate.evals.get_run_evals(run_id="...")

    # Publish an artifact
    await kate.artifacts.publish(artifact_id="...")

    # Check wallet balance
    balance = await kate.wallet.get_balance()

How KATE Compares

Feature KATE LangSmith Arize Phoenix
Built for agentic loops Yes Partial (RAG-focused) Partial
Auto-instrumentation Yes, zero-config Manual setup Manual setup
Hallucination detection Built-in Separate tool needed Built-in
Open source Yes No Yes
Framework agnostic Yes LangChain-first Yes
Self-hostable Yes No Yes

Local Eval (no server needed)

Run evaluations locally against your agent with zero infrastructure:

from projectkate.local import LocalEvalRunner

runner = LocalEvalRunner(agent_fn=my_agent)
results = await runner.run(test_cases=[
    {"input": "Summarize the news", "expected": "A concise summary..."},
])
runner.print_results(results)

Documentation

  • Docs — guides, API reference, and examples

License

Apache 2.0 — see LICENSE.

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

projectkate-0.2.1.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

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

projectkate-0.2.1-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

Details for the file projectkate-0.2.1.tar.gz.

File metadata

  • Download URL: projectkate-0.2.1.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.5

File hashes

Hashes for projectkate-0.2.1.tar.gz
Algorithm Hash digest
SHA256 81ffcbd561cb7bb446022c45e52d5931ca78c7ba0bf1db9dc213250460c206fd
MD5 88d6cb6705724e5921a8ab02c3ca2639
BLAKE2b-256 c2e484f8b8afcc8c21bd7ad2b5cb43077b0723e715bb4c9e33e428e5375287f4

See more details on using hashes here.

File details

Details for the file projectkate-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: projectkate-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 35.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.5

File hashes

Hashes for projectkate-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b75112c1411ee8e4d1e0ab88be9db48c7d5d55d8c35127eb034dc151a21df3b
MD5 8fcc9fd35c2f9e866f8469aec3364ae1
BLAKE2b-256 4fe73cf78c020fddef18cda01a3de5169da8369d5c2b9b3a933022fae18bf9b1

See more details on using hashes here.

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