Sequencing the tools an agent calls for multi-step reasoning
Multi-stage reasoning applications (agents) rely on a defined toolset—retrievers, Unity Catalog functions, APIs—that an LLM can select and sequence to gather knowledge or take actions before producing a final answer. Designing these systems means writing clear tool names/descriptions/parameters so the model can correctly choose and order calls, and structuring the chain so each tool's output feeds the next reasoning step.
1 · Learn the must-know
- Each tool should have a precise name, description, and input/output schema, since the LLM chooses tools based solely on this metadata, not the underlying code.
- Common tool types in Databricks solutions include vector search retrievers for knowledge lookup, Unity Catalog functions (SQL or Python) for structured data/actions, and external API wrappers for real-time or transactional tasks.
- Ordering matters: retrieval or lookup tools are typically invoked before generation or action tools so the model has grounded context before reasoning or writing a response.
- Agent frameworks (e.g., LangChain agents, Mosaic AI Agent Framework) let the LLM dynamically decide tool order at runtime via function/tool calling rather than a fixed hardcoded sequence, based on the user query and intermediate results.
- Poorly written or overlapping tool descriptions cause the agent to select the wrong tool or loop indefinitely, so tools should be scoped narrowly and non-redundant.
- For multi-hop tasks, intermediate tool outputs should be passed back into the model's context so later tool calls or the final answer can condition on earlier results.
2 · Check your understanding
A Generative AI Engineer is building a financial analyst agent that answers questions like 'What was the year-over-year revenue growth for Q2?' The agent has a Vector Search retriever tool over 10-K filings and a Python calculate_growth_rate tool that takes two numeric values. In early testing, the agent sometimes invokes calculate_growth_rate with placeholder numbers before the retriever has returned the actual Q2 and prior-year revenue figures.
Which change would correct the tool ordering for this multi-hop question?
What you have tried across Databricks GenAI Engineer's objectives, not a readiness score.
Design Applications10.71% of the exam*0 of 6 tried
Data Preparation14.29% of the exam*0 of 8 tried
Application Development23.21% of the exam*0 of 13 tried
Assembling and Deploying Applications26.79% of the exam*0 of 15 tried
Governance7.14% of the exam*0 of 4 tried
Evaluation and Monitoring17.86% of the exam*0 of 10 tried
* Our estimate. Databricks publishes no section weights.
3 · Keep going
Ready for more? Take a weighted mock or try free practice questions.