ManagedAgentGraph wraps an AgentGraphDefinition and provides a managed run() method that returns ManagedGraphResult with async judge evaluations.

The runner function is responsible for executing the graph and returning an AgentGraphRunnerResult. ManagedAgentGraph builds the managed result from the runner result, including LDAIGraphMetricSummary with the graphTracker's resumptionToken.

Hierarchy

  • ManagedAgentGraph

Constructors

Properties

_graphDefinition: AgentGraphDefinition
_logger?: LDLogger

Methods

  • Runs the agent graph using the provided runner function and returns a ManagedGraphResult.

    The runner function receives the graph tracker and AgentGraphDefinition, executes the graph, and returns an AgentGraphRunnerResult.

    run() returns before ManagedGraphResult.evaluations resolves.

    Parameters

    Returns Promise<ManagedGraphResult>

    ManagedGraphResult with LDAIGraphMetricSummary and evaluations promise.

Generated using TypeDoc