From 77136f2dab31d45ada9e60c1901745fbbea3c764 Mon Sep 17 00:00:00 2001 From: Akihiko Kuroda Date: Thu, 15 Jan 2026 13:10:44 -0500 Subject: [PATCH] fix: tool calling code sample in tutorial Signed-off-by: Akihiko Kuroda --- docs/tutorial.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index cdf3ee26..a01e5784 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -1319,15 +1319,17 @@ For examples on adding tools to the template representation of a component, see Here's an example of adding a tool through model options. This can be useful when you want to add a tool like web search that should almost always be available: ```python +import mellea from mellea.backends import ModelOption def web_search(query: str) -> str: ... +m = mellea.start_session() output = m.instruct( "Who is the 1st President of the United States?", model_options={ - ModelOptions.TOOLS: [web_search], + ModelOption.TOOLS: [web_search], }, tool_calls = True, )