AST (Abstract Syntax Tree) is essentially a search algorithm to better help the agent do it's job.