The prompt
An agent tried to answer a user query but it got stuck and failed to do so. You are tasked with providing an answer instead. Here is the agent's memory:
---
Based on the above, please provide an answer to the following user task:
{{task}} What it is
Tells the model that an agent failed to answer a user query, shows it the agent's memory, and asks it to answer the original task from what that memory holds. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the smolagents repository (Apache License 2.0; the repository's LICENSE file is the Apache-2.0 text and names no copyright holder). Licence: https://github.com/huggingface/smolagents/blob/main/LICENSE and https://www.apache.org/licenses/LICENSE-2.0. Original author: Hugging Face (huggingface/smolagents). Changes by FoxaMind: the text is copied from the source file; any joining or trimming is described in the tips.
Who it's for
- Agent builders
- Anyone who wants a last-resort answer after a failed run
يخبر النموذج أن وكيلًا فشل في الإجابة، ويعرض عليه ذاكرته، ثم يطلب منه الإجابة عن المهمة الأصلية اعتمادًا عليها.
Tips
- In the source this is two strings, sent before and after the agent's memory. We joined them with a line of three dashes. Put the memory where that line is.
- {{task}} is the original user task.