feat: support multi-tool ReAct agents in test-case translation
Maintainer thường phản hồi trong vòng 4 ngày
@dhl123 đang làm issue này rồi.
Từ ngày 10/9/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 17
- Fork
- 6
- Merge trung bình
- 4 ngày 31 phút
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của IBM/smith
-
security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 4 ngày
-
feat: Support tool scoped security guidance analysisCó thể làm lại được @iamsreec đã nhận 46 ngày trước và không có pull request nào đang mở. Đang mởenhancement
IBM/smith#85 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 4 ngày
-
feat: Provenance tracking between requirements, test cases, and policy blocksCó thể làm lại được @iamsreec đã nhận 51 ngày trước và không có pull request nào đang mở. Đang mởenhancement
IBM/smith#82 · 2 người được giao ·
Maintainer thường phản hồi trong vòng 4 ngày
-
feat: Organize subskills as graphsCó thể làm lại được @dhl123 đã nhận 51 ngày trước và không có pull request nào đang mở. Đang mởenhancement
IBM/smith#81 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 4 ngày
-
feat: add vector-based retrieval for threat catalog loading 0.1.3Có thể làm lại được @iamsreec đã nhận 51 ngày trước và không có pull request nào đang mở. Đang mởenhancement
IBM/smith#79 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 4 ngày
Issue tương tự
-
SslLibrary crashes with unhandled OSError: port/proto not found on non-standard SSL portsCó thể đã có người làm @himanchalkaushale đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
OWASP/Nettacker#1884 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A-connection-core C-enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
aws-samples/sample-per-model-bedrock#869 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Spec: say that included_antigen_sources gates LENS labels; do not merge it into antigen kindsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
fzn0x/watchtower#17 ·