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
* Replace on_messages and on_messages_stream with run and run_stream to
unify interface documentation with teams
* Remove magentic-one-cli from homepage as it has not been maintained
and improved for a while.
Response(chat_message=TextMessage(source='assistant', models_usage=RequestUsage(prompt_tokens=0, completion_tokens=0), content='Two cities in North America are New York City in the United States and Toronto in Canada. TERMINATE', type='TextMessage'), inner_messages=[])
277
+
source='user' models_usage=None metadata={} content='Name two cities in North America.' type='TextMessage'
source='assistant' models_usage=RequestUsage(prompt_tokens=0, completion_tokens=0) metadata={} content='Two cities in North America are New York City and Toronto. TERMINATE' type='TextMessage'
293
+
messages=[TextMessage(source='user', models_usage=None, metadata={}, content='Name two cities in North America.', type='TextMessage'), TextMessage(source='assistant', models_usage=RequestUsage(prompt_tokens=0, completion_tokens=0), metadata={}, content='Two cities in North America are New York City and Toronto. TERMINATE', type='TextMessage')] stop_reason=None
296
294
297
295
298
296
**Example 3: agent with tools**
@@ -312,9 +310,7 @@ async def main() -> None:
312
310
import asyncio
313
311
from autogen_ext.models.openai import OpenAIChatCompletionClient
314
312
from autogen_agentchat.agents import AssistantAgent
315
-
from autogen_agentchat.messages import TextMessage
:::{grid-item-card} {fas}`palette;pst-color-primary` Studio [](https://pypi.org/project/autogenstudio/)
78
50
:shadow: none
79
51
:margin: 2 0 0 0
80
-
:columns: 12 12 6 6
52
+
:columns: 12 12 12 12
81
53
82
-
An app for prototyping and managing agents without writing code.
54
+
An web-based UI for prototyping with agents without writing code.
83
55
Built on AgentChat.
84
56
85
57
```bash
86
58
pip install -U autogenstudio
87
59
autogenstudio ui --port 8080 --appdir ./myapp
88
60
```
89
61
62
+
_Start here if you are new to AutoGen and want to prototype with agents without writing code._
Copy file name to clipboardExpand all lines: python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/custom-agents.ipynb
+4-2
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,9 @@
16
16
"- {py:meth}`~autogen_agentchat.agents.BaseChatAgent.on_reset`: The abstract method that resets the agent to its initial state. This method is called when the agent is asked to reset itself.\n",
17
17
"- {py:attr}`~autogen_agentchat.agents.BaseChatAgent.produced_message_types`: The list of possible {py:class}`~autogen_agentchat.messages.BaseChatMessage` message types the agent can produce in its response.\n",
18
18
"\n",
19
-
"Optionally, you can implement the the {py:meth}`~autogen_agentchat.agents.BaseChatAgent.on_messages_stream` method to stream messages as they are generated by the agent. If this method is not implemented, the agent\n",
19
+
"Optionally, you can implement the the {py:meth}`~autogen_agentchat.agents.BaseChatAgent.on_messages_stream` method to stream messages as they are generated by the agent.\n",
20
+
"This method is called by {py:meth}`~autogen_agentchat.agents.BaseChatAgent.run_stream` to stream messages.\n",
21
+
"If this method is not implemented, the agent\n",
20
22
"uses the default implementation of {py:meth}`~autogen_agentchat.agents.BaseChatAgent.on_messages_stream`\n",
21
23
"that calls the {py:meth}`~autogen_agentchat.agents.BaseChatAgent.on_messages` method and\n",
0 commit comments