Skip to content

Commit ba5a011

Browse files
authored
Update tools.md (#212)
Instructions to check if your model supports functions is incorrect, it is missing a `?` on the method name.
1 parent 87a86f7 commit ba5a011

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guides/tools.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ puts response.content
130130
```
131131

132132
{: .warning }
133-
Ensure the model you select supports function calling/tools. Check model capabilities using `RubyLLM.models.find('your-model-id').supports_functions`. Attempting to use `with_tool` on an unsupported model will raise `RubyLLM::UnsupportedFunctionsError`.
133+
Ensure the model you select supports function calling/tools. Check model capabilities using `RubyLLM.models.find('your-model-id').supports_functions?`. Attempting to use `with_tool` on an unsupported model will raise `RubyLLM::UnsupportedFunctionsError`.
134134

135135
## The Tool Execution Flow
136136

@@ -210,4 +210,4 @@ Treat any arguments passed to your `execute` method as potentially untrusted use
210210
* [Chatting with AI Models]({% link guides/chat.md %})
211211
* [Streaming Responses]({% link guides/streaming.md %}) (See how tools interact with streaming)
212212
* [Rails Integration]({% link guides/rails.md %}) (Persisting tool calls and results)
213-
* [Error Handling]({% link guides/error-handling.md %})
213+
* [Error Handling]({% link guides/error-handling.md %})

0 commit comments

Comments
 (0)