You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Context handling with CompressibleAgent is deprecated. "
17
+
"Please use `TransformMessages`, documentation can be found at https://microsoft.github.io/autogen/docs/reference/agentchat/contrib/capabilities/transform_messages",
18
+
DeprecationWarning,
19
+
stacklevel=2,
20
+
)
21
+
14
22
15
23
classCompressibleAgent(ConversableAgent):
16
-
"""(CompressibleAgent will be deprecated. Refer to https://github.com/microsoft/autogen/blob/main/notebook/agentchat_capability_long_context_handling.ipynb for long context handling capability.) CompressibleAgent agent. While this agent retains all the default functionalities of the `AssistantAgent`,
17
-
it also provides the added feature of compression when activated through the `compress_config` setting.
24
+
"""CompressibleAgent agent. While this agent retains all the default functionalities of the `AssistantAgent`,
25
+
it also provides the added feature of compression when activated through the `compress_config` setting.
18
26
19
27
`compress_config` is set to False by default, making this agent equivalent to the `AssistantAgent`.
20
28
This agent does not work well in a GroupChat: The compressed messages will not be sent to all the agents in the group.
Copy file name to clipboardExpand all lines: website/docs/FAQ.mdx
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
importTOCInlinefrom'@theme/TOCInline';
1
+
importTOCInlinefrom"@theme/TOCInline";
2
2
3
3
# Frequently Asked Questions
4
4
@@ -7,6 +7,7 @@ import TOCInline from '@theme/TOCInline';
7
7
## Install the correct package - `pyautogen`
8
8
9
9
The name of Autogen package at PyPI is `pyautogen`:
10
+
10
11
```
11
12
pip install pyautogen
12
13
```
@@ -50,6 +51,7 @@ Please refer to the [documentation](/docs/Use-Cases/enhanced_inference#runtime-e
50
51
When you call `initiate_chat` the conversation restarts by default. You can use `send` or `initiate_chat(clear_history=False)` to continue the conversation.
51
52
52
53
## `max_consecutive_auto_reply` vs `max_turn` vs `max_round`
54
+
53
55
-[`max_consecutive_auto_reply`](https://microsoft.github.io/autogen/docs/reference/agentchat/conversable_agent#max_consecutive_auto_reply) the maximum number of consecutive auto replie (a reply from an agent without human input is considered an auto reply). It plays a role when `human_input_mode` is not "ALWAYS".
54
56
-[`max_turns` in `ConversableAgent.initiate_chat`](https://microsoft.github.io/autogen/docs/reference/agentchat/conversable_agent#initiate_chat) limits the number of conversation turns between two conversable agents (without differentiating auto-reply and reply/input from human)
55
57
-[`max_round` in GroupChat](https://microsoft.github.io/autogen/docs/reference/agentchat/groupchat#groupchat-objects) specifies the maximum number of rounds in a group chat session.
## Migrating from `CompressibleAgent` and `TransformChatHistory` to `TransformMessages`
263
+
264
+
### Why migrate to `TransformMessages`?
265
+
266
+
Migrating enhances flexibility, modularity, and customization in handling chat message transformations. `TransformMessages` introduces an improved, extensible approach for pre-processing messages for conversational agents.
267
+
268
+
### How to migrate?
269
+
270
+
To ensure a smooth migration process, simply follow the detailed guide provided in [Handling Long Context Conversations with Transform Messages](/docs/topics/long_contexts.md).
0 commit comments