Create ref.txt
Browse files
ref.txt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
When using the @tool decorator from langchain_core.tools, the function must either:
|
| 2 |
+
- Have a docstring that describes what the tool does, or
|
| 3 |
+
- Provide an explicit description parameter to the decorator.
|
| 4 |
+
|
| 5 |
+
@tool
|
| 6 |
+
def RAG(state):
|
| 7 |
+
"""Use this tool to execute RAG. If the question is related to Japan or Sports, this tool retrieves the results."""
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
@tool(description="Use this tool to execute RAG. Retrieves results related to Japan or Sports.")
|
| 11 |
+
def RAG(state):
|