Kickstart Multi-Agent Collaboration with OxyGent: 20‑Line Setup Guide
This guide introduces the open‑source OxyGent multi‑agent framework, provides step‑by‑step installation, a 20‑line hello‑world example, tool integration via SSE, MCP and FunctionHub, deployment features like data persistence and distributed setup, and outlines advanced use cases such as multimodal agents and plan‑and‑solve paradigms.
OxyGent Multi-Agent Collaboration Framework
Open‑source repository: GitHub . Official site: oxygent.jd.com . PyPI package: oxygent .
Quick Start in 20 Lines of Code
Installation
Python environment (3.10+)
conda create -n oxy_env python==3.10 conda activate oxy_envOxyGent package pip install oxygent Node.js (if using MCP tools) – download from nodejs.org
Hello World
Create a .env file and set the large‑model environment variables:
DEFAULT_LLM_API_KEY = "<large‑model‑key>" DEFAULT_LLM_BASE_URL = "<large‑model‑url>" DEFAULT_LLM_MODEL_NAME = "<large‑model‑name>"Run the demo (see image).
RAG
MoA
Enable Agents to Call Tools Autonomously
SSE MCP Tool
FunctionHub Tool
Using any registration method (FunctionHub, LocalMCP, SSEMCP) yields the same runtime effect.
External MCP Tool
Auto‑recall Top‑K Tools
Enter the node visualization page:
Block‑Based Multi‑Agent Construction
Multi‑Agent
Hierarchical Agents
Workflow Integration
Reflexion Mechanism
Why?
Fast Agent Deployment
Data Persistence
The framework provides a complete data storage mechanism for later SFT or RL training.
Limit Node Concurrency
Multi‑Environment Deployment
Distributed
Advanced Usage
Multimodal
Weight‑based Memory filtering
Retrieve more tools
Custom LLM output parser
Custom SSE interface
Result post‑processing or formatting
Agents calling multiple tools simultaneously
Restart tasks from intermediate nodes
Plan‑and‑Solve paradigm
…
JD Cloud Developers
JD Cloud Developers (Developer of JD Technology) is a JD Technology Group platform offering technical sharing and communication for AI, cloud computing, IoT and related developers. It publishes JD product technical information, industry content, and tech event news. Embrace technology and partner with developers to envision the future.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
