[GH-ISSUE #2] Missing function_tool definition #1

Open
opened 2026-03-03 00:02:31 +03:00 by kerem · 2 comments
Owner

Originally created by @meifukun on GitHub (Sep 6, 2025).
Original GitHub issue: https://github.com/arthurgervais/mapta/issues/2

The main.py uses the @function_tool decorator to register callable tools (e.g., send_slack_alert, sandbox_run_command), but the decorator is neither defined nor imported in the repo. This leads to import errors when running the scanner.

Originally created by @meifukun on GitHub (Sep 6, 2025). Original GitHub issue: https://github.com/arthurgervais/mapta/issues/2 The main.py uses the @function_tool decorator to register callable tools (e.g., send_slack_alert, sandbox_run_command), but the decorator is neither defined nor imported in the repo. This leads to import errors when running the scanner.
Author
Owner

@flyfei-cmd commented on GitHub (Sep 11, 2025):

@yosif-qasim I have fixed this problem using the same way as you committed, But I can not use the current version of mapta to do penetration. It looks like it still lacks SANDBOX_FACTORY, Could you use this current version mapta to do penetration ?

<!-- gh-comment-id:3277642037 --> @flyfei-cmd commented on GitHub (Sep 11, 2025): @yosif-qasim I have fixed this problem using the same way as you committed, But I can not use the current version of mapta to do penetration. It looks like it still lacks SANDBOX_FACTORY, Could you use this current version mapta to do penetration ?
Author
Owner

@flyfei-cmd commented on GitHub (Sep 12, 2025):

yes i had the same experience i dug up a bit and discovered that you need to install the openai agents sdk and change the function_tool tool to "agents" import and initiated a pull request ti fix this issue but it's still open

This method is not right, Now I know they have implemented a function_tool module, if we use openai agents, it would not work. You need change many codes.

Also we need implement a sandbox to run the whole codes

<!-- gh-comment-id:3283471213 --> @flyfei-cmd commented on GitHub (Sep 12, 2025): > yes i had the same experience i dug up a bit and discovered that you need to install the openai agents sdk and change the function_tool tool to "agents" import and initiated a pull request ti fix this issue but it's still open This method is not right, Now I know they have implemented a function_tool module, if we use openai agents, it would not work. You need change many codes. Also we need implement a sandbox to run the whole codes
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mapta#1
No description provided.