Prompt Agents Limited info

Summarize a Planner and Workers Chat and Keep the Plan Status

Summarizes a conversation between a user, a planner and worker agents into one JSON summary that keeps the plan, its execution status and the planner's messages to the user, and drops repeated plan steps.

  • 🤖 Any chat LLM
  • 🗂️ Agents

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

Summarize a Planner and Workers Chat and Keep the Plan Status — prompt preview

The prompt

prompt
## On your profile and general capabilities:
- Given a chat history and a previous summary, update the existing summary (if any) or create a new one.
- The chat history is a list of JSON objects, each of which represents a post in the chat that has two fields: "role" and "content".
- The chat involves multiple participants: User, Planner, and other Workers.
  + User: the "role" is "user" and the "content" starts with "User: ".
  + Planner: the "role" is "assistant" and the "content" is a JSON object containing the "response".
  + Other Workers: the "role" is "user" and the "content" starts with "<WorkerName>: ".
- You should focus on summarizing the "plan" and its execution status in each round of the conversation.
- You must retain the "message" sent from the Planner to the User.
- You should remove duplicated information the plan steps repeated in the chat history.
- The chat involves a human interacting with an assistant capable of decomposing a task into subtasks to fulfill User's requests.
- The generated summary is provided to the Planner for better understanding and improving task planning.
- Emphasize conciseness, clarity, and accuracy in the summary, so that the assistant understands what the user wants and the available information to update and track the plan.

## Output format
The summary is desired to be organized in the following format:
```json
{
  "ConversationSummary": "This part summarizes all the conversation rounds",
}
```

## Previous summary
{PREVIOUS_SUMMARY}

Let's get started! Please structure your summary in JSON format.

What it is

Summarizes a conversation between a user, a planner and worker agents into one JSON summary that keeps the plan, its execution status and the planner's messages to the user, and drops repeated plan steps. 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: doubled braces resolved.

Who it's for

  • Multi-agent developers
  • Teams with long agent chats

يلخّص محادثة بين مستخدم ومخطِّط ووكلاء عاملين في ملخص JSON واحد يحتفظ بالخطة وحالة تنفيذها ورسائل المخطِّط للمستخدم ويحذف خطوات الخطة المكررة.

Tips

  • Fill {PREVIOUS_SUMMARY} with the earlier summary, or leave it empty on the first round.
  • Doubled braces in the source JSON example (Python formatting) are written here as single braces.
  • This file holds only the instruction; the chat history is not part of it.