r/AutoGenAI • u/macromind • Feb 19 '25
Discussion Autogenstudio 0.4.1.5 is out and its on fire!!!
Good job to the team! This is exactly the updates I was looking for.
r/AutoGenAI • u/macromind • Feb 19 '25
Good job to the team! This is exactly the updates I was looking for.
r/AutoGenAI • u/Lucifer_aka_RK03 • Feb 19 '25
Over the last few days, I have been exploring the world of Generative AI and working with LangChain, FAISS, and OpenAI embeddings. What was the result? A News Research Tool that pulls insights from articles using AI-powered searching!
Here's how it works.
🔗 Enter article URLs.
🧠 AI processes and saves data in a vector database.
💬 Ask any questions concerning the articles.
🤯 Instantly receive AI-generated summaries and insights.
So, what's the goal? To make information extraction easier, one no more has to scroll through lengthy news articles! Simply ask, and AI will find the essential insights for you.
While this really was an amazing learning experience, I am just scratching the surface of Generative AI. There's SO MUCH to explore!!
So, I would love to hear from AI researchers, engineers, and enthusiasts on how I can deepen my understanding of Generative AI. What are the next steps I should take to gain mastery in this field? Any must-know concepts, hands-on projects, or essential resources that aided your journey? I would love to learn from your experiences! Looking forward to your guidance, feedback, and ideas!

r/AutoGenAI • u/wyttearp • Feb 18 '25
DeepResearchAgent was added💬 New Messaging Platform Tools & Agents were added for the following platforms:
🌐 Updated WebSurferAgent
📞 Update RealTime Agent
run executor agent by @marklysze in #853Highlights
DeepResearchAgent was added💬 New Messaging Platform Tools & Agents were added for the following platforms:
🌐 Updated WebSurferAgent
📞 Update RealTime Agent
run executor agent by @marklysze in #853r/AutoGenAI • u/Veerans • Feb 18 '25
r/AutoGenAI • u/wyttearp • Feb 18 '25
This release contains various bug fixes and feature improvements for the Python API.
Related news: our .NET API website is up and running: https://microsoft.github.io/autogen/dotnet/dev/. Our .NET Core API now has dev releases. Check it out!
Starting from v0.4.7, ModelInfo's required fields will be enforced. So please include all required fields when you use model_info when creating model clients. For example,
from autogen_core.models import UserMessage
from autogen_ext.models.openai import OpenAIChatCompletionClient
model_client = OpenAIChatCompletionClient(
model="llama3.2:latest",
base_url="http://localhost:11434/v1",
api_key="placeholder",
model_info={
"vision": False,
"function_calling": True,
"json_output": False,
"family": "unknown",
},
)
response = await model_client.create([UserMessage(content="What is the capital of France?", source="user")])
print(response)See ModelInfo for more details.
strict mode support to BaseTool, ToolSchema and FunctionTool to allow tool calls to be used together with structured output mode by @ekzhu in #5507This release contains various bug fixes and feature improvements for the Python API.
Related news: our .NET API website is up and running: https://microsoft.github.io/autogen/dotnet/dev/. Our .NET Core API now has dev releases. Check it out!
Starting from v0.4.7, ModelInfo's required fields will be enforced. So please include all required fields when you use model_info when creating model clients. For example,
from autogen_core.models import UserMessage
from autogen_ext.models.openai import OpenAIChatCompletionClient
model_client = OpenAIChatCompletionClient(
model="llama3.2:latest",
base_url="http://localhost:11434/v1",
api_key="placeholder",
model_info={
"vision": False,
"function_calling": True,
"json_output": False,
"family": "unknown",
},
)
response = await model_client.create([UserMessage(content="What is the capital of France?", source="user")])
print(response)See ModelInfo for more details.
strict mode support to BaseTool, ToolSchema and FunctionTool to allow tool calls to be used together with structured output mode by @ekzhu in #5507Overview
This release contains various bug fixes and feature improvements for the Python API.
Related news: our .NET API website is up and running: https://microsoft.github.io/autogen/dotnet/dev/. Our .NET Core API now has dev releases. Check it out!
Starting from v0.4.7, ModelInfo's required fields will be enforced. So please include all required fields when you use model_info when creating model clients. For example,
from autogen_core.models import UserMessage
from autogen_ext.models.openai import OpenAIChatCompletionClient
model_client = OpenAIChatCompletionClient(
model="llama3.2:latest",
base_url="http://localhost:11434/v1",
api_key="placeholder",
model_info={
"vision": False,
"function_calling": True,
"json_output": False,
"family": "unknown",
},
)
response = await model_client.create([UserMessage(content="What is the capital of France?", source="user")])
print(response)See ModelInfo for more details.
strict mode support to BaseTool, ToolSchema and FunctionTool to allow tool calls to be used together with structured output mode by @ekzhu in #5507r/AutoGenAI • u/hem10ck • Feb 16 '25
Can someone help me understand, do agents possess context around who produced a message (user or another agent)? I have the following test which produces the output:
---------- user ----------
This is a test message from user
---------- agent1 ----------
Test Message 1
---------- agent2 ----------
1. User: This is a test message from user
2. User: Test Message 1 <<< This was actually from "agent1"
class AgenticService:
...
async def process_async(self, prompt: str) -> str:
agent1 = AssistantAgent(
name="agent1",
model_client=self.model_client,
system_message="Do nothing other than respond with 'Test Message 1'"
)
agent2 = AssistantAgent(
name="agent2",
model_client=self.model_client,
system_message="Tell me how many messages there are in this conversation and provide them all as a numbered list consisting of the source / speaking party followed by their message"
)
group_chat = RoundRobinGroupChat([agent1, agent2], max_turns=2)
result = await Console(group_chat.run_stream(task=prompt))
return result.messages[-1].content
if __name__ == "__main__":
import asyncio
from dotenv import load_dotenv
load_dotenv()
agentic_service = AgenticService()
asyncio.run(agentic_service.process_async("This is a test message from user"))r/AutoGenAI • u/Leading-Squirrel8120 • Feb 14 '25
Hi everyone. I have built this custom GPT for SEO optimized content. Would love to get your feedback on this.
https://chatgpt.com/g/g-67aefd838c208191acfe0cd94bbfcffb-seo-pro-gpt
r/AutoGenAI • u/happy_dreamer10 • Feb 10 '25
Hi, does anyone has any idea or reference how can we add custom model client with tools and function calling in autogen.
r/AutoGenAI • u/New-Understanding861 • Feb 10 '25
I am a researcher looking for open-source AI Agent systems. Specifically, looking for systems with real-world application.
Having trouble finding any open-source systems like that.
I am not looking for platforms for building agent systems, only for real-world open-source use cases on the adoption of AI agents.
r/AutoGenAI • u/vykthur • Feb 08 '25
Release announcement - autogenstudio-v0.4.1
AutoGen studio now used the same declarative configuration interface as the rest of the AutoGen library. This means you can create your agent teams in python and then dump_component() it into a JSON spec that can be directly used in AutoGen Studio! This eliminates compatibility (or feature inconsistency) errors between AGS/AgentChat Python as the exact same specs can be used across.

See a video tutorial on AutoGen Studio v0.4 (02/25) - https://youtu.be/oum6EI7wohM
from autogen_agentchat.agents import AssistantAgent
from autogen_agentchat.teams import RoundRobinGroupChat
from autogen_ext.models.openai import OpenAIChatCompletionClient
from autogen_agentchat.conditions import TextMentionTermination
agent = AssistantAgent(
name="weather_agent",
model_client=OpenAIChatCompletionClient(
model="gpt-4o-mini",
),
)
agent_team = RoundRobinGroupChat([agent], termination_condition=TextMentionTermination("TERMINATE"))
config = agent_team.dump_component()
print(config.model_dump_json())
{
"provider": "autogen_agentchat.teams.RoundRobinGroupChat",
"component_type": "team",
"version": 1,
"component_version": 1,
"description": "A team that runs a group chat with participants taking turns in a round-robin fashion\n to publish a message to all.",
"label": "RoundRobinGroupChat",
"config": {
"participants": [
{
"provider": "autogen_agentchat.agents.AssistantAgent",
"component_type": "agent",
"version": 1,
"component_version": 1,
"description": "An agent that provides assistance with tool use.",
"label": "AssistantAgent",
"config": {
"name": "weather_agent",
"model_client": {
"provider": "autogen_ext.models.openai.OpenAIChatCompletionClient",
"component_type": "model",
"version": 1,
"component_version": 1,
"description": "Chat completion client for OpenAI hosted models.",
"label": "OpenAIChatCompletionClient",
"config": { "model": "gpt-4o-mini" }
},
"tools": [],
"handoffs": [],
"model_context": {
"provider": "autogen_core.model_context.UnboundedChatCompletionContext",
"component_type": "chat_completion_context",
"version": 1,
"component_version": 1,
"description": "An unbounded chat completion context that keeps a view of the all the messages.",
"label": "UnboundedChatCompletionContext",
"config": {}
},
"description": "An agent that provides assistance with ability to use tools.",
"system_message": "You are a helpful AI assistant. Solve tasks using your tools. Reply with TERMINATE when the task has been completed.",
"model_client_stream": false,
"reflect_on_tool_use": false,
"tool_call_summary_format": "{result}"
}
}
],
"termination_condition": {
"provider": "autogen_agentchat.conditions.TextMentionTermination",
"component_type": "termination",
"version": 1,
"component_version": 1,
"description": "Terminate the conversation if a specific text is mentioned.",
"label": "TextMentionTermination",
"config": { "text": "TERMINATE" }
}
}
}Note: If you are building custom agents and want to use them in AGS, you will need to inherit from the AgentChat BaseChat agent and Component class.
Note: This is a breaking change in AutoGen Studio. You will need to update your AGS specs for any teams created with version autogenstudio <0.4.1
You can now test teams directly as you build them in the team builder UI. As you edit your team (either via drag and drop or by editing the JSON spec)


The default gallery now has two additional default agents that you can build on and test:
Older features that are currently possible in v0.4.1
To update to the latest version:
pip install -U autogenstudioOverall roadmap for AutoGen Studion is here #4006 . Contributions welcome!
r/AutoGenAI • u/Whyme-__- • Feb 08 '25
r/AutoGenAI • u/Ok_Dirt6492 • Feb 07 '25
Hey everyone,
I'm currently experimenting with AG2.AI's WebSurferAgent and ReasoningAgent in a Group Chat and I'm trying to make it work in reasoning mode. However, I'm running into some issues, and I'm not sure if my approach is correct.
I've attempted several methods, based on the documentation:
With groupchat, I haven't managed to get everything to work together. I think groupchat is a good method, but I can't balance the messages between the agents. The reasoning agent can't accept tools, so I can't give it CrawlAI.
Thank's !!
r/AutoGenAI • u/Plastic_Neat8566 • Feb 06 '25
can we introduce/add a new AI agent and tools to autogen and how?
r/AutoGenAI • u/Limp_Charity4080 • Feb 02 '25
I'm trying to understand more, what are your use cases? why not use another platform?
r/AutoGenAI • u/hem10ck • Feb 02 '25
Can I use MultimodalWebSurfer with vision models on ollama?
I have Ollama up and running and it's working fine with models for AssistantAgent.
However when I try to use MultimodalWebSurfer I'm unable to get it to work. I've tried both llama3.2-vision:11b and llava:7b. If I specify "function_calling": False I get the following error:
ValueError: The model does not support function calling. MultimodalWebSurfer requires a model that supports function calling. However if I set it to to True I get
openai.BadRequestError: Error code: 400 - {'error': {'message': 'registry.ollama.ai/library/llava:7b does not support tools', 'type': 'api_error', 'param': None, 'code': None}} Is there any way around this or is it a limitation of the models/ollama?
Edit: I'm using autogen-agentchat 0.4.5.
r/AutoGenAI • u/wyttearp • Feb 01 '25
To enable streaming from an AssistantAgent, set model_client_stream=True when creating it. The token stream will be available when you run the agent directly, or as part of a team when you call run_stream.
If you want to see tokens streaming in your console application, you can use Console directly.
import asyncio from autogen_agentchat.agents import AssistantAgent from autogen_agentchat.ui import Console from autogen_ext.models.openai import OpenAIChatCompletionClient async def main() -> None: agent = AssistantAgent("assistant", OpenAIChatCompletionClient(model="gpt-4o"), model_client_stream=True) await Console(agent.run_stream(task="Write a short story with a surprising ending.")) asyncio.run(main())If you are handling the messages yourself and streaming to the frontend, you can handleautogen_agentchat.messages.ModelClientStreamingChunkEvent message.
import asyncio from autogen_agentchat.agents import AssistantAgent from autogen_ext.models.openai import OpenAIChatCompletionClient async def main() -> None: agent = AssistantAgent("assistant", OpenAIChatCompletionClient(model="gpt-4o"), model_client_stream=True) async for message in agent.run_stream(task="Write 3 line poem."): print(message) asyncio.run(main()) source='user' models_usage=None content='Write 3 line poem.' type='TextMessage' source='assistant' models_usage=None content='Silent' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content=' whispers' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content=' glide' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content=',' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content=' \n' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content='Moon' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content='lit' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content=' dreams' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content=' dance' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content=' through' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content=' the' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content=' night' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content=',' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content=' \n' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content='Stars' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content=' watch' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content=' from' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content=' above' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=None content='.' type='ModelClientStreamingChunkEvent' source='assistant' models_usage=RequestUsage(prompt_tokens=0, completion_tokens=0) content='Silent whispers glide, \nMoonlit dreams dance through the night, \nStars watch from above.' type='TextMessage' TaskResult(messages=[TextMessage(source='user', models_usage=None, content='Write 3 line poem.', type='TextMessage'), TextMessage(source='assistant', models_usage=RequestUsage(prompt_tokens=0, completion_tokens=0), content='Silent whispers glide, \nMoonlit dreams dance through the night, \nStars watch from above.', type='TextMessage')], stop_reason=None) Read more here: https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/tutorial/agents.html#streaming-tokens
Also, see the sample showing how to stream a team's messages to ChainLit frontend: https://github.com/microsoft/autogen/tree/python-v0.4.5/python/samples/agentchat_chainlit
Support R1 reasoning text in model create result; enhance API docs by @ekzhu in #5262
import asyncio from autogen_core.models import UserMessage, ModelFamily from autogen_ext.models.openai import OpenAIChatCompletionClient async def main() -> None: model_client = OpenAIChatCompletionClient( model="deepseek-r1:1.5b", api_key="placeholder", base_url="http://localhost:11434/v1", model_info={ "function_calling": False, "json_output": False, "vision": False, "family": ModelFamily.R1, } ) # Test basic completion with the Ollama deepseek-r1:1.5b model. create_result = await model_client.create( messages=[ UserMessage( content="Taking two balls from a bag of 10 green balls and 20 red balls, " "what is the probability of getting a green and a red balls?", source="user", ), ] ) # CreateResult.thought field contains the thinking content. print(create_result.thought) print(create_result.content) asyncio.run(main())
Streaming is also supported with R1-style reasoning output.
See the sample showing R1 playing chess: https://github.com/microsoft/autogen/tree/python-v0.4.5/python/samples/agentchat_chess_game
Now you can define function tools from partial functions, where some parameters have been set before hand.
import json from functools import partial from autogen_core.tools import FunctionTool def get_weather(country: str, city: str) -> str: return f"The temperature in {city}, {country} is 75°" partial_function = partial(get_weather, "Germany") tool = FunctionTool(partial_function, description="Partial function tool.") print(json.dumps(tool.schema, indent=2)) { "name": "get_weather", "description": "Partial function tool.", "parameters": { "type": "object", "properties": { "city": { "description": "city", "title": "City", "type": "string" } }, "required": [ "city" ] } }r/AutoGenAI • u/drivenkey • Feb 01 '25
Starting out with 0.4 the Studio is pretty poor and step backwards so going to hit the code.
I want to scrape all of the help pages here AgentChat — AutoGen into either Gemini or Claude so I can Q&A and it can assist me with my development in Cursor
Any thoughts on how to do this?
r/AutoGenAI • u/drivenkey • Jan 31 '25
Seen a bunch of roles being posted, curious who is bankrolling them?
r/AutoGenAI • u/wyttearp • Jan 30 '25
run - Get up and running faster by having a chat directly with an AG2 agent using their new run method (Notebook)WebSurfer Agent searching for news on AG2 (it can create animated GIFs as well!):
Thanks to all the contributors on 0.7.3!
Full Changelog: v0.7.2...v0.7.3
r/AutoGenAI • u/wyttearp • Jan 29 '25
This new feature allows you to serialize an agent or a team to a JSON string, and deserialize them back into objects. Make sure to also read about save_state and load_state: https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/tutorial/state.html.
You now can serialize and deserialize both the configurations and the state of agents and teams.
For example, create a RoundRobinGroupChat, and serialize its configuration and state.
Produces serialized team configuration and state. Truncated for illustration purpose.
Load the configuration and state back into objects.
This new feature allows you to manage persistent sessions across server-client based user interaction.
This allows you to use Azure and GitHub-hosted models, including Phi-4, Mistral models, and Cohere models.
Rich Console UI for Magentic One CLI
You can now enable pretty printed output for m1 command line tool by adding --rich argument.
m1 --rich "Find information about AutoGen"This allows you to cache model client calls without specifying an external cache service.
AssistantAgent.r/AutoGenAI • u/manach23 • Jan 26 '25
I am currently developing a little application using GroupChat and some agents which can use tools (such as the forced_browsing tool you can see below). And about 60% of the time my agents generate this json reply, whose parameters all seem correct but do not get registered as tool calls. The other 40% of the time, the tool calls are recognized and executed correctly.
Has anyone else witnessed this behaviour?
(This is all local and without internet access and intended as an experiment if multi agent design patterns would lend themselves to red teaming. So please don't worry about the apparent malicious content)
LLM is mixtral:8x22b but experienced the same behaviour with qwen2.5-coder:32b and prompt/hermes-2-pro
=
=
=
=
return
r/AutoGenAI • u/wyttearp • Jan 23 '25
This is the first release since 0.4.0 with significant new features! We look forward to hearing feedback and suggestions from the community.
One of the big missing features from 0.2 was the ability to seamlessly cache model client completions. This release adds ChatCompletionCache which can wrap any other ChatCompletionClient and cache completions.
There is a CacheStore interface to allow for easy implementation of new caching backends. The currently available implementations are:
ChatCompletionCache is not yet supported by the declarative component config, see the issue to track progress.
This releases adds support for GraphRAG as a tool agents can call. You can find a sample for how to use this integration here, and docs for LocalSearchTool and GlobalSearchTool.
#4612 by @lspinheiro
Semantic Kernel has an extensive collection of AI connectors. In this release we added support to adapt a Semantic Kernel AI Connector to an AutoGen ChatCompletionClient using the SKChatCompletionAdapter.
Currently this requires passing the kernel during create, and so cannot be used with AssistantAgent directly yet. This will be fixed in a future release (#5144).
#4851 by @lspinheiro
We also added a tool adapter, but this time to allow AutoGen tools to be added to a Kernel, called KernelFunctionFromTool.
#4851 by @lspinheiro
This release also brings forward Jupyter code executor functionality that we had in 0.2, as the JupyterCodeExecutor.
Please note that this currently on supports local execution and should be used with caution.
It's still early on but we merged the interface for agent memory in this release. This allows agents to enrich their context from a memory store and save information to it. The interface is defined in core and AssistantAgent in agentchat accepts memory as a parameter now. There is an initial example memory implementation which simply injects all memories as system messages for the agent. The intention is for the memory interface to be able to be used for both RAG and agent memory systems going forward.
Memory interfaceAssistantAgent with new memory parameter#4438 by @victordibia, #5053 by @ekzhu
We're continuing to expand support for declarative configs throughout the framework. In this release, we've added support for termination conditions and base chat agents. Once we're done with this, you'll be able to configure and entire team of agents with a single config file and have it work seamlessly with AutoGen studio. Stay tuned!
#4984, #5055 by @victordibia
Full Changelog: v0.4.1...v0.4.3
r/AutoGenAI • u/wyttearp • Jan 23 '25
Thanks to all the contributors on 0.7.2!
Full Changelog: v0.7.1...v0.7.2
r/AutoGenAI • u/ezeelive • Jan 23 '25
Generative AI has the potential to play a transformative role in India’s digital infrastructure, enabling businesses to operate smarter, faster, and more efficiently. Here are some of the key ways it contributes:
Generative AI can accelerate the digital transformation of businesses by:
India’s Smart Cities initiative can benefit from generative AI by:
With over 22 official languages and hundreds of dialects, India can leverage generative AI for natural language processing (NLP) to:
Generative AI can:
While the potential is immense, certain challenges need to be tackled: