To be able tot follow the steps below, make sure you have a running Memgraph instance on your local host. For more details on how to run Memgraph, take a look at Memgraph docsIf you want to get automated tracing from runs of individual tools, you can also set your LangSmith API key by uncommenting below:
Copy
Ask AI
# os.environ["LANGSMITH_API_KEY"] = getpass.getpass("Enter your LangSmith API key: ")# os.environ["LANGSMITH_TRACING"] = "true"
Tools can be individually called by passing an arguments, for QueryMemgraphTool it would be:
Copy
Ask AI
from langchain_memgraph.tools import QueryMemgraphTool# Rest of the code omitted for brevitytool.invoke({QueryMemgraphTool({"query": "MATCH (n) RETURN n LIMIT 5"})})