Code as Action
Code as Action is a powerful concept in BRX that allows you to use BRKs to generate and execute code, enabling your AI applications to perform real-world actions and integrate with external systems.Understanding Code as Action
In traditional AI systems, the output is typically text that a human must then interpret and act upon. With Code as Action, BRX can:- Generate executable code based on natural language inputs
- Execute that code to perform actions
- Process the results and provide meaningful feedback
How Code as Action Works
The Code as Action pattern typically involves the following steps:- A BRK receives a natural language request
- The BRK generates code that accomplishes the requested task
- The code is executed in a controlled environment
- The results are captured and processed
- A response is generated based on the execution results