diff --git a/CHANGELOG.md b/CHANGELOG.md index a4cc6e672..c0dc4ba21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `BaseTask.add_parent`/`BaseTask.add_child` now only add the parent/child task to the structure if it is not already present. - `BaseEventListener.flush_events()` to flush events from an Event Listener. - `BaseEventListener` no longer requires a thread lock for batching events. +- Updated `TookitTask` system prompt to retry/fix actions when using native tool calling. ### Fixed diff --git a/griptape/templates/tasks/toolkit_task/system.j2 b/griptape/templates/tasks/toolkit_task/system.j2 index 09c4e9af9..730ab85e4 100644 --- a/griptape/templates/tasks/toolkit_task/system.j2 +++ b/griptape/templates/tasks/toolkit_task/system.j2 @@ -6,10 +6,11 @@ You must use the following format when executing actions: Thought: Actions: {{ stop_sequence }}: -...repeat Thought/Actions/{{ stop_sequence }} as many times as you need -"Thought", "Actions", "{{ stop_sequence }}" must always start on a new line. If {{ stop_sequence }} contains an error, you MUST ALWAYS try to fix the error with another Thought/Actions/{{ stop_sequence }}. +"Thought", "Actions", "{{ stop_sequence }}" must always start on a new line. {% endif %} +Repeat executing actions as many times as you need. +If an action's output contains an error, you MUST ALWAYS try to fix the error by executing another action. You must use the following format when providing your final answer: Answer: