The prompt
Given an agentic workflow comprised of a human input, AI response, and tools used by the AI, identify the task (or objective the user wants to achieve) and the task_outcome (the final outcome or result of the workflow).
The task outcome should be solely factual, derived strictly from the workflow (input, response, and tools called), without any reasoning involved.
``Example:
Example input: Can you help me plan a trip to New York this weekend, including travel, accommodation, and sightseeing?
Example tools called:
[
{
"name": "flight_search",
"description": "Search for flights based on destination and date.",
"reasoning": "The input specifies travel as part of the task. This tool is needed to find flight options based on the user's destination and dates.",
"output": {
"flights": ["Flight A", "Flight B"]
},
"input_parameters": {
"destination": "New York",
"date": "Saturday",
"return_date": "Sunday"
}
},
{
"name": "hotel_search",
"description": "Search for hotels in the given location.",
"reasoning": "The input specifies accommodation as part of the task. This tool is needed to find hotel options in the specified location for the provided dates.",
"output": {
"hotels": ["Grand NY Hotel", "Empire Suites"]
},
"input_parameters": {
"location": "New York",
"check_in": "Saturday",
"check_out": "Sunday"
}
},
{
"name": "sightseeing_search",
"description": "Provide sightseeing options for a given location.",
"reasoning": "The input specifies sightseeing as part of the task. This tool is needed to generate a list of recommended places to visit in New York.",
"output": {
"sights": ["Central Park", "Statue of Liberty", "Times Square"]
},
"input_parameters": {
"location": "New York"
}
}
]
Example response: Sure! Flights available to New York include Flight A and Flight B. Accommodation options include Grand NY Hotel and Empire Suites. Suggested sightseeing spots in New York are Central Park, Statue of Liberty, and Times Square.
Example JSON:
{
"task": "Have the system plan a weekend trip to New York, including travel, accommodation, and sightseeing.",
"outcome": "The system provided suggested flights departing on Saturday and returning on Sunday, identified hotels with check-in on Saturday and check-out on Sunday, and generated a list of sightseeing destinations in New York City."
}
===== END OF EXAMPLE ======
**
IMPORTANT: Please make sure to only return in JSON format with two keys: `task` and `outcome`.
**
input: {{ input }}
tools called:
{{ tools_called_formatted }}
response: {{ actual_output }}
JSON: What it is
Reads an agent run made of the user input, the tools called and the response, and returns JSON with the task the user wanted and the factual outcome, without any reasoning. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the deepeval repository (Apache License 2.0; pyproject.toml declares Apache-2.0). Licence: https://github.com/confident-ai/deepeval/blob/main/LICENSE.md and https://www.apache.org/licenses/LICENSE-2.0. Original author: Confident AI (confident-ai/deepeval). Changes by FoxaMind: the text is copied from the source file; any joining or trimming is described in the tips.
Who it's for
- Developers testing agents
- Teams building evaluation suites
يقرأ تشغيلًا لوكيل (المدخل والأدوات والرد) ويعيد JSON فيه المهمة المطلوبة والنتيجة الفعلية دون استنتاجات.
Tips
- The double-brace fields are template variables from the framework that ships this prompt. Replace them with your own values.
- The worked trip-planning example inside the prompt was written by the authors. It is not output from a real run.
- It is the first step. The task completion verdict prompt in this series compares the two fields.