•  


GitHub - victordibia/autogen-ui: Web UI for AutoGen (A Framework Multi-Agent LLM Applications)
Skip to content

Web UI for AutoGen (A Framework Multi-Agent LLM Applications)

License

Notifications You must be signed in to change notification settings

victordibia/autogen-ui

Repository files navigation

AutoGen UI

AutoGen UI Screenshot

Experimental UI for working with AutoGen agents, based on the AutoGen library. The UI is built using Next.js and web apis built using FastApi.

Why AutoGen UI?

AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve complex tasks. A UI can help in the development of such applications by enabling rapid prototyping and testing and debugging of agents/agent flows (defining, composing etc) inspecting agent behaviors, and agent outcomes.

Note: This is early work in progress.

Note that you will have to setup your OPENAI_API_KEY or general llm config using an environment variable. Also See this article for how Autogen supports multiple llm providers

export
 OPENAI_API_KEY=
<
your key
>

Getting Started

Install dependencies. Python 3.9+ is required. You can install from pypi using pip.

pip install autogenui 
.

or to install from source

git clone git@github.com:victordibia/autogen-ui.git
cd
 autogenui
pip install -e 
.

Run ui server.

Set env vars OPENAI_API_KEY and NEXT_PUBLIC_API_SERVER .

export
 OPENAI_API_KEY=
<
your_key
>
autogenui 
#
 or with --port 8081

Open http://localhost:8081 in your browser.

To modify the source files, make changes in the frontend source files and run npm run build to rebuild the frontend.

Development

backend - with hot-reload

autogenui --reload

note: the UI loaded by this CLI in a pre-complied version by running the frontend build command show blow. That means if you make changes the frontend code or change the hostname or port the backend is running on the frontend updated frontend code needs to be rebuilt for it to load through this command.

Frontend

cd
 frontend

Install dependencies

yarn install

Run in dev mode - with hot-reload

export
 NEXT_PUBLIC_API_SERVER=http://
<
your_backend_hostname
>
/api

your_backend_hostname - is the hostname that autogenui is running on e.g. localhost:8081

yarn dev

(Re)build

Remember to install dependencies and set NEXT_PUBLIC_API_SERVER before building.

yarn build

Roadmap

  • FastApi end point for AutoGen . This involves setting up a FastApi endpoint that can respond to end user prompt based requests using a basic two agent format.
  • Basic Chat UI Front end UI with a chatbox to enable sending requests and showing responses from the end point for a basic 2 agent format.
    • Debug Tools : enable support for useful debugging capabilities like viewing
      • # of agent turns per request
      • define agent config (e.g. assistant agent + code agent)
      • append conversation history per request
      • display cost of interaction per request (# tokens and $ cost)
  • Streaming UI Enable streaming of agent responses to the UI. This will enable the UI to show agent responses as they are generated, instead of waiting for the entire response to be generated.
  • Flow based Playground UI
    Explore the use of a tool like React Flow to add agent nodes and compose agent flows. For example, setup an assistant agent + a code agent, click run and view output in a chat window.
    • Create agent nodes
    • Compose agent nodes into flows
    • Run agent flows
  • Explore external integrations e.g. with Flowise

References

@inproceedings{wu2023autogen,
      title={AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework},
      author={Qingyun Wu and Gagan Bansal and Jieyu Zhang and Yiran Wu and Shaokun Zhang and Erkang Zhu and Beibin Li and Li Jiang and Xiaoyun Zhang and Chi Wang},
      year={2023},
      eprint={2308.08155},
      archivePrefix={arXiv},
      primaryClass={cs.AI}
}
- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본