Optional _logger: LDLoggerOptional Private Readonly _graphPrivate Optional Readonly _loggerPrivate _trackConverts per-node LDAIMetrics from the runner into LDAIMetricSummary by creating a per-node tracker, firing tracking events, and calling getSummary().
Returns the underlying AgentGraphDefinition.
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.
Async function that executes the graph and returns AgentGraphRunnerResult.
ManagedGraphResult with LDAIGraphMetricSummary and evaluations promise.
Generated using TypeDoc
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.