Skip to content

Commit

Permalink
fix web formats (microsoft#1728)
Browse files Browse the repository at this point in the history
* fix doc

* clean up

---------

Co-authored-by: “skzhang1” <“[email protected]”>
  • Loading branch information
skzhang1 and “skzhang1” authored Feb 19, 2024
1 parent 22076cb commit 8af7c0f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions autogen/agentchat/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ class ChatResult:
def initiate_chats(chat_queue: List[Dict[str, Any]]) -> List[ChatResult]:
"""Initiate a list of chats.
args:
Args:
chat_queue (List[Dict]): a list of dictionaries containing the information of the chats.
Each dictionary should contain the input arguments for `ConversableAgent.initiate_chat`.
More specifically, each dictionary could include the following fields:
recipient: the recipient agent.
- recipient: the recipient agent.
- "sender": the sender agent.
- "recipient": the recipient agent.
- clear_history (bool): whether to clear the chat history with the agent. Default is True.
Expand All @@ -59,17 +59,17 @@ def my_summary_method(
):
return recipient.last_message(sender)["content"]
```
"summary_prompt" can be used to specify the prompt used to extract a summary when summary_method is "reflection_with_llm".
- "summary_prompt": This filed can be used to specify the prompt used to extract a summary when summary_method is "reflection_with_llm".
Default is None and the following default prompt will be used when "summary_method" is set to "reflection_with_llm":
"Identify and extract the final solution to the originally asked question based on the conversation."
"carryover" can be used to specify the carryover information to be passed to this chat.
- "carryover": It can be used to specify the carryover information to be passed to this chat.
If provided, we will combine this carryover with the "message" content when generating the initial chat
message in `generate_init_message`.
returns:
Returns:
(list): a list of ChatResult objects corresponding to the finished chats in the chat_queue.
"""

consolidate_chat_info(chat_queue)
receipts_set = set()
for chat_info in chat_queue:
Expand Down

0 comments on commit 8af7c0f

Please sign in to comment.