Skip to content

Commit 621226a

Browse files
authored
replace include with extend in instructions on how to create custom tools (#857)
1 parent f980820 commit 621226a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ Note that streaming is not currently supported for all LLMs.
558558
The Langchain::Assistant can be easily extended with custom tools by creating classes that `extend Langchain::ToolDefinition` module and implement required methods.
559559
```ruby
560560
class MovieInfoTool
561-
include Langchain::ToolDefinition
561+
extend Langchain::ToolDefinition
562562

563563
define_function :search_movie, description: "MovieInfoTool: Search for a movie by title" do
564564
property :query, type: "string", description: "The movie title to search for", required: true

0 commit comments

Comments
 (0)