Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

feat(eval): expose maxTokens / temperature / topP flags for llm-as-a-judge evaluator (Bedrock)

未关闭
#1,973 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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 内容生成。

描述

enhancement
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, minimum 1
  • Temperature — Number, 0–1
  • TopP — 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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws/agentcore-cli 的其他 Issue

查看 aws/agentcore-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。