Easier for AI to get right
Generated code needs a shape that humans and tools can inspect. Zust keeps blocks, functions, structs, impls, generics, and modules while making mutation and dynamic values straightforward.
pub fn agent_task(ctx) {
let plan = ctx.goal;
let tools = root::get("local/tools");
for step in plan.steps {
let result = tools[step.tool](step.input);
ctx.memory.push(result);
}
ctx.memory
}
