github_issue / note.py
oluinioluwa814's picture
Create note.py
9ee156c verified
from langchain_core.tools import tool
def note_tool(note):
"""
save a note to a local file
Args:
note: the text note to save
"""
with open("note.txt", "a") as f:
f.write(note + "\n")