Loading topic
search_docs tool from the previous chapter. Here you will build the loop that lets a model use that tool.2 min readsearch_docs tool schema, and basic Python. It covers how the model decides whether to search, and how to tune and check that decision.2 min readmessages list, tool results appended as role: "tool" messages, and the MAX_STEPS budget.2 min readsearch_docs, receives passages with ids, and decides when to answer. Here you make the final answer trustworthy.2 min read