feat(evaluator): let customers set the judge model config (inferenceConfig, reasoning, additionalModelRequestFields)

オープン
#2,806 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
aws, typescript
領域
backend, cli

調査の方向性

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 の本文から書いたものです。

説明

enhancement
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) and additionalModelRequestFields
  • responsesEvaluatorModelConfig: 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:

  1. 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.
  2. Temperature can't be turned off. On the project path it's always sent, even for judge models that don't accept it.
  3. Reasoning effort and model-specific request fields can't be set at all.
Acceptance Criteria
  • agentcore.json accepts an optional evaluators[].config.llmAsAJudge.modelConfig in the API's shape: exactly one of bedrockEvaluatorModelConfig or responsesEvaluatorModelConfig, passed through as-is.
  • The modelConfig arm must match modelProvider. If modelConfig includes modelId, it must equal model.
  • agentcore add evaluator and agentcore eval evaluator llm-as-a-judge create/update accept --model-config. It takes JSON inline, file://<path>, or - for stdin, the same as --rating-scale.
  • On update, --model-config replaces the tuning fields. Leaving it out keeps the evaluator's current values.
  • When modelConfig isn't set, the deployed template and the API request don't change, so upgrading the CLI doesn't update existing evaluators.
  • --help and 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/topP for 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分
マージ済み PR(30日)
125

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/agentcore-cli のほかの issue

aws/agentcore-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。