AIOS Docs
  • Welcome
  • Getting Started
    • Installation
    • Quickstart
      • Use Terminal
      • Use WebUI
    • Environment Variables Configuration
  • AIOS Kernel
    • Overview
    • LLM Core(s)
      • LiteLLM Compatible Backend
      • vLLM Backend
      • Hugging Face Backend
      • LLM Routing
    • Scheduler
      • FIFOScheduler
      • RRScheduler
    • Context
    • Memory
      • Base Layer
      • Agentic Memory Operations
    • Storage
      • sto_mount
      • sto_create_file
      • sto_create_directory
      • sto_write
      • sto_retrieve
      • sto_rollback
      • sto_share
    • Tools
    • Access
    • Syscalls
    • Terminal
  • AIOS Agent
    • How to Use Agent
    • How to Develop Agents
      • Develop with Native SDK
      • Develop with AutoGen
      • Develop with Open-Interpreter
      • Develop with MetaGPT
    • How to Publish Agents
  • AIOS-Agent SDK
    • Overview
    • LLM Core API
      • llm_chat
      • llm_chat_with_json_output
      • llm_chat_with_tool_call_output
      • llm_call_tool
      • llm_operate_file
    • Memory API
      • create_memory
      • get_memory
      • update_memory
      • delete_memory
      • search_memories
      • create_agentic_memory
    • Storage API
      • mount
      • create_file
      • create_dir
      • write_file
      • retrieve_file
      • rollback_file
      • share_file
    • Tool API
      • How to Develop Tools
    • Access API
    • Post API
    • Agent API
  • Community
    • How to Contribute
Powered by GitBook
On this page
  • Introduction
  • Quick Start
  1. AIOS Agent
  2. How to Develop Agents

Develop with AutoGen

PreviousDevelop with Native SDKNextDevelop with Open-Interpreter

Last updated 1 month ago

Introduction

AutoGen is an open-source programming framework for building AI agents and facilitating cooperation among multiple agents to solve tasks. We made it so that agent applications developed with Autogen can run on AIOS by adding just one line of code.

(Only support AutoGen version~0.2 now)

Quick Start

For installation and usage of AutoGen, please refer to .

If you want to run an application developed with Autogen on AIOS, please add prepare_framework() before you create an autogen agent, and select a framework type through FrameworkType. When you want to use AutoGen, you should use FrameworkType.AutoGen. Then create autogen agent. When running on AIOS, you don't need to supply parameter llm_config, this parameter configures the llm model that the agent will use. Because AIOS will deal with the calling of llms in the backend.

+ with aios_starter(**vars(args)):
+    prepare_framework(FrameworkType.AutoGen)
    
     # Create the agent that uses the LLM.
     assistant = ConversableAgent("agent")
    
     # Create the agent that represents the user in the conversation.
     user_proxy = UserProxyAgent("user", code_execution_config=False)
    
     # Let the assistant start the conversation.  It will end when the user types exit.
     assistant.initiate_chat(user_proxy, message="How can I help you today?")

More examples can be found in

AutoGen
https://github.com/agiresearch/AIOS/tree/main/scripts/aios-autogen
.