feat(core): support promptfoo provider declaration forms#1729
Merged
Conversation
Deploying agentv with
|
| Latest commit: |
9b5b81b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://427e693b.agentv.pages.dev |
| Branch Preview URL: | https://av-sdit-provider-schema.agentv.pages.dev |
194ddb2 to
59a76ff
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
AgentV provider declarations now accept the Promptfoo-compatible forms that were missing from the parser: provider spec strings, provider maps, and
providers[].inputs. Object-formidremains the backend/spec andlabelremains the stable AgentV selection and result identity.The Promptfoo export helper now preserves compatible provider maps and
inputs, and it rejects AgentV-only provider-localenvironment, providerhooks, and non-hostruntimesettings with explicit diagnostics instead of silently dropping testbed behavior.runtime: hostcontinues to lower as a no-op because Promptfoo runs host providers by default.Docs and the eval-writer schema now describe the supported provider declaration layer and call out
runtime, provider-localenvironment, and providerhooksas AgentV extensions.Validation
bun test packages/core/test/evaluation/validation/eval-file-schema.test.ts packages/core/test/evaluation/loaders/config-loader.test.ts packages/core/test/evaluation/providers/targets-file.test.tsbun run validate:promptfoo-exportbun run validate:eval-schemabun --filter @agentv/core typecheckgit diff --checkLive provider dogfood was not run because this changes parsing, schema, docs, and Promptfoo export diagnostics only; provider invocation/runtime behavior is unchanged.
Risk
Low. The new parser path is additive for Promptfoo-compatible provider shapes, and existing provider object/string declarations remain covered by focused tests.
Related: Bead av-sdit