Skip to main content

AI Detection & Response SDK to monitor and protect agentic applications

Project description

AI Detection & Response Python-based SDK for monitoring agent workflows, language model execution, tool calls, and relevant data sources.

Features

  • Automatic tracing: Works with any language model provider (OpenAI, Anthropic, custom)
  • Zero code changes: Just initialize and go
  • Comprehensive telemetry: Tracks tools, models, prompts, reasoning
  • Simple API: 2 lines of code

Supported Frameworks

  • OpenAI SDK
  • Anthropic SDK
  • Google (Gemini) SDK
  • AWS Bedrock SDK
  • Azure Foundry SDK
  • LiteLLM SDK
  • LangChain

Installation

pip install evoke-sdk

Quick Start

import evoke

# Initialize once at startup
evoke.init(api_key="evoke_pk_your_api_key")

# All LLM calls are now automatically traced!
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
    model="gpt-4",
    messages=[{"role": "user", "content": "Hello!"}]
)

What Gets Tracked

  • Models: Which models were used (gpt-4, claude-3, etc.)
  • Prompts & Responses: Full input and output data
  • Tools: Which tools/functions were called
  • Data Sources: Which vector stores/retrievers were accessed
  • Tokens: Input/output/cached token counts
  • Timing: Duration and timestamps
  • Errors: Exceptions and stack traces

Optional: Explicit Tracing

Use the @guard decorator for high-level workflows:

@evoke.guard(name="customer_support_agent")
def handle_customer_query(query: str):
    # Your agent logic
    return agent.run(query)

Optional: Add Custom Context

Link custom business values to track custom events and create custom detections:

@evoke.guard(name="process_order")
def process_order(order_id: str, user_id: str):
    evoke.add_context(
        user_id=user_id,
        order_id=order_id,
        environment="production"
    )
    return process()

Flush Before Exit

Ensure all data is sent before your app exits:

# At the end of your script
evoke.flush()

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

evoke_sdk-0.1.1.tar.gz (52.6 kB view details)

Uploaded Source

Built Distribution

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

evoke_sdk-0.1.1-py3-none-any.whl (77.3 kB view details)

Uploaded Python 3

File details

Details for the file evoke_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: evoke_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 52.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for evoke_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e245de3bb4a4c1b33a808918c17bd6b4f1831d38d0c74f8338c96cacab787467
MD5 c486fe18102b8fc1be79281f0c27dc21
BLAKE2b-256 b89b53e00ab5ed9feec88f7df28e4c82b4b65675e4baa01d039e84b2e9271f45

See more details on using hashes here.

File details

Details for the file evoke_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: evoke_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 77.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for evoke_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6983d9774ea35a484d5363c022d46715522fd530f3f77fa98f1426dced4b0943
MD5 21144658afd3923b3eeaa1ea559767d4
BLAKE2b-256 6ebf005643b2fc84a240fd3fa2b854b68935f4a588a95bccceceebcdaceeec0c

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