mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
Emphasis on_messages is for new messages only; remove unused file. (#4819)
* Emphasis on_messages is for new messages only * update * update uv * update uv action * try pin uv version * pin all uv versions to 0.5.11 * revert uv lock file and remove unwanted file.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
"\n",
|
||||
"- {py:attr}`~autogen_agentchat.agents.BaseChatAgent.name`: The unique name of the agent.\n",
|
||||
"- {py:attr}`~autogen_agentchat.agents.BaseChatAgent.description`: The description of the agent in text.\n",
|
||||
"- {py:meth}`~autogen_agentchat.agents.BaseChatAgent.on_messages`: Send the agent a sequence of {py:class}`~autogen_agentchat.messages.ChatMessage` get a {py:class}`~autogen_agentchat.base.Response`.\n",
|
||||
"- {py:meth}`~autogen_agentchat.agents.BaseChatAgent.on_messages`: Send the agent a sequence of {py:class}`~autogen_agentchat.messages.ChatMessage` get a {py:class}`~autogen_agentchat.base.Response`. **It is important to note that agents are expected to be stateful and this method is expected to be called with new messages, not the complete history**.\n",
|
||||
"- {py:meth}`~autogen_agentchat.agents.BaseChatAgent.on_messages_stream`: Same as {py:meth}`~autogen_agentchat.agents.BaseChatAgent.on_messages` but returns an iterator of {py:class}`~autogen_agentchat.messages.AgentEvent` or {py:class}`~autogen_agentchat.messages.ChatMessage` followed by a {py:class}`~autogen_agentchat.base.Response` as the last item.\n",
|
||||
"- {py:meth}`~autogen_agentchat.agents.BaseChatAgent.on_reset`: Reset the agent to its initial state.\n",
|
||||
"\n",
|
||||
@@ -106,8 +106,13 @@
|
||||
"```{note}\n",
|
||||
"It is important to note that {py:meth}`~autogen_agentchat.agents.AssistantAgent.on_messages`\n",
|
||||
"will update the internal state of the agent -- it will add the messages to the agent's\n",
|
||||
"history. So you should not repeatedly call this method with the same messages if you want to\n",
|
||||
"carry on a conversation with the agent.\n",
|
||||
"history. So you should call this method with new messages.\n",
|
||||
"**You should not repeatedly call this method with the same messages or the complete history.**\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"```{note}\n",
|
||||
"Unlike in v0.2 AgentChat, the tools are executed by the same agent directly within\n",
|
||||
"the same call to {py:meth}`~autogen_agentchat.agents.AssistantAgent.on_messages`.\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"## User Proxy Agent\n",
|
||||
@@ -141,7 +146,8 @@
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"The User Proxy agent is ideally used for on-demand human-in-the-loop interactions for scenarios such as Just In Time approvals, human feedback, alerts, etc. For slower user interactions, consider terminating the session using a termination condition and start another one from run or run_stream with another message.\n",
|
||||
"The User Proxy agent is ideally used for on-demand human-in-the-loop interactions for scenarios such as Just In Time approvals, human feedback, alerts, etc. For slower user interactions, consider terminating a team using a termination condition and start another one from\n",
|
||||
"{py:meth}`~autogen_agentchat.base.TaskRunner.run` or {py:meth}`~autogen_agentchat.base.TaskRunner.run_stream` with another message.\n",
|
||||
"\n",
|
||||
"## Streaming Messages\n",
|
||||
"\n",
|
||||
|
||||
Reference in New Issue
Block a user