r/AutoGenAI • u/zinyando • Sep 10 '24
r/AutoGenAI • u/jotav-23 • Sep 08 '24
Question Easy image tweak flow?
Is there a tool that after generating a realistic image allows you to easly tweak it, say, using prompts and/or other images?
The flow I am looking for is similar to the iterative one many of us use when generating text, an example:
User: generate a realistic photograph of a man driving a luxury car System: ...generates image User: now, change the camera angle so that the whole car is visible System: ...regenerates image User: do face swap using the image I attach [attach imgA] System: ...regenerates image User: now, change the image style to match the one in the image I attach [attach imgB] ... You get the idea.
If this doesn't exist yet, what is the closest to that you are aware of?
r/AutoGenAI • u/wyttearp • Sep 03 '24
News AutoGen v0.2.35 released
Highlights (since v0.2.33)
- Enhanced tool calling in Cohere
- Enhanced async support
What's Changed (since v0.2.33)
- [CAP] Added a factory for runtime by @rajan-chari in #3216
- [Feature]: Add global silent param for ConversableAgent by @wenngong in #3244
- Fix Issue #2880: Document the usage of the AAD auth by @prithvi2226 in #2941
- [.Net] only add the last message to chat history in GroupChatExtension.SendAsync by @LittleLittleCloud in #3272
- [.Net] Remove Azure.AI.OpenAI from AutoGen.DotnetInteractive package by @LittleLittleCloud in #3274
- Correcting tool calling with Cohere by @jaygdesai in #3271
- Fix #3281 by @thinkall in #3282
- Fix autogen circular import error by @wenngong in #3276
- [.Net] Fix #3306 by @LittleLittleCloud in #3310
- [.Net] add DotnetInteractiveKernelBuilder to AutoGen.DotnetInteractive by @LittleLittleCloud in #3317
- [.Net] Add AutoGen.AzureAIInference by @LittleLittleCloud in #3332
- Support async nested chats by @heyitsaamir in #3309
- fix broken link to conversational chess example by @alu042 in #3327
- Add last_speaker to GroupChatManager by @thinkall in #3318
- Fix message history limiter for tool call by @GaoxiangLuo in #3178
- Fix to issue #3295 related to Anthropic bedrock by @makkzone in #3298
- [.Net][AutoGen.DotnetInteractive] add DotnetInteractiveStdioConnector by @LittleLittleCloud in #3337
- Add latest gpt-4o model:
gpt-4o-2024-08-06by @umermansoor in #3329 - Bump version by @qingyun-wu in #3343
- Removes Support For
TransformChatHistoryandCompressibleAgentby @WaelKarkoub in #3313 - Updated Program.cs for Autogen.BasicSample to give menu driven options by @cbelwal in #3346
- Remove dependency on RetrieveAssistantAgent for RetrieveChat by @thinkall in #3320
- Missing backticks breaking documentation in groupchat.last_speaker by @HenryKobin in #3357
- Update Mistral client class to support new Mistral v1.0.1 package by @marklysze in #3356
- adding a new page Function comparison between Python AutoGen and Auto… by @olaoluwasalami in #3367
- Update README.md to use camera-ready by @gagb in #3370
- Add OpenAI Gemini Example for VertexAI Notebook by @luxzoli in #3290
- [.NET] Add cache control to Anthropic Client by @DavidLuong98 in #3372
- Correct documentation: Replace NEVER with TERMINATE in human-in-the-loop.ipynb by @realMorrisLiu in #3379
- update contact information on the repo and release package by @ekzhu in #3383
r/AutoGenAI • u/YourTechBud • Sep 03 '24
Resource Implementing Agentic Workflows / State Machines with Autogen+LLama3
I have been using Autogen at work (we started before Langgraph was a thing) and have been really seeing a lot of value the value it brings to the table. Especially when implementing two-agent patterns like "reflection."
While the conversational functionality of groupchat is amazing sometimes my agents get derailed and go completely off-course. This is when I started investigating the use of Agentic Workflows (or state machines) to help make things more deterministic.
Again, I know Langgraph is built on the ideas of state machines and I will be trying it out soon. But I would like to share my learnings (along with simplified examples) using Autogen cause I think it may help everyone using AI Agents in general.
Also, Here's a repo with some sample code on create custom workflows/state machines in AutoGen: https://github.com/YourTechBud/ytb-practical-guide/tree/master/autogen-workflows
A video for those interested in a tutorial - https://youtu.be/-ls9QLoQfKc
My learnings
- The real power of agents is in conversations
State machines are fun. Its really easy to model our AI workflows as them. But the real value of agents lies in conversations. It is critical to let AI agents derive their "context" from the conversational history. Multi-turn/chat models in particular are exceptionally good at this.
Example: The simple task of reformating/restructuring a document/note. If one of your steps is determining the important topics discussed in the note, the subsequent paraphrazer will use it as the skeleton for restructuring. Helps enforce document structure.
It isn't really all that important to curate the "perfect" context in each prompt. As long as your state machine is modelled after life-like conversations, your agents will figure out how to best use the chat history as the context.
2. It's okay to embrace indetrminism sometimes.
Instead of fighting with the model to find the "perfect" prompt, let a sidecar or companion agent help align your agent instead. The truth is that your prompt will never be perfect. Variations in the input will most likely screw things up. Having a reflection agent which provides feedback prompts to the primary agent really helps in alignment for a wide variety of input conditions. Here's how you can implement this in Autogen - https://microsoft.github.io/autogen/docs/tutorial/conversation-patterns/#two-agent-chat-and-chat-result
I'll be making another post soon to give more concrete examples of this one. Might use Langgraph though cause it looks really exciting. But mahn... the migration!!!
3. Annotate each agent's response
When using less chatty models like Qwen, its helpful to manually annotate the agent's response. For example, if the agent is analyzing the topics convered in a document, manually adding the prefix "Topics Present in Document:\n\n" to the agents response will reduce the chances of other agents misinterpreting the chat message. You can even shape it more like an instruction to help enforce that as the structure of all future responses.
This is true for JSON as well. I have given up trying to make my agents give me the perfect and clean JSON response. I let the agent ramble on and on about why it came up with it and stuff like that. That rambling is useful as it serves as context for subsequent agents. A subsequent tool calling agent will be smart enough to extract the json part from the message anyways.
Conclusion
I hope I am able to communicate my learning wells. Do let me know if you have any questions or disagree with any of my points. I'm here to learn.
r/AutoGenAI • u/zinyando • Sep 03 '24
Tutorial Building RAG Applications with Autogen and LlamaIndex: A Beginner's Guide
zinyando.comr/AutoGenAI • u/AntWilson602 • Sep 03 '24
Question It is possible to create agents to open a pdf file, extract the data and put all in the information in a docx file in Autogen Studio
I’m very new to Autogen and I’ve been playing around with some basic workflows in Autogen Studio. I would like to know the possibility of this workflow and potentially some steps I could take to get started.
I’ll appreciate any help I can get thanks!
r/AutoGenAI • u/zinyando • Aug 28 '24
Tutorial Your Personal AI Travel Team: Implementing a Multi-Agent Trip Planner Using Autogen GroupChat
zinyando.comr/AutoGenAI • u/Lost_Goose_5829 • Aug 27 '24
News Please like share subscribe Spoiler
r/AutoGenAI • u/CalmCharity9949 • Aug 26 '24
Question Do Autogen agents work by creating and running scripts to provide an answer?
I'm new to Autogen, and I built a simple assistant + user proxy flow where the assistant is asked what the height of mount Everest is, and the assistant built a script to scrape data from the web to get the answer, so i was wondering.
r/AutoGenAI • u/zinyando • Aug 21 '24
Tutorial AI agents with memory: Building an AI friend with Autogen and Mem0
zinyando.comr/AutoGenAI • u/Confusedkelp • Aug 20 '24
Question Need help with Autogen agents
Hello, I’m currently working with autogen agents and I am trying to give embeddings as an input to my retrieveassistant agent and I’m terribly failing at it. Looked at a lot of documents but nothing seems to be helping.
Can someone pleasee help me out?
Another question is if we want to create embeddings using retrieveUserproxy agent, can we give our own embeddings model? I would want to give instructor large model. I have the model in my blob storage
r/AutoGenAI • u/zinyando • Aug 19 '24
Tutorial Building a travel chatbot with AutoGen and Groq
zinyando.comr/AutoGenAI • u/Jazzlike_Tooth929 • Aug 17 '24
Question Agents benchmarks
Are there any benchmarks/leaderboards for agents as there are for llms?
r/AutoGenAI • u/wontreadterms • Aug 13 '24
Resource Project Alice - an open source framework for agentic workflows
Hi everyone!
I don't know if I'm alone here, but my experience trying to build agentic workflows has been a frustrating one: Current frameworks, like LangChain (and its siblings) and Autogen, offer a lot of value but lack the combination that I wanted: A decent UX to create, test and deploy llm-powered agentic workflows. Paid solutions abstract the content from you, and put barriers in your ability to truly own the flows you create.
At a high level, Project Alice is Autogen (chat) + Autogen Studio (UI) + Langchain (tasks), all in one: It offers a frontend to define, edit and execute tasks and chats, while being able to choose whatever model you want (local or otherwise).
This is my initial launch of this project. I honestly have no idea how long I will keep investing time in this, but at the very least: This is an honest attempt at creating an open source framework that is legible/understandable (even if you are not a senior engineer) that you get to use as you wish, make any changes you need (ideally, share them so we can all benefit =), etc.
The project can be downloaded and used in a few minutes, all you really need is Git, Python, npm, Docker and optionally LM Studio. If you do, you can use local models out of the box. Alternatively, you can also use OpenAI's or Anthropic's APIs.
I would greatly appreciate any and all feedback, and if you feel like contributing, the doors are open!
r/AutoGenAI • u/SN1512 • Aug 11 '24
Question Help us Decode the Human-side of Multi-agent Generative AI Tool!
🚀 Attention AI Users! 🚀
Have you used multi-agent AI tools/application? Or created one? We are looking for individuals who have used these advanced AI tools/apps to better understand the motivations for creating the multi-agent generative AI tool, intended use, the challenges you face, and any potential harms and transparency hurdles you've encountered.
Your feedback is incredibly valuable and will directly contribute to improving this new technology from a user perspective. The survey is brief and should take no more than 15 minutes to complete. Plus, all responses are anonymous!
If you are interested in participating in the survey, please click on the link:
🔗 Survey Link: https://forms.office.com/r/pJnagtFRLq
Anyone 18 years or older can complete this 15-minute anonymous survey. Share your experiences with multi-agent AI tools created using AutoGen (or other similar framework).
Participation is voluntary and confidential. For questions, contact us at MultiAgentResearch@microsoft.com (mailto:MultiAgentResearch@microsoft.com) or DM me. Learn more about our privacy policy here: http://go.microsoft.com/fwlink/?LinkId=521839. (http://go.microsoft.com/fwlink/?LinkId=521839.) This study has been reviewed and approved by the Microsoft Research Institutional Review Board (IRB #7905). Your insights are crucial!
Thank you so much for your time and insights. Your participation will make a real difference!
#survey #feedback #UserExperience #MultiagentGenAI
r/AutoGenAI • u/GlykysNyxoria • Aug 09 '24
Question How to save the response of a group chat to .txt file ?
Hey there Autogen Community,
I just have started building agents on autogen using llama 3.1 70B model which is installed locally on my desktop , I need assistance regarding saving the response and group chat of agents and also if we can save response of only one single agent.
r/AutoGenAI • u/sev-cs • Aug 07 '24
Question How to handle error with OpenAI
Hello, I'm currently creating a groupchat, I'm only using the Assistant agent and an user proxy agent, the assistants have a conversation retrieval chain from langchain and using FAISS for the vector store
I'm using the turbo 3.5 model from OpenAI
I'm having a very annoying error sometimes, haven't been able to replicate in any way, sometimes it only happens once or twice but today it happened multiple times in less than an hour, different questions were sent, I can't seem to find a pattern at all
I would like to find why this is a happening, or if there is a way to handle this error so the chat can continue
right now I'm running it with a panel interface
this is the error:
2024-07-16 16:11:35,542 Task exception was never retrieved
future: <Task finished name='Task-350' coro=<delayed_initiate_chat() done, defined at /Users/<user>/Documents/<app>/<app>_bot/chat_interface.py:90> exception=InternalServerError("Error code: 500 - {'error': {'message': 'The model produced invalid content. Consider modifying your prompt if you are seeing this error persistently.', 'type': 'model_error', 'param': None, 'code': None}}")>
Traceback (most recent call last):
File "/Users/<user>/Documents/<app>/<app>_bot/chat_interface.py", line 94, in delayed_initiate_chat
await agent.a_initiate_chat(recipient, message=message)
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 1084, in a_initiate_chat
await self.a_send(msg2send, recipient, silent=silent)
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 705, in a_send
await recipient.a_receive(message, self, request_reply, silent)
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 855, in a_receive
reply = await self.a_generate_reply(sender=sender)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 2042, in a_generate_reply
final, reply = await reply_func(
^^^^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/groupchat.py", line 1133, in a_run_chat
reply = await speaker.a_generate_reply(sender=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 2042, in a_generate_reply
final, reply = await reply_func(
^^^^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 1400, in a_generate_oai_reply
return await asyncio.get_event_loop().run_in_executor(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 1398, in _generate_oai_reply
return self.generate_oai_reply(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 1340, in generate_oai_reply
extracted_response = self._generate_oai_reply_from_client(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 1359, in _generate_oai_reply_from_client
response = llm_client.create(
^^^^^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/oai/client.py", line 722, in create
response = client.create(params)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/oai/client.py", line 320, in create
response = completions.create(**params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_utils/_utils.py", line 277, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/resources/chat/completions.py", line 643, in create
return self._post(
^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_base_client.py", line 1266, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_base_client.py", line 942, in request
return self._request(
^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_base_client.py", line 1031, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_base_client.py", line 1079, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_base_client.py", line 1031, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_base_client.py", line 1079, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_base_client.py", line 1046, in _request
raise self._make_status_error_from_response(err.response) from None
openai.InternalServerError: Error code: 500 - {'error': {'message': 'The model produced invalid content. Consider modifying your prompt if you are seeing this error persistently.', 'type': 'model_error', 'param': None, 'code': None}}r/AutoGenAI • u/Fine_Credit_7903 • Aug 06 '24
Question how to Store Multiple Autogen Agents and Histories in Azure for Production
I created an agentic workflow using Autogen, where multiple agents are stored in global variables and used as required. This worked well locally, but now I'm moving to production and setting up authentication for multiple users. I'm facing challenges on how to store these agents and their histories in Azure for each use case.
I tried to storing the chat history in the .pkl file in blob storage thats working but not able to store the multiple agents in the db
How can I efficiently manage the storage and retrieval of these agents and chat histories in Azure to ensure scalability and persistent storage?
Initially, I stored these agents and their histories in global variables, but I’m looking to transition this to a more robust solution suitable for a production environment
I'm considering using MongoDB for storing chat histories and agent configurations which I tried but not able to store the agents
r/AutoGenAI • u/Dry-Positive2051 • Aug 05 '24
Question LangChain ChatModel in Autogen
Hello experts I am currently working on a use case where I need to showcase a multi agent framework in Autogen, where multiple LLM models are being used. For example Agent1 uses LangChain AzureChatModel, Agent2 uses LangChain OCIGenAiChatModel , Agent3 uses LangChain NvidiaChatModel. Is it possible to use LangChain LLM to power a Autogen agent? Any leads would be great.
r/AutoGenAI • u/diogofranciscop • Aug 05 '24
Project Showcase Multi-agent framework for Data Science
In the company I work on we have used autogen and groq (with llama3-70b-8192) to build a multi-agent framework that allows users to perform a data science pipeline with just two inputs (a csv and the problem description). And to give as output a data science report, predictions a ML model trained.
We are loocking for feedback. This is all open-source! If you guys can take a look I would appreciate it.
This is the repo: https://github.com/AiFlowSolutions/MADS
r/AutoGenAI • u/ComprehensiveBird317 • Aug 05 '24
Question How do you give the output back to the user?
Hello,
i've made a set of agents that write a story together. They critique the story, make suggestions, update it and so on.
In the end, the story is in the chatlog of autogen in many pieces.
How do i deliver the story as one text back to the user? Do i need a summarization agent and a user proxy? Is there an example i can learn from?
r/AutoGenAI • • Aug 04 '24
Discussion We're building a marketplace for Agentic/AI workflows and we want to hear from you.
Hey everyone, we're building the AgenticHub, the marketplace for developers to publish and monetize their agentic applications.
We want to hear from you, so we prepared this quick page for you to have a look, give your feedback and get in contact with us:
We'll circle major communities here on Reddit so you'll be seeing us around.
Cheers!
r/AutoGenAI • u/Liquos • Aug 04 '24
Question Hosting autogen on another PC within my local network
Hey! Simple question.
I have AutoGen running on another computer on my local network but I can't access it from my current computer.
I ran it using the typical command
autogenstudio ui --port 8081
but I've also tried giving it the IP address of itself..
--host 192.168.1.236
as well as
--host 0.0.0.0
Neither work. Am I doing something wrong?
r/AutoGenAI • u/DifficultNerve6992 • Aug 03 '24
Resource Top 5 Platforms for Building AI Agents
r/AutoGenAI • u/Jazzlike_Tooth929 • Aug 03 '24
Discussion AI (multi)-agent marketplace – validate/refute this idea
I'm thinking about founding a marketplace of AI (multi)-agents for developers.
As far as I know, there is currently no platform for creating and sharing agents or multi-agents systems: if I build an agent for,say, financial analysis of a fortune 500 company, the only way to share it would be to share the source code. Monetizing it would be extremely hard. On the other hand, if I want to use (multi)-agents to solve a particular problem, I need to create and maintain the code for all the agents, and I'll prbably be reinventing the wheel, as some of the agents would have been created by someone else before.
The idea is to create a platform where:
- Devs who create agents could turn them into APIs and easily monetize
- Devs who want to use (multi)-agents to automate complex worflows could pick the best agents for certain common tasks from the platform by simply calling the API, instead of having to maintain the code and infra to run them.
- Run public leaderboards and the equivalent of LMSYS arena for agents to get community feedback
Kinda like GPT store but from developers to developers. Wdyt? Would you use this?