馃憪 Instantiate the LLM
Now let's instantiate the LLM that will serve as the "brain" of our 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 7: Instantiate the LLM section in the notebook to initialize the LLM for our agent and give it access to tools.
The answers for code blocks in this section are as follows:
CODE_BLOCK_11
Answer
ChatBedrock(
model_id="anthropic.claude-3-sonnet-20240229-v1:0",
model_kwargs=dict(temperature=0)
)
CODE_BLOCK_12
Answer
llm.bind_tools(tools)
CODE_BLOCK_13
Answer
prompt | bind_tools