What is CodeAct architecture?
mainCodeAct is an architecture that implements an alternative to standard JSON function-calling. Instead of relying solely on structured tool calls, it allows the model to use a Turing-complete programming language (like Python) to combine and transform tool outputs. This enables solving complex tasks in fewer steps by leveraging the full power of programming logic.
Key features include:
- Persistent State: Message history and Python variables are saved between turns, allowing for advanced follow-up questions.
- Flexible Tooling: Supports custom tools, LangChain tools, and MCP tools.
- Model Agnostic: Works with any model supported by LangChain (tested with Claude 3.7).
- Customizable Sandbox: Allows you to provide your own code execution environment via a simple functional API.