A computer-implemented method involves receiving input with information about treatments for targets. A large
language model (LLM) agent identifies tools for configuring treatments, selecting targets, and allocating treatments. The LLM agent generates and provides
application programming interface (API) inputs to the tools. The LLM agent receives results from the tools, determines if the results satisfy a condition, and outputs an indication based on the results. The method includes generating computer code for treatments, applying treatments, and performing
statistical analysis. The
system iteratively adjusts treatments, targets, or allocations until conditions are met. The
system identifies ambiguities and obtains clarifications, training the LLM agent accordingly. The
processing system includes memory and processors to execute instructions, receive input, identify tools, generate API inputs, provide inputs to tools, receive results, determine conditions, and output indications.