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
Copy file name to clipboardExpand all lines: docs/user-guides/langchain/langgraph-integration.md
+6-14Lines changed: 6 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,11 +156,11 @@ To enhance the functionality of your LangGraph agents, you can combine tool call
156
156
157
157
### Tool Definition
158
158
159
-
Define the following tools.
159
+
Define the following simplified example tools that demonstrate the integration pattern with NeMo Guardrails.
160
160
161
161
The first tool, `search_knowledge`, searches a predefined knowledge base for information matching the user's query. It performs matching against keywords like `"capital"`, `"weather"`, and `"python"`, returning relevant information or a generic response if no match is found.
162
162
163
-
The second tool, `calculate_math`, safely evaluates mathematical expressions by first validating that only allowed characters such as digits, operators, parentheses, and spaces are present. Then, it uses the `eval()` function from Python to calculate the result. It includes error handling to catch and report any calculation errors.
163
+
The second tool, `multiply`, performs multiplication of two integers.
0 commit comments