feat: support multi-tool ReAct agents in test-case translation

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

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

@dhl123 がすでに取り組んでいます。

2026年9月10日 から。

評価

この issue はまだ評価されていません。

説明

enhancement
Summary

For ReAct agents (e.g., employee hub), the current /extract_tool_call endpoint only returns the first tool call from a single LLM inference. This causes false mismatches — a prompt targeting update_passport gets classified as get_passport because the agent's first step is a lookup before the mutation.

This PR adds a react agent mode that:

  • Calls /chat (full agent execution) instead of /extract_tool_call
  • Returns all tool calls made during the ReAct loop
  • Uses the last tool call as the target tool name
  • Snapshots and restores user-declared protected resources (DB files) between each test case to prevent state pollution
Plan
  • Add env config — AGENT_MODE (simple|react) and PROTECTED_RESOURCES (comma-separated file paths relative to TARGET_AGENT_PATH)
  • Modify /chat response in employee agent — return tool_calls: [{name, args}, ...] alongside the text response
  • Add run_extract_tool_args_react() in extract_tool_args.py — snapshot resources → call /chat → take last tool call → restore resources → same comparison logic
  • Wire up in CLI — read new env vars, dispatch to react or simple path
主要言語
Python
スター
17
フォーク
6
平均マージ
4日 31分
マージ済み PR(30日)
16

環境構築

はじめの一歩

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

IBM/smith のほかの issue

IBM/smith の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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