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.4.0.tar.gz (9.9 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.4.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentforge_evidently-0.4.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentforge_evidently-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b936422504b10e03137235c712e17555204debf0fc9394aa7a35d75e166280fd
MD5 76c9b97f54cee8c5927f497aac29a34a
BLAKE2b-256 e891d5b831b0f4ed6c3b90b0004bf70eadb00c7d70eac5b1485b8b94a0befad0

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_evidently-0.4.0.tar.gz:

Publisher: release.yml on Scaffoldic/agentforge-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for agentforge_evidently-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d420109da489d66b41cba451796ff610d6a40d7178dc3f9cacb29930ada8dbef
MD5 77ca4bf0cefce8cd2c1bc565b69c9b09
BLAKE2b-256 affe63fab1cc70b293b2dbdc89c63cd4541367078e9da85a1722f4ec4bc139ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_evidently-0.4.0-py3-none-any.whl:

Publisher: release.yml on Scaffoldic/agentforge-py

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