feat(eval): expose maxTokens / temperature / topP flags for llm-as-a-judge evaluator (Bedrock)
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 68/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- typescript
- 领域
- cli
调研方向
从 src/handlers/eval/evaluator/llm-as-a-judge/create/index.tsx 开始,然后比较 src/core/project/schema/harness.ts 和 src/handlers/harness/parameterHelp.tsx 中的参数处理。定位对应的更新或编辑路径及其验证逻辑;完成的标准是三个 flag 接受文档规定的范围,未设置的值会被省略,并且所有 Bedrock evaluator 路径都会接收 inferenceConfig 字段。
由索引模型根据 Issue 内容生成。
描述
Summary
The evaluator llm-as-a-judge create handler only passes modelId to the Bedrock evaluator model config — there is no way to set inference parameters. CloudFormation's AWS::BedrockAgentCore::Evaluator InferenceConfiguration supports:
MaxTokens— Integer, minimum1Temperature— Number,0–1TopP— Number,0–1
These map to BedrockEvaluatorModelConfig.inferenceConfig and apply to both the Bedrock and Bedrock Mantle evaluator paths.
Current behavior
src/handlers/eval/evaluator/llm-as-a-judge/create/index.tsx builds the config with just the model id:
modelConfig: { bedrockEvaluatorModelConfig: { modelId: flags["model"] } },
There are no --max-tokens, --temperature, or --top-p flags, so users get whatever the service/construct defaults are and cannot tune scoring behavior.
For comparison, the harness handler already exposes these — see src/core/project/schema/harness.ts (temperature, topP, maxTokens) and src/handlers/harness/parameterHelp.tsx.
Requested change
Add flags to llm-as-a-judge create (and any update/edit path):
--max-tokens <int>(min 1)--temperature <float>(0.0–1.0)--top-p <float>(0.0–1.0)
Thread them into bedrockEvaluatorModelConfig.inferenceConfig (maxTokens / temperature / topP), omitting any unset value so existing defaults are preserved. Enforce the CFN-documented ranges above.
Related
Companion construct/schema change: aws/agentcore-l3-cdk-constructs#315 (the L3 currently hardcodes { temperature: 0, maxTokens: 4096 } for Bedrock and rejects these fields unless the provider is OpenAI). This CLI change depends on that surface being available.
- 主要语言
- TypeScript
- 星标
- 291
- 派生
- 96
- 平均合并
- 21 小时 31 分钟
- 30 天内合并 PR
- 217
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aws/agentcore-cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
aws/agentcore-cli#2395 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
aws/agentcore-cli#2392 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
aws/agentcore-cli#2267 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
aws/agentcore-cli#2258 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
aws/agentcore-cli#2176 ·
查看 aws/agentcore-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
bcgov/bc-wallet-mobile#4761 · 1 条评论 ·
-
external-issue to-triage
难度 2/5 1-3 小时 新手友好度 88/100
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
refactor
难度 2/5 1-3 小时 新手友好度 84/100