feat: add ManagedGraphResult, GraphMetricSummary, and ManagedAgentGraph#1335
Draft
jsonbailey wants to merge 1 commit intojb/aic-1657/js-agent-evaluationsfrom
Draft
feat: add ManagedGraphResult, GraphMetricSummary, and ManagedAgentGraph#1335jsonbailey wants to merge 1 commit intojb/aic-1657/js-agent-evaluationsfrom
jsonbailey wants to merge 1 commit intojb/aic-1657/js-agent-evaluationsfrom
Conversation
3031d7d to
550ee5c
Compare
…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>
6583620 to
2ab8546
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GraphMetricsinterface (runner-level: success, path, durationMs?, usage?, nodeMetrics — no handoffs)AgentGraphRunnerResultinterface (content, metrics as GraphMetrics, raw? — no evaluations)GraphMetricSummary(extends GraphMetrics with resumptionToken?)ManagedGraphResult(content, metrics as GraphMetricSummary, raw?, evaluations promise)ManagedAgentGraphclass withrun(runner)that accepts a runner function, builds GraphMetricSummary from runner result +graphTracker.resumptionToken, returns ManagedGraphResultTest plan
ManagedAgentGraph.test.tscovers: run() builds correct metrics, passes definition+tracker to runner, creates tracker, empty evaluations🤖 Generated with Claude Code