From 56cde1c3bfb05a517d04690fc1d3f67007c0ee4c Mon Sep 17 00:00:00 2001 From: Muhammed Soliu <113608796+sorleuCode@users.noreply.github.com> Date: Wed, 1 Oct 2025 06:48:26 +0100 Subject: [PATCH] Update tutorial.mdx I added the defined and impoted tools to the agent. This is to make possible, the interactivity of the LLM to the outside world --- units/en/unit1/tutorial.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/units/en/unit1/tutorial.mdx b/units/en/unit1/tutorial.mdx index fa2dcda7a..e21c4de1c 100644 --- a/units/en/unit1/tutorial.mdx +++ b/units/en/unit1/tutorial.mdx @@ -126,7 +126,7 @@ with open("prompts.yaml", 'r') as stream: # We're creating our CodeAgent agent = CodeAgent( model=model, - tools=[final_answer], # add your tools here (don't remove final_answer) + tools=[final_answer, get_current_time_in_timezone], # add your tools here (don't remove final_answer) max_steps=6, verbosity_level=1, grammar=None, @@ -195,6 +195,7 @@ def get_current_time_in_timezone(timezone: str) -> str: final_answer = FinalAnswerTool() +DuckDuckGoSearch_tool = DuckDuckGoSearchTool() model = InferenceClientModel( max_tokens=2096, temperature=0.5, @@ -212,7 +213,7 @@ with open("prompts.yaml", 'r') as stream: agent = CodeAgent( model=model, - tools=[final_answer], # add your tools here (don't remove final_answer) + tools=[final_answer, image_generation_tool, DuckDuckGoSearch_tool, get_current_time_in_timezone], # add your tools here (don't remove final_answer) max_steps=6, verbosity_level=1, grammar=None, @@ -224,7 +225,7 @@ agent = CodeAgent( GradioUI(agent).launch() -``` +```__ Your **Goal** is to get familiar with the Space and the Agent.