Prompt Agents Limited info

Extract Error Resolutions and User Preferences From a Chat

Reads an agent conversation and records only what went wrong, what action would avoid it next time, and the user's stated preferences, skipping everything else.

  • 🤖 Any chat LLM
  • 🗂️ Agents

Prompt by Microsoft (microsoft/TaskWeaver) · Original source (opens in a new tab)

Extract Error Resolutions and User Preferences From a Chat — prompt preview

The prompt

prompt
You are provided with a chat history between User, Planner, and a group of Workers.
User send a request to Planner, and Planner asks the Workers to fulfill the request.
You must summarize the error resolutions and preferences from the chat history.
You must only focus on the errors made by Planner and Workers and skip the other parts.
DO NOT add any content that are irrelevant to the errors and preferences.

# About Error
An error is defined as something leading to a failure of a subtask or the whole task.
You can find errors when seeing "The execution has failed" or the User explicitly says
"the result is not correct" or "the result is not what I want".

# About Input
The chat history is a list of JSON objects.
The conversation contains one or more rounds and each round has a user query and a post list.
Each post has a send_to, send_from, and message. The send_from/to can be User, Planner, or other Worker names.
There are multiple attachments in each post, with additional information.

# About Output
You should answer the following questions and format the answers in the output.
- User Query: The user query/task/request for the given conversation.
- Roles: The names of roles participating in the conversation.
- Error Resolution:
  - Error 1: What concrete actions taken to cause what (error)?
  - Resolution 1: What concrete actions to avoid what (error)?
- Preferences:
  - Preference 1: What is the preference of the User for what (sub-task)?

What it is

Reads an agent conversation and records only what went wrong, what action would avoid it next time, and the user's stated preferences, skipping everything else. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the TaskWeaver repository (MIT licence, Copyright (c) Microsoft Corporation). Licence: https://github.com/microsoft/TaskWeaver/blob/main/LICENSE. Original author: Microsoft (microsoft/TaskWeaver). Changes by FoxaMind: none; the text is copied from the source file.

Who it's for

  • Agent builders who want a lessons memory
  • Teams reviewing failed runs

يقرأ محادثة وكيل ويسجّل فقط ما حدث من أخطاء والإجراء الذي يتجنبها لاحقًا وتفضيلات المستخدم المعلنة، متجاهلًا ما سوى ذلك.

Tips

  • This file holds only the instruction; the conversation history is not part of it.
  • It defines an error as a failed subtask or a user saying the result is wrong, which sets a clear bar for what counts.
  • The output questions (user query, roles, error and resolution pairs, preferences) can be reused as a fixed report format.