Skip to content

feat: add ManagedGraphResult, GraphMetricSummary, and ManagedAgentGraph#1335

Draft
jsonbailey wants to merge 1 commit intojb/aic-1657/js-agent-evaluationsfrom
jb/aic-2388/js-managed-graph-result
Draft

feat: add ManagedGraphResult, GraphMetricSummary, and ManagedAgentGraph#1335
jsonbailey wants to merge 1 commit intojb/aic-1657/js-agent-evaluationsfrom
jb/aic-2388/js-managed-graph-result

Conversation

@jsonbailey
Copy link
Copy Markdown
Contributor

Summary

  • Adds GraphMetrics interface (runner-level: success, path, durationMs?, usage?, nodeMetrics — no handoffs)
  • Adds AgentGraphRunnerResult interface (content, metrics as GraphMetrics, raw? — no evaluations)
  • Adds GraphMetricSummary (extends GraphMetrics with resumptionToken?)
  • Adds ManagedGraphResult (content, metrics as GraphMetricSummary, raw?, evaluations promise)
  • Creates ManagedAgentGraph class with run(runner) that accepts a runner function, builds GraphMetricSummary from runner result + graphTracker.resumptionToken, returns ManagedGraphResult
  • Exports all new types and class from public API

Test plan

  • 206 tests pass
  • ManagedAgentGraph.test.ts covers: run() builds correct metrics, passes definition+tracker to runner, creates tracker, empty evaluations

🤖 Generated with Claude Code

@jsonbailey jsonbailey force-pushed the jb/aic-1657/js-agent-evaluations branch from 3031d7d to 550ee5c Compare April 28, 2026 23:16
…ph (AIC-2388)

Introduces GraphMetrics (runner-level: success, path, durationMs?, usage?,
nodeMetrics — no handoffs), AgentGraphRunnerResult (content, metrics, raw?),
GraphMetricSummary (extends GraphMetrics with resumptionToken?), and
ManagedGraphResult (content, metrics, raw?, evaluations). Creates ManagedAgentGraph
class with run(runner) that builds GraphMetricSummary from runner result plus
graphTracker.resumptionToken. Exports new types and class from public API.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jsonbailey jsonbailey force-pushed the jb/aic-2388/js-managed-graph-result branch from 6583620 to 2ab8546 Compare April 28, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant