AvaTaR: Optimizing LLM Agents for Tool-Assisted Knowledge Retrieval | Synapse