feat(evaluator): let customers set the judge model config (inferenceConfig, reasoning, additionalModelRequestFields)
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 55/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- aws, typescript
研究方向
Start by tracing evaluator configuration in agentcore.json, the agentcore add evaluator command, and the direct LLM-as-a-Judge create and update commands; the issue names no source files or tests. Check the schema and provider-specific API model shapes, then follow how configuration reaches the deployed template and API request. Done means both provider configurations pass through as specified, omitted configuration preserves current behavior, and the requested schema, flag, and template tests pass.
由索引模型根據 Issue 內容生成。
描述
Description
Customers can't tune the judge model of an LLM-as-a-Judge evaluator from the CLI. The API's modelConfig supports these fields:
bedrockEvaluatorModelConfig:inferenceConfig(maxTokens,temperature,topP,stopSequences) andadditionalModelRequestFieldsresponsesEvaluatorModelConfig:maxOutputTokens,temperature,topP,reasoning.effort
What the CLI does today:
| Path | What it sends |
|---|---|
Project (agentcore.json, agentcore add evaluator, deployed by the L3 constructs) |
Always maxTokens/maxOutputTokens 4096 and temperature 0. Nothing else. |
Direct (agentcore eval evaluator llm-as-a-judge create) |
Bedrock: the model ID only. OpenResponses: always maxOutputTokens 4096 and temperature 0. |
Direct (agentcore eval evaluator llm-as-a-judge update) |
Keeps the evaluator's existing values. Can't change them. |
This blocks real use cases:
- Multi-dimension evaluators (#2785) need more output tokens. Each dimension's rating and explanation is roughly 100 to 250 tokens, so an evaluator with many dimensions gets cut off at 4,096 tokens. When that happens, every dimension fails with a parsing error that doesn't mention the token limit.
- Temperature can't be turned off. On the project path it's always sent, even for judge models that don't accept it.
- Reasoning effort and model-specific request fields can't be set at all.
Acceptance Criteria
-
agentcore.jsonaccepts an optionalevaluators[].config.llmAsAJudge.modelConfigin the API's shape: exactly one ofbedrockEvaluatorModelConfigorresponsesEvaluatorModelConfig, passed through as-is. - The
modelConfigarm must matchmodelProvider. IfmodelConfigincludesmodelId, it must equalmodel. -
agentcore add evaluatorandagentcore eval evaluator llm-as-a-judge create/updateaccept--model-config. It takes JSON inline,file://<path>, or-for stdin, the same as--rating-scale. - On
update,--model-configreplaces the tuning fields. Leaving it out keeps the evaluator's current values. - When
modelConfigisn't set, the deployed template and the API request don't change, so upgrading the CLI doesn't update existing evaluators. -
--helpand the docs give an example per provider. They note that a higher token limit makes long judge responses slower and can turn a cut-off into a timeout. - Tests cover the schema, both flags, and the synthesized template for both providers.
Additional Context
- Needs the matching L3 change. This replaces aws/agentcore-l3-cdk-constructs#315 and #1973, which only cover
maxTokens/temperature/topPfor Bedrock. - Changing an evaluator's model config updates it in place. The update is rejected while an enabled online evaluation uses the evaluator, so customers need to pause that online evaluation first.
- 主要語言
- TypeScript
- 星號
- 339
- 分支
- 129
- 平均合併
- 19 小時 21 分鐘
- 30 天內合併 PR
- 125
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
aws/agentcore-cli 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 88/100
aws/agentcore-cli#2940 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
aws/agentcore-cli#2939 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
aws/agentcore-cli#2938 ·
維護者通常 1 天內回覆
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")可能已有人在做 @n1dhruv 於 6 天前認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 82/100
aws/agentcore-cli#2875 · 1 則留言 ·
維護者通常 1 天內回覆
-
--debug has no effect; service error name, HTTP status and request ID never reach the terminal可能已有人在做 @abhiramshaji-cyber 於 3 天前認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 78/100
aws/agentcore-cli#2874 ·
維護者通常 1 天內回覆
查看 aws/agentcore-cli 的全部 Issue
相似的 Issue
-
manually bump balena-preload to ^19.0.6可能已有人在做 @shaunmulligan 今天認領。 未關閉
難度 1/5 1-3 小時 新手友好度 66/100
balena-io/balena-cli#3200 ·
維護者通常 1 天內回覆
-
`MaterializedChatMessage._text` is quadratic in the number of text chunks (`+=` followed by `endsWith`), driving the extension host to heap OOM可能已有人在做 @olegius88 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 79/100
microsoft/vscode-prompt-tsx#205 ·
-
triage
難度 1/5 1 小時以內 新手友好度 64/100
-
難度 2/5 1-3 小時 新手友好度 76/100
melgarafael/DeskcommCRM#5340 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 83/100
ehmpathy/rhachet-roles-ehmpathy#1529 ·
維護者通常 1 天內回覆