[Possible bug] Selecting world also exposes 147 world_development_indicators tools

オープン 初心者向け
#78 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

benchmark_runner.pyから始めて、--domainがRESTエンドポイントのパスをどのようにフィルタリングするかを追ってください。issueにあるコマンドで、--domain world --list-toolsを使って再現し、/v1/world_development_indicators/のエンドポイントが表示されるか確認してください。意図された範囲が明確になり、コマンドがworld向けの意図されたツールだけを一覧表示すれば完了です。

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

説明

Describe the bug
Selecting world also exposes all 147 tools from world_development_indicators (WDI), resulting in 236 tools instead of the 89 defined for world.

The domain filter uses path.startswith(f"/v1/{domain}"), which matches both domain paths. Could you confirm whether this is the intended tool scope, or whether the filter is missing a domain boundary check?

To Reproduce
I ran the following command:

python benchmark_runner.py \
--capability_id 2 \
--domain world \
--list-tools

It lists 236 APIs, including the tools of world_development_indicators.

Expected behavior

If REST tools should be restricted to the selected domain, selecting world should include only /v1/world/ endpoints and exclude /v1/world_development_indicators/ endpoints. If the inclusion is intentional, clarification would be appreciated.

主要言語
Python
スター
79
フォーク
23
平均マージ
2日 7時間
マージ済み PR(30日)
3

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

IBM/vakra のほかの issue

IBM/vakra の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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