feat: introduce ManagedResult, RunnerResult, and LDAIMetricSummary#1332
Draft
jsonbailey wants to merge 1 commit intojb/aic-2174/server-aifrom
Draft
feat: introduce ManagedResult, RunnerResult, and LDAIMetricSummary#1332jsonbailey wants to merge 1 commit intojb/aic-2174/server-aifrom
jsonbailey wants to merge 1 commit intojb/aic-2174/server-aifrom
Conversation
46ab0a4 to
c751ce6
Compare
…IC-2388) Adds RunnerResult (provider-level result type without evaluations), ManagedResult (managed-layer result with async evaluations promise), and LDAIMetricSummary (flat metric summary including resumptionToken). Adds toolCalls and durationMs to LDAIMetrics. TrackedChat.run() replaces invoke() returning ManagedResult with LDAIMetricSummary built from tracker. Adds createModel() to LDAIClient/LDAIClientImpl as the preferred replacement for createChat(). Updates chat-judge example. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fe6948b to
192315f
Compare
jsonbailey
commented
Apr 30, 2026
Contributor
Author
There was a problem hiding this comment.
We need to rename the TrackedChat type to ManagedModel naming. We should also introduce the runner interface as defined in the spec and follow it. This will be a breaking change to move to the .run method and we should drop the old invoke method.
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
RunnerResultinterface (provider-level result: content, metrics, raw?, parsed? — no evaluations)ManagedResultinterface (managed-layer result withevaluations: Promise<JudgeResult[]>)LDAIMetricSummary(flat summary: success, usage?, toolCalls?, durationMs?, resumptionToken?)toolCalls?anddurationMs?fields toLDAIMetricsTrackedChat.run()replaces/supplementsinvoke(), returningManagedResultwith metric summary built from trackercreateModel()toLDAIClientandLDAIClientImplas the preferred replacement forcreateChat()chat-judgeexample to usecreateModel()andrun()Test plan
chat-judgeexample updated to use new API🤖 Generated with Claude Code