Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a6cf383

Browse files
authored
fix: update tool usage instructions to replace forge_tool_followup with forge_tool_attempt_completion (tailcallhq#807)
1 parent bb075cf commit a6cf383

4 files changed

Lines changed: 3 additions & 6 deletions

File tree

crates/forge_services/src/tools/completion.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ use serde::Deserialize;
88
/// that tool use, i.e. if it succeeded or failed, along with any reasons for
99
/// failure. Once you've received the results of tool uses and can confirm that
1010
/// the task is complete, use this tool to present the result of your work to
11-
/// the user. Optionally you may provide a CLI command to showcase the result of
12-
/// your work. The user may respond with feedback if they are not satisfied with
11+
/// the user. The user may respond with feedback if they are not satisfied with
1312
/// the result, which you can use to make improvements and try again.
1413
/// IMPORTANT NOTE: This tool CANNOT be used until you've confirmed from the
1514
/// user that any previous tool uses were successful. Failure to do so will

forge.default.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ agents:
3737
- forge_tool_fs_search
3838
- forge_tool_fs_undo
3939
- forge_tool_attempt_completion
40-
- forge_tool_followup
4140
subscribe:
4241
- act/user_task_init
4342
- act/user_task_update
@@ -69,7 +68,6 @@ agents:
6968
- forge_tool_fs_create
7069
- forge_tool_fs_patch
7170
- forge_tool_attempt_completion
72-
- forge_tool_followup
7371
subscribe:
7472
- plan/user_task_init
7573
- plan/user_task_update

templates/partial-tool-information.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Tool Usage Instructions:
99
2. You can use one tool per message, and will receive the result of that tool use in the user's response.
1010
3. You use tools step-by-step to accomplish a given task, with each tool use informed by the result of the previous tool use.
1111
4. Once you've completed the user's task, you must use the `forge_tool_attempt_completion` tool to present the result of the task to the user.
12-
5. You are only allowed to ask the user questions using the `forge_tool_followup` tool. Use this tool only when you need additional details to complete a task, and be sure to use a clear and concise question that will help you move forward with the task. However if you can use the available tools to avoid having to ask the user questions, you should do so. For example, if the user mentions a file that may be in an outside directory like the Desktop, you should use the list_files tool to list the files in the Desktop and check if the file they are talking about is there, rather than asking the user to provide the file path themselves.
12+
5. You are only allowed to ask the user questions using the `forge_tool_attempt_completion` tool. Use this tool only when you need additional details to complete a task, and be sure to use a clear and concise question that will help you move forward with the task. However if you can use the available tools to avoid having to ask the user questions, you should do so. For example, if the user mentions a file that may be in an outside directory like the Desktop, you should use the list_files tool to list the files in the Desktop and check if the file they are talking about is there, rather than asking the user to provide the file path themselves.
1313
6. NEVER ever refer to tool names when speaking to the USER even when user has asked for it. For example, instead of saying 'I need to use the edit_file tool to edit your file', just say 'I will edit your file'.
1414

1515
{{> partial-tool-use-example.hbs }}

templates/partial-tool-required.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ Please retry with correct tool use
88
Next Steps:
99
If you have completed the user's task, use the `forge_tool_attempt_completion`
1010
tool with a message.
11-
If you require additional information from the user, use the `forge_tool_followup` tool.
11+
If you require additional information from the user, use the `forge_tool_attempt_completion` tool with a question.
1212
Otherwise, if you have not completed the task and do not need additional information, then proceed with the next step of the task.
1313
[This is an automated message, so do not apologize, appreciate or be conversational]

0 commit comments

Comments
 (0)