Skip to main content

๐Ÿ‘ Instantiate the LLM

Now let's instantiate the LLM that will serve as the "brain" of the agent, and give it access to the tools we defined previously.

Fill in any <CODE_BLOCK_N> placeholders and run the cells under the Step 6: Instantiate the LLM section in the notebook to initialize the LLM for the agent and give it access to tools.

The answers for code blocks in this section are as follows:

CODE_BLOCK_12

Answer
llm.bind_tools(tools)

CODE_BLOCK_13

Answer
prompt | bind_tools