Probe and handle forced tool_choice for Bedrock Claude models

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
ai, backend

調査の方向性

Start by reading src/llm/pi-runner.ts around lines 1969–1970 and the #46 issue to understand the existing tool choice rule. First run a free probe against Bedrock Converse for the listed Claude models to check whether forced toolChoice is rejected. If confirmed, extend the rule to bedrock-converse-stream and verify the config flag is honored.

索引モデルが issue の本文から書いたものです。

説明

Context

Reported during the #44 review as a follow-up outside the #46 fix scope, per the operator decision.

Evidence

At src/llm/pi-runner.ts:1969-1970, mapProviderToolChoice returns {type:"tool"} for bedrock-converse-stream regardless of llm.forceSubmitToolChoice. The documented escape hatch therefore does not apply to Bedrock. The plan-86 thinking-off branch covers only anthropic-messages. Pi 1.5.2 amazon-bedrock.json lists Opus 5.5, Fable 5.2 and Sonnet 5.5 with thinkingLevelMap.off null.

Expected / actual

Expected: force submit only where the serving API accepts it, and honor the config flag. Actual: forced submit is always on for Bedrock Converse.

Unknown and severity

It is unverified whether Bedrock Converse rejects forced toolChoice for these models. Direct Anthropic rejects it with HTTP 400 (see #46). Severity is high for Bedrock users if its API rejects the choice; otherwise none.

Next step

Run a free probe on Bedrock. If confirmed, extend the #46 rule to bedrock-converse-stream.

主要言語
TypeScript
スター
8
フォーク
1
平均マージ
5分
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

0xPolygon/codegenie のほかの issue

0xPolygon/codegenie の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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