BeamAgent.Verifier (beam_agent v0.1.0)

Copy Markdown View Source

Verifies whether an agent execution satisfied the expected conditions.

This is a thin dispatcher: it runs whichever module is configured under the :module key of a run's :verification opts (defaulting to BeamAgent.Verifier.Default), so callers can plug in domain-specific verification — e.g. checking the answer's shape, calling out to another service, requiring specific tool arguments — by implementing BeamAgent.Verifier.Behaviour and passing verification: [module: MyVerifier, ...].

Summary

Functions

Runs the configured verifier (opts[:module], default BeamAgent.Verifier.Default) against run.

Functions

verify(run, opts \\ [])

@spec verify(
  BeamAgent.Run.t(),
  keyword()
) :: :ok | {:error, term()}

Runs the configured verifier (opts[:module], default BeamAgent.Verifier.Default) against run.