Skip to main content

Evidently AI metrics + drift hook for AgentForge

Project description

agentforge-evidently

Evidently AI agent metrics + drift hook for the AgentForge framework.

Implements the StepHook + FinishHook contracts and registers as agentforge.hooks:evidently.

Installation

pip install agentforge-evidently[evidently]

Usage

from agentforge import Agent
from agentforge_evidently import EvidentlyHook

hook = EvidentlyHook.from_config(
    project="my-agent",
    report_dir="./evidently-reports",
)

agent = Agent(
    model="bedrock:...",
    on_step=hook,
    on_finish=hook,
)

What gets reported

Per-step records (one row per Step):

Column Source
run_id bound RunContext.run_id
iteration step.iteration
kind step.kind
cost_usd step.cost_usd
tokens_in / tokens_out step.tokens_in / step.tokens_out
duration_ms step.duration_ms
has_tool_call step.tool_call is not None

At finish, the hook appends a run-level row and writes an Evidently Report JSON to <report_dir>/<run_id>.json. The report carries the buffered rows + RunResult.finish_reason + RunResult.cost_usd so an offline analysis pipeline can compute drift / quality metrics across runs.

License

Apache-2.0.

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

agentforge_evidently-0.2.3.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

agentforge_evidently-0.2.3-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file agentforge_evidently-0.2.3.tar.gz.

File metadata

  • Download URL: agentforge_evidently-0.2.3.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentforge_evidently-0.2.3.tar.gz
Algorithm Hash digest
SHA256 1aef1762c6d63d4b4431402e21b1e1458f874f3fa97a45312c9d1275575f4935
MD5 a006127aca25348a223d8cf02e8658ed
BLAKE2b-256 38c98b7afced549b64ff2855936567e767ef113878aeff74b1ae41a95b3e491e

See more details on using hashes here.

File details

Details for the file agentforge_evidently-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: agentforge_evidently-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentforge_evidently-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1c283e3a7cdf787833e31a49ac23791a6c17b1bcaf36fd5081e6396c538c9371
MD5 3fb16c97fd971955ceac51bb0f22a5e1
BLAKE2b-256 c00ff22e199460ebe293937d546e10d55ceedca1c4bb708123e377253fd938fa

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