[vc_row][vc_column][vc_headings linewidth=”0″ borderwidth=”1″ borderclr=”#000000″ title=”XAgent” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” titlesize=”60″ titleclr=”#000000″ caption_url=”” caption_urls=”” caption_urlss=”” caption_urldesc=””]An Autonomous LLM Agent for Advanced Problem Solving[/vc_headings][vc_single_image image=”3056″ alignment=”center”][vc_column_text]XAgent is a new LLM-based autonomous agent that can perform various tasks without human intervention. It is built on open-source code and can be customized for different domains and scenarios. XAgent aims to be a versatile and flexible agent that can handle complex and diverse challenges.[/vc_column_text][vc_btn title=”Visit Website” color=”warning” align=”center” i_align=”right” i_icon_fontawesome=”fas fa-external-link-alt” add_icon=”true” link=”url:https%3A%2F%2Fwww.kipper.ai%2F”][vc_separator][/vc_column][/vc_row][vc_row][vc_column][vc_headings style=”theme4″ borderclr=”#000000″ style2=”image” title=”Features” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” lineheight=”3″ titlesize=”40″ titleclr=”#000000″ image_id=”2871″][/vc_headings][evc_icon_with_text type=”icon-left” icon_library=”fontawesome” title_tag=”” icon_fontawesome=”fas fa-robot” title=”Autonomy” text=”XAgent can handle various tasks without human intervention.
” text_color=”#0a0000″][evc_icon_with_text type=”icon-left” icon_library=”fontawesome” title_tag=”” icon_fontawesome=”fas fa-user-shield” title=”Safety” text=”XAgent is designed to run safely. All actions are isolated inside a docker container. Run it anyway!
” text_color=”#0a0000″][evc_icon_with_text type=”icon-left” icon_library=”fontawesome” title_tag=”” icon_fontawesome=”fas fa-puzzle-piece” title=”Extensibility” text=”XAgent is designed to be extensible. You can easily add new tools to improve agent’s abilities and even new agents!” text_color=”#0a0000″][evc_icon_with_text type=”icon-left” icon_library=”fontawesome” title_tag=”” icon_fontawesome=”fas fa-tv” title=”GUI” text=”XAgent provides a user-friendly GUI for users to interact with the agent. You can also use the command line interface to interact with the agent.” text_color=”#0a0000″][evc_icon_with_text type=”icon-left” icon_library=”fontawesome” title_tag=”” icon_fontawesome=”fas fa-handshake” title=”Cooperation with Human” text=”XAgent can work with you to solve tasks. It not only has the ability to follow your instructions in solving complex tasks on the fly but also can ask for your help when it faces difficulties.” text_color=”#0a0000″][vc_separator color=”sandy_brown” border_width=”3″][/vc_column][/vc_row][vc_row][vc_column][vc_headings style=”theme4″ borderclr=”#000000″ style2=”image” title=”XAgent Parts” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” lineheight=”3″ titlesize=”40″ titleclr=”#000000″ image_id=”2854″ caption_url=”” caption_urls=”” caption_urlss=”” caption_urldesc=””]XAgent is a modular system that consists of three components:
[/vc_headings][evc_icon_with_text type=”icon-left” icon_library=”fontawesome” title_tag=”” icon_fontawesome=”fas fa-check-circle” title=”Dispatcher” text=”dynamically creates and assigns tasks to different agents. It enables us to expand the system with new agents and enhance their capabilities.” text_color=”#000000″][evc_icon_with_text type=”icon-left” icon_library=”fontawesome” title_tag=”” icon_fontawesome=”fas fa-check-circle” title=”Planner” text=”Creates and adjusts plans for tasks. It breaks down a task into subtasks and sets milestones for them, enabling agents to tackle tasks incrementally.” text_color=”#000000″][evc_icon_with_text type=”icon-left” icon_library=”fontawesome” title_tag=”” icon_fontawesome=”fas fa-check-circle” title=”Actor” text=”Performs actions to accomplish goals and complete subtasks. The actor uses various tools to handle subtasks, and it can also cooperate with human to solve tasks.” text_color=”#000000″][vc_separator border_width=”2″][/vc_column][/vc_row][vc_row][vc_column][vc_headings style=”theme4″ borderclr=”#000000″ style2=”image” title=”ToolServer” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” lineheight=”3″ titlesize=”40″ titleclr=”#000000″ image_id=”5343″ caption_url=”” caption_urls=”” caption_urlss=”” caption_urldesc=””]
ToolServer is a docker container that hosts various tools for XAgent to use in solving tasks. It offers a secure environment for XAgent to run different applications. Some of the tools available on ToolServer are:
[/vc_headings][evc_icon_with_text type=”icon-left” icon_library=”fontawesome” title_tag=”” icon_fontawesome=”fas fa-file-alt” title=”File Editor” text=”A text editor that can create, read, and edit files.” text_color=”#0a0000″][evc_icon_with_text type=”icon-left” icon_library=”fontawesome” title_tag=”” icon_fontawesome=”fas fa-book-open” title=”Python Notebook” text=”An interactive Python notebook that can execute Python code for testing ideas, plotting graphs, etc.” text_color=”#0a0000″][evc_icon_with_text type=”icon-left” icon_library=”fontawesome” title_tag=”” icon_fontawesome=”fas fa-globe-africa” title=”Web Browser” text=”A web browser that can search and access webpages.” text_color=”#0a0000″][evc_icon_with_text type=”icon-left” icon_library=”fontawesome” title_tag=”” icon_fontawesome=”fas fa-terminal” title=”Shell” text=”A bash shell that can run any shell commands, including installing programs and hosting services.” text_color=”#0a0000″][evc_icon_with_text type=”icon-left” icon_library=”fontawesome” title_tag=”” icon_fontawesome=”fas fa-plug” title=”Rapid API” text=”A tool to access and use APIs from Rapid API, which provides a large collection of APIs for XAgent. For more details on the Rapid API collections, see ToolBench. You can also add new tools to ToolServer easily to improve XAgent’s capabilities.” text_color=”#0a0000″][vc_separator color=”sandy_brown” border_width=”3″][/vc_column][/vc_row][vc_row][vc_column][vc_headings style=”theme4″ borderclr=”#000000″ style2=”image” title=”Getting Started” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” lineheight=”3″ titlesize=”40″ titleclr=”#000000″ image_id=”5345″ caption_url=”” caption_urls=”” caption_urlss=”” caption_urldesc=””][/vc_headings][/vc_column][/vc_row][vc_row][vc_column][vc_column_text]
🛠️ Build and Setup ToolServer
ToolServer is the core component of XAgent. It is a docker container that hosts the tools and files that XAgent needs to perform its tasks. To use ToolServer, you need to install docker and docker-compose first. hen, you need to build the docker image for ToolServer and launch the docker container.
cd ToolServer
docker-compose up
Check here for detailed information about XAgent ToolServer.
🎮 Setup and Run XAgent
Once ToolServer is ready, you can run XAgent on your tasks.
- Install requirements (Python >= 3.10 required)
pip install -r requirements.txt
- Configure XAgent
Before running XAgent, you need to edit the config.yml file to set some parameters. The most important one is the OpenAI key, which allows XAgent to access the OpenAI API. We suggest using gpt-4-32k as the default model for XAgent, gpt-4 is also acceptable for most simple tasks. In any case, you should also provide at least one gpt-3.5-turbo-16k API key as a fallback model. We do not support or recommend using gpt-3.5-turbo as the model for XAgent due to its limited context length, so please avoid using it.
- Run XAgent
python run.py --task "put your task here" --model "gpt-4"
-
You can use the
--upload_filesargument to specify the initial files that you want to upload to XAgent.
The local workspace for your XAgent is located in -
local_workspace, where you can see all the files that XAgent creates during the execution. -
After the execution is finished, the complete
workspaceinToolServerNodewill be copied torunning_recordsfor your reference. -
In addition, in
running_recordsyou can find all the intermediate steps information, such as task statuses, LLM’s input-output pairs, used tools, etc. -
You can load from a record to reproduce a previous run, just by setting
record_dirin config(default toNull). The record is a system-level recording that matches the code-version of XAgent. All running-config、query、code execution statuses (including errors)、server behavior will be documented. -
We have removed all sensitive information (including API keys) from the record, so you can safely share it with others.
- Run XAgent with GUI
# we ran the web ui docker when build ToolServer network
# run nginx in docker
docker exec XAgent-Server systemctl start nginx
# also, you can start with python
# python3.10+ is required
cd XAgentServer
pip install -r requirements.txt
cd ..
python start_server.py
# you can run web page with following command as well:
cd ../XAgentWeb
npm install
npm run dev
To run XAgent-Server, you need to create and launch a docker image. The server will use the port 8090 to communicate with XAgent. You can access the web interface of XAgent http://localhost:5173.
[/vc_column_text][vc_message]For more details on how to use the GUI Demo, please check this link.[/vc_message][vc_separator][/vc_column][/vc_row][vc_row][vc_column][vc_headings style=”theme4″ borderclr=”#000000″ style2=”image” title=”Alternatives” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” lineheight=”1.5″ titlesize=”40″ titleclr=”#000000″ image_id=”2876″]Mix It Up? Discover More[/vc_headings][vc_basic_grid post_type=”post” max_items=”4″ style=”pagination” items_per_page=”4″ show_filter=”yes” element_width=”12″ gap=”3″ item=”masonryMedia_Default” initial_loading_animation=”none” grid_id=”vc_gid:1697922823796-f1a835804eaa4bc4ed027d7c4456c22a-5″ taxonomies=”343″ filter_source=”category”][/vc_column][/vc_row]



0 Comments