forked from microsoft/autogen
-
Notifications
You must be signed in to change notification settings - Fork 0
Nested agents merge #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Update version
--------- Co-authored-by: Eric Zhu <[email protected]>
## Why are these changes needed? - To add support for code generation, execution and reflection to `CodeExecutorAgent`. ## Related issue number Closes microsoft#5824 ## Checks - [x] I've included any doc changes needed for <https://microsoft.github.io/autogen/>. See <https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> to build and test documentation locally. - [x] I've added tests (if relevant) corresponding to the changes introduced in this PR. - [x] I've made sure all auto checks have passed. --------- Signed-off-by: Abhijeetsingh Meena <[email protected]> Co-authored-by: Eric Zhu <[email protected]>
minor grammatical fix in docs Co-authored-by: Victor Dibia <[email protected]> Co-authored-by: Eric Zhu <[email protected]>
## Description This PR pins opentelemetry-proto version to >=1.28.0, which uses protobuf > 5.0, < 6.0 to generate protobuf files. ## Related issue number Closes microsoft#6304
Add missing C# and F# kernels. These are needed to create a default kernel else it will return an empty kernel.
Added support for structured message component using the Json to Pydantic utility functions. Note: also adding the ability to use a format string for structured messages. Co-authored-by: Eric Zhu <[email protected]>
…crosoft#6303) Add an option emit_team_events to BaseGroupChat to emit events from group chat manager through run_stream. SpeakerSelectedEvent from group chat speaker selection. Closes microsoft#6161 Co-authored-by: Eric Zhu <[email protected]>
Resolves microsoft#6232, microsoft#6198 This PR introduces an optional parameter `session` to `mcp_server_tools` to support reuse of the same session. ```python import asyncio from autogen_agentchat.agents import AssistantAgent from autogen_agentchat.conditions import TextMentionTermination from autogen_agentchat.teams import RoundRobinGroupChat from autogen_agentchat.ui import Console from autogen_ext.models.openai import OpenAIChatCompletionClient from autogen_ext.tools.mcp import StdioServerParams, create_mcp_server_session, mcp_server_tools async def main() -> None: model_client = OpenAIChatCompletionClient(model="gpt-4o", parallel_tool_calls=False) # type: ignore params = StdioServerParams( command="npx", args=["@playwright/mcp@latest"], read_timeout_seconds=60, ) async with create_mcp_server_session(params) as session: await session.initialize() tools = await mcp_server_tools(server_params=params, session=session) print(f"Tools: {[tool.name for tool in tools]}") agent = AssistantAgent( name="Assistant", model_client=model_client, tools=tools, # type: ignore ) termination = TextMentionTermination("TERMINATE") team = RoundRobinGroupChat([agent], termination_condition=termination) await Console( team.run_stream( task="Go to https://ekzhu.com/, visit the first link in the page, then tell me about the linked page." ) ) asyncio.run(main()) ``` Based on discussion in this thread: microsoft#6284, we will consider serialization and deserialization of MCP server tools when used in this manner in a separate issue. This PR also replaces the `json_schema_to_pydantic` dependency with built-in utils.
## Why are these changes needed? This PR fixes a bug where the underlying azure `SearchClient` was being closed prematurely due to use of `async with client` : inside the tool's run method. this caused the users to encounter errors "HTTP transport has already been closed" ## Related issue number Closes microsoft#6308 " ## Checks - [ ] I've included any doc changes needed for <https://microsoft.github.io/autogen/>. See <https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> to build and test documentation locally. - [ ] I've added tests (if relevant) corresponding to the changes introduced in this PR. - [X] I've made sure all auto checks have passed. --------- Co-authored-by: Eric Zhu <[email protected]>
) Resolves microsoft#6295 Ensure the thought content gets included in handoff message conetxt, when the only tool call was handoff tool call.
--------- Co-authored-by: Eric Zhu <[email protected]>
…oft#6231) This PR introduces a safer and more controllable execution environment for LLM code execution in version 0.4 by enabling the use of Jupyter inside a container. This enhancement addresses security concerns and provides a more robust execution context. In particular, it allows: Isolation of code execution via containerized Jupyter environments. Persistent memory of variables and their values throughout the conversation. Memory of code execution results to support more advanced reasoning and follow-up tasks. These improvements help build a more interactive and stateful LLM-agent programming experience, especially for iterative code generation and debugging scenarios. ## Related issue number Open microsoft#6153 ## Checks - [x] I've added tests (if relevant) corresponding to the changes introduced in this PR. - [x] I've made sure all auto checks have passed. --------- Co-authored-by: Eric Zhu <[email protected]>
## Why are these changes needed? `SocietyOfMindAgent` has multiple system message, however many client/model does not support it. ## Related issue number Related microsoft#6290 --------- Co-authored-by: Eric Zhu <[email protected]>
This PR adds an example of `parallel-agents` that runs multiple instances of Magentic-One in parallel, with support for early termination and final answer aggregation. --------- Co-authored-by: Eric Zhu <[email protected]>
peterj
approved these changes
Apr 20, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
Related issue number
Checks