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
AGS Improvements (Add Test Button in Team Builder View + Others) (#5416)
<!-- Thank you for your contribution! Please review
https://microsoft.github.io/autogen/docs/Contribute before opening a
pull request. -->
<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->
## Why are these changes needed?
- Add ability to test teams in Team Builder view
- Update Gallery (add deep research default team, fix bug with gallery
serialization)
- UI fixes
- improve drag drop component experience
- improve new session experience (single click rather than 3 clicks to
create a session)
- fix bug with stop reason not being shown in some cases
<img width="1738" alt="Image"
src="https://github.com/user-attachments/assets/4b895df2-3bad-474e-bec6-4fbcbf1c4346"
/>
<img width="1761" alt="Image"
src="https://github.com/user-attachments/assets/65f52eb9-e926-4168-88fb-d2496c159474"
/>
<!-- Please give a short summary of the change and the problem this
solves. -->
## Related issue number
Closes#5392
<!-- For example: "Closes#1234" -->
## Checks
- [ ] I've included any doc changes needed for
https://microsoft.github.io/autogen/. See
https://microsoft.github.io/autogen/docs/Contribute#documentation to
build and test documentation locally.
- [ ] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [ ] I've made sure all auto checks have passed.
Copy file name to clipboardExpand all lines: python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/faq.md
+66-22
Original file line number
Diff line number
Diff line change
@@ -15,51 +15,95 @@ A: You can specify the directory where files are stored by setting the `--appdir
15
15
16
16
Yes. AutoGen standardizes on the openai model api format, and you can use any api server that offers an openai compliant endpoint.
17
17
18
-
AutoGen Studio is based on declaritive specifications which applies to models as well. Agents can include a model_client field which specifies the model endpoint details including `model`, `api_key`, `base_url`, `model type`.
18
+
AutoGen Studio is based on declaritive specifications which applies to models as well. Agents can include a model_client field which specifies the model endpoint details including `model`, `api_key`, `base_url`, `model type`. Note, you can define your [model client](https://microsoft.github.io/autogen/dev/user-guide/core-user-guide/components/model-clients.html) in python and dump it to a json file for use in AutoGen Studio.
19
19
20
-
An example of the openai model client is shown below:
20
+
In the following sample, we will define an OpenAI, AzureOpenAI and a local model client in python and dump them to a json file.
21
+
22
+
```python
23
+
from autogen_ext.models.openai import AzureOpenAIChatCompletionClient, OpenAIChatCompletionClient
It is important that you add the `model_capabilities` field to the model client specification for custom models. This is used by the framework instantiate and use the model correctly. Also, the `AssistantAgent` and many other agents in AgentChat require the model to have the `function_calling` capability.
106
+
It is important that you add the `model_info` field to the model client specification for custom models. This is used by the framework instantiate and use the model correctly. Also, the `AssistantAgent` and many other agents in AgentChat require the model to have the `function_calling` capability.
Copy file name to clipboardExpand all lines: python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/index.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,9 @@ myst:
12
12
13
13
AutoGen Studio is a low-code interface built to help you rapidly prototype AI agents, enhance them with tools, compose them into teams and interact with them to accomplish tasks. It is built on [AutoGen AgentChat](https://microsoft.github.io/autogen) - a high-level API for building multi-agent applications.
> See a video tutorial on AutoGen Studio v0.4 (02/25) - [https://youtu.be/oum6EI7wohM](https://youtu.be/oum6EI7wohM)
16
+
17
+
[](https://www.youtube.com/watch?v=oum6EI7wohM)
16
18
17
19
Code for AutoGen Studio is on GitHub at [microsoft/autogen](https://github.com/microsoft/autogen/tree/main/python/packages/autogen-studio)
Copy file name to clipboardExpand all lines: python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/usage.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,9 @@ myst:
10
10
AutoGen Studio provides a Team Builder interface where developers can define multiple components and behaviors. Users can create teams, add agents to teams, attach tools and models to agents, and define team termination conditions.
11
11
After defining a team, users can test it in the Playground view to accomplish various tasks through direct interaction.
> See a video tutorial on AutoGen Studio v0.4 (02/25) - [https://youtu.be/oum6EI7wohM](https://youtu.be/oum6EI7wohM)
14
+
15
+
[](https://www.youtube.com/watch?v=oum6EI7wohM)
14
16
15
17
## Declarative Specification of Componenents
16
18
@@ -100,8 +102,6 @@ This example shows a team with a single agent, using the `RoundRobinGroupChat` t
100
102
101
103
## Building an Agent Team
102
104
103
-
<divstyle="padding:58.13%000;position:relative; border-radius:5px; border-bottom:10px"><iframesrc="https://player.vimeo.com/video/1043133833?badge=0&autopause=0&player_id=0&app_id=58479"frameborder="0"allow="autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media"style="position:absolute;top:0;left:0;width:100%;height:100%;"title="AutoGen Studio v0.4x - Drag and Drop Interface"></iframe></div><scriptsrc="https://player.vimeo.com/api/player.js"></script>
104
-
105
105
<br/>
106
106
107
107
AutoGen Studio integrates closely with all component abstractions provided by AutoGen AgentChat, including {py:class}`~autogen_agentchat.teams`, {py:class}`~autogen_agentchat.agents`, {py:class}`~autogen_core.models`, {py:class}`~autogen_core.tools`, and termination {py:class}`~autogen_agentchat.conditions`.
@@ -117,6 +117,8 @@ Team Builder Operations:
117
117
- Agents: Add models and tools
118
118
- Save team configurations
119
119
120
+
Note: For each node in the visual builder, you can click on the edit icon (top right) to view and edit the JSON configuration.
121
+
120
122
## Gallery - Sharing and Reusing Components
121
123
122
124
A Gallery is a collection of components - teams, agents, models, tools, and terminations - that can be shared and reused across projects.
description="A tool that performs Google searches using the Google Custom Search API. Requires the requests library, [GOOGLE_API_KEY, GOOGLE_CSE_ID] to be set, env variable to function.",
system_message="""You are a research assistant focused on finding accurate information.
285
+
Use the google_search tool to find relevant information.
286
+
Break down complex queries into specific search terms.
287
+
Always verify information across multiple sources when possible.
288
+
When you find relevant information, explain why it's relevant and how it connects to the query. When you get feedback from the a verifier agent, use your tools to act on the feedback and make progress.""",
289
+
)
290
+
291
+
verifier=AssistantAgent(
292
+
name="verifier",
293
+
description="A verification specialist who ensures research quality and completeness",
294
+
model_client=model_client,
295
+
system_message="""You are a research verification specialist.
296
+
Your role is to:
297
+
1. Verify that search queries are effective and suggest improvements if needed
298
+
2. Explore drill downs where needed e.g, if the answer is likely in a link in the returned search results, suggest clicking on the link
299
+
3. Suggest additional angles or perspectives to explore. Be judicious in suggesting new paths to avoid scope creep or wasting resources, if the task appears to be addressed and we can provide a report, do this and respond with "TERMINATE".
300
+
4. Track progress toward answering the original question
301
+
5. When the research is complete, provide a detailed summary in markdown format. For incomplete research, end your message with "CONTINUE RESEARCH". For complete research, end your message with APPROVED.
302
+
Your responses should be structured as:
303
+
- Progress Assessment
304
+
- Gaps/Issues (if any)
305
+
- Suggestions (if needed)
306
+
- Next Steps or Final Summary""",
307
+
)
308
+
309
+
summary_agent=AssistantAgent(
310
+
name="summary_agent",
311
+
description="A summary agent that provides a detailed markdown summary of the research as a report to the user.",
312
+
model_client=model_client,
313
+
system_message="""You are a summary agent. Your role is to provide a detailed markdown summary of the research as a report to the user. Your report should have a reasonable title that matches the research question and should summarize the key details in the results found in natural an actionable manner. The main results/answer should be in the first paragraph.
314
+
Your report should end with the word "TERMINATE" to signal the end of the conversation.""",
selector_prompt="""You are coordinating a research team by selecting the team member to speak/act next. The following team member roles are available:
320
+
{roles}.
321
+
The research_assistant performs searches and analyzes information.
322
+
The verifier evaluates progress and ensures completeness.
323
+
The summary_agent provides a detailed markdown summary of the research as a report to the user.
324
+
325
+
Given the current context, select the most appropriate next speaker.
326
+
The research_assistant should search and analyze.
327
+
The verifier should evaluate progress and guide the research (select this role is there is a need to verify/evaluate progress). You should ONLY select the summary_agent role if the research is complete and it is time to generate a report.
328
+
329
+
Base your selection on:
330
+
1. Current stage of research
331
+
2. Last speaker's findings or suggestions
332
+
3. Need for verification vs need for new information
333
+
Read the following conversation. Then select the next role from {participants} to play. Only return the role.
334
+
335
+
{history}
336
+
337
+
Read the above conversation. Then select the next role from {participants} to play. ONLY RETURN THE ROLE."""
0 commit comments