gptme
gptme copied to clipboard
feat: added attempt_complete tool, giving agent ability to signal completion
Played with this a couple of days ago, idea was to mimic a similar tool I saw in one of the SWE-Bench submissions.
Could be a more reliable stopping-condition (and a good place to run appropriate checks) than waiting for a non-tooluse message.
Not sure if this should be merged here or in gptme-contrib, but since it required some changes to the Python tool it'll go here for now.
[!IMPORTANT] Add
attempt_completetool to signal task completion, integrated into Python execution flow inpython.py.
- New Tool:
- Added
attempt_complete.pywithCompletedclass to signal task completion.attempt_complete()function attempts task completion and returnsCompleted.check_completion()placeholder for task completion checks.- Integration:
- In
python.py, importCompletedfromattempt_complete.py.- Update
execute_python()to handleCompletedby exiting process.- Misc:
attempt_completetool is disabled by default inToolSpec.This description was created by
for 70e5b91ce6f27cab9f94d074b84a1eba485fcff0. It will automatically update as commits are pushed.