Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/just-cameron/note. External storage tool for Letta agents to manage persistent notes
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829#!/usr/bin/env python3"""Script to create the note management tool in Letta."""from letta_client import Lettaimport os
# Initialize client# client = Letta(api_key=os.environ["CAMERON_API_KEY"])client = Letta(api_key=os.environ["LETTA_API_KEY"])
# Read the tool source codewith open("note_tool.py", "r") as f: source_code = f.read()
# Create or update the tooltool = client.tools.upsert( source_code=source_code,)
print(f"✓ Created tool: {tool.name}")print(f" ID: {tool.id}")print(f" Description: {tool.description}")print("\nTool is ready to use!")print("\nExample usage:")print(' note(command="attach", path="/self/tasks", content="TODO: Review code")')print(' note(command="view", path="/self/tasks")')print(' note(command="list", query="/self/")')