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

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentforge_evidently-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 431b6dd6a78cfb7e125a96814521e97287dea5cbcdc5e5afe065fd891b0a68df
MD5 2b778de30fac37426c42d4340b47c7b1
BLAKE2b-256 322d18a2793f70277dd08a7706773ca562a6b9c1078261296d6de9197b891a61

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for agentforge_evidently-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b468a5927e0d700f16d6021adc007eedc5738e0dbbc3d3eabc10e1741a1a6f8
MD5 0de640ca4812575897539ceef4d4f35e
BLAKE2b-256 344d005b36b29296b02a680f241114934f7f8f4c111b095bec1038ea169a6341

See more details on using hashes here.

Provenance

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