code-act
Active·★ 1.7k·Updated 2024-05-23
★ Trending
Official Repo for ICML 2024 paper "Executable Code Actions Elicit Better LLM Agents" by Xingyao Wang, Yangyi Chen, Lifan Yuan, Yizhe Zhang, Yunzhu Li, Hao Peng, Heng Ji.
CodeAct unifies LLM agents' actions into an executable code space, enabling dynamic revision and new actions based on execution results. This approach significantly outperforms traditional text and JSON action methods, improving LLM agent success rates on complex tasks.
#LLM Agents#Code Execution#Instruction Tuning#Python#Large Language Models#Coding
01
Features
01Unified Action Space via Executable Code: Consolidates LLM agents' actions into a unified, executable code space.
02Dynamic Action Revision: Allows LLM agents to dynamically revise prior actions or emit new actions based on real-time observations.
03Integrated Python Interpreter: Seamlessly integrates with a Python interpreter for code execution.
04Superior Performance: Outperforms widely used alternatives like Text and JSON in LLM agent success rates (up to 20% higher).
05Instruction-Tuned Agents (CodeActAgent): Provides pre-trained CodeActAgent models (Mistral, Llama-2) that excel in out-of-domain agent tasks.
02
Compatibility
Ollama
Supported
Verified via docs
llama.cpp
Supported
Verified via docs
Kubernetes
Supported
Verified via docs
Docker
Native
Verified via docs
vLLM
Supported
Verified via docs
03
Quick start
1
$ pip install -r requirements.txt
04
Use cases
↳Developing Advanced LLM Agents: For researchers and developers aiming to build more capable and robust LLM agents that can interact dynamically with environments.
↳Automated Code Execution and Problem Solving: For scenarios requiring LLMs to execute code, debug, and iterate on solutions based on execution feedback.
↳Complex Task Automation: For automating multi-turn, complex tasks that benefit from dynamic action revision and tool use.
05
Alternatives
ragflow★ 81.5k
RAGFlow is a leading open-source Retrieval-Augmented Generation (RAG) engine that fuses cutting-edge RAG with Agent capabilities to create a superior context layer for LLMs
n8n★ 190.2k
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
Context7★ 56.4k
MCP Server that provides up-to-date code documentation for LLMs and AI code editors.
GitHub MCP Server★ 30.3k
GitHub's official MCP Server. Allows AI agents to interact directly with your GitHub repositories (read files, search code, issues).
Microsoft AutoGen★ 58.5k
A framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.
CrewAI★ 52.4k
Framework for orchestrating role-playing, autonomous AI agents. By working together, your Crew can tackle complex tasks.
Related searches
Comments
Log in to leave a comment
No comments yet. Be the first!