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.3.1.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.3.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentforge_evidently-0.3.1.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.3.1.tar.gz
Algorithm Hash digest
SHA256 603358982aec3f45e52327e992697b38f0fd8bf1bbbd39565c296017a00abb02
MD5 d8075ee3de3495a702c882d802340232
BLAKE2b-256 0db1766994688ae8b739b4e2eb8b9d5538ff922a1e61cd62e825b4938ab5da0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_evidently-0.3.1.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.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for agentforge_evidently-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 01a78538203f8c2852f647bf4cfacf28d2d80ad4a99ede7f140de61804ef3d8f
MD5 60f54be6984affd8f660cc7f4152c363
BLAKE2b-256 5b8efde94d4ceeef6475c5f08e878a99092ef724224bef87bfa94ccd30458d70

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_evidently-0.3.1-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