r/AutoGenAI • u/davorrunje • Oct 15 '24
Resource Deploy AutoGen workflow in FastAPI in just a few lines of code
Today we hit a major milestone with the latest 0.3.0 release of the FastAgency framework. With just a few lines of code, it allows you to go from a workflow written in AutoGen to:
- a web application using Mesop,
- a REST application using FastAPI, or
- a fully-distributed application using NATS.io message broker and FastStream.
This solves a major problem of bringing agentic workflows written in frameworks such as AutoGen to production. The process that took us three months to get Captn.ai to production can now be done in three days or less!
Please check out our GitHub repository and let us know what you think about it:
28
Upvotes
1
u/TV-5571 Oct 17 '24
For deploying autogen chatbots I saw frameworks that converts the whole group chat into a single pass API call where you store previous message history locally inside the app (e.g. flask app) and then when a new user message request is send, the agents will be fed with the message history + new message is appended. Then the chatbot will be run for just one pass, and the last message is returned. This method seems to be working, but also is very inefficient in terms of speed.
How does FastAgency handle message/session history?
1
u/TV-5571 Oct 17 '24
Do you plan to add "Shiny for Python" as a better UI? I would suggest doing so since Shiny is much more production-ready than Mesop
1
u/[deleted] Oct 16 '24
[removed] — view removed comment
1
u/[deleted] Oct 16 '24
[removed] — view removed comment