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.
12345678910111213141516171819202122232425262728#!/usr/bin/env python3"""Script to create the vault tool in Letta."""from letta_client import Lettaimport os
# Initialize clientclient = Letta(api_key=os.environ["LETTA_API_KEY"])
# Read the tool source codewith open("vault_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(' vault(command="attach", path="/tasks", content="TODO: Review code")')print(' vault(command="view", path="/tasks")')print(' vault(command="list")')