feat: add Runner and AgentGraphRunner protocols; deprecate AIProvider#1336
Draft
jsonbailey wants to merge 1 commit intojb/aic-2388/js-managed-graph-resultfrom
Draft
feat: add Runner and AgentGraphRunner protocols; deprecate AIProvider#1336jsonbailey wants to merge 1 commit intojb/aic-2388/js-managed-graph-resultfrom
jsonbailey wants to merge 1 commit intojb/aic-2388/js-managed-graph-resultfrom
Conversation
6583620 to
2ab8546
Compare
94452a7 to
635cf16
Compare
2ab8546 to
262ea0d
Compare
… (AIC-2388) Adds RunnerProtocol.test.ts to verify that the Runner and AgentGraphRunner interfaces can be implemented as plain objects. The Runner, AgentGraphRunner interfaces, AIProvider deprecation, and providers/index.ts re-exports landed in the parent PR (#1332). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
635cf16 to
2286917
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
Runnerinterface:run(input: LDMessage[], outputType?: Record<string, unknown>): Promise<RunnerResult>— the new provider protocol for both model and agent use casesAgentGraphRunnerinterface:run(input: string): Promise<AgentGraphRunnerResult>— for graph-level providersRunnerResultshape: content, metrics (LDAIMetrics), raw?, parsed? — NO evaluations (consistent with PR 2)AIProviderabstract class with JSDoc directing implementors toRunnerinterfaceRunnerandAgentGraphRunnerfrom the public package APITest plan
RunnerProtocol.test.tsverifies Runner and AgentGraphRunner can be implemented as plain objects (no class extension required)🤖 Generated with Claude Code