NoteTakingToolkit
.md
files in a dedicated working
directory and are tracked in a registry.
init
- working_directory (str, optional): The directory path where notes will be stored. If not provided, it will be determined by the
CAMEL_WORKDIR
environment variable (if set). If the environment variable is not set, it defaults tocamel_working_dir
. - timeout (Optional[float]): The timeout for the toolkit.
append_note
- note_name (str): The name of the note (without the .md extension).
- content (str): The content to append to the note.
_load_registry
_save_registry
_register_note
create_note
note_name
that does not already exist.
If you want to add content to an existing note, use the append_note
function instead. If you want to overwrite an existing note, set
overwrite=True
.
Parameters:
- note_name (str): The name for your new note (without the .md extension). This name must be unique unless overwrite is True.
- content (str): The initial content to write in the note.
- overwrite (bool): Whether to overwrite an existing note. Defaults to False.
list_note
read_note
- Read a specific note: Provide the
note_name
(without the .md extension) to get the content of that single note. - Read all notes: Use
note_name="all_notes"
(default), and this function will return the content of all your notes, concatenated together.
- note_name (str, optional): The name of the note you want to read. Defaults to “all_notes” which reads all notes.