oluinioluwa814 commited on
Commit
9ee156c
·
verified ·
1 Parent(s): b92d917

Create note.py

Browse files
Files changed (1) hide show
  1. note.py +11 -0
note.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from langchain_core.tools import tool
2
+
3
+ def note_tool(note):
4
+ """
5
+ save a note to a local file
6
+
7
+ Args:
8
+ note: the text note to save
9
+ """
10
+ with open("note.txt", "a") as f:
11
+ f.write(note + "\n")