You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Doc] Update doc for Langchain::Tool::Calculator (#979)
Follow-up to #197.
Since #197,
`Langchain::Tool::Calculator` no longer falls back to `google_search_results`.
Co-authored-by: Andrei Bondarev <[email protected]>
Copy file name to clipboardExpand all lines: lib/langchain/tool/calculator.rb
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,10 @@
2
2
3
3
moduleLangchain::Tool
4
4
#
5
-
# A calculator tool that falls back to the Google calculator widget
5
+
# A calculator tool
6
6
#
7
7
# Gem requirements:
8
8
# gem "eqn", "~> 1.6.5"
9
-
# gem "google_search_results", "~> 2.0.0"
10
9
#
11
10
# Usage:
12
11
# calculator = Langchain::Tool::Calculator.new
@@ -15,15 +14,15 @@ class Calculator
15
14
extendLangchain::ToolDefinition
16
15
includeLangchain::DependencyHelper
17
16
18
-
define_function:execute,description: "Evaluates a pure math expression or if equation contains non-math characters (e.g.: \"12F in Celsius\") then it uses the google search calculator to evaluate the expression"do
17
+
define_function:execute,description: "Evaluates a pure math expression"do
# Evaluates a pure math expression or if equation contains non-math characters (e.g.: "12F in Celsius") then it uses the google search calculator to evaluate the expression
0 commit comments