Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools still persistent in database after removed from ADE #2237

Open
2 tasks done
lemorage opened this issue Dec 12, 2024 · 3 comments
Open
2 tasks done

Tools still persistent in database after removed from ADE #2237

lemorage opened this issue Dec 12, 2024 · 3 comments
Assignees

Comments

@lemorage
Copy link

Describe the bug
I created an agent and attached my own tool to it, called lookup_room_availability_by_date. I played around with the agent in the ADE for a while, and I removed the tool from the ADE (shown in screenshot). After some modifications, I re-created the tool with the same name, and attached it to my agent again. But got the following errors:

UniqueConstraintViolationError: A unique constraint was violated for Tool. Check your
input for duplicates: (sqlite3.IntegrityError) UNIQUE constraint failed: tools.name,
tools.organization_id
[SQL: INSERT INTO tools (name, return_char_limit, description, tags, source_type,
source_code, json_schema, module, id, _created_by_id, _last_updated_by_id,
organization_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING created_at,
updated_at, is_deleted]
[parameters: ('lookup_room_availability_by_date', 6000, 'Look up the stock of hotel
rooms for a specific date range.', '[]', 'python', 'def
lookup_room_availability_by_date(check_in: str, check_out: str) -> list[dict]:

After some debugging, I realized the tool was still persistent in my database, by list_tools().

for tool in client.list_tools():
    print(tool.name)
    
# This prints out the following:
    # conversation_search_date
    # get_monthly_revenue_statistics
    # core_memory_replace
    # send_message
    # archival_memory_insert
    # archival_memory_search
    # lookup_room_availability_by_date   <-- this tool is still there

Please describe your setup

  • How did you install letta?
    • pip install letta
  • Describe your setup
    • MacOS
    • Terminal

Screenshots
Only-Core-Tools

Letta Config

[defaults]
preset = memgpt_chat
persona = sam_pov
human = basic

[archival_storage]
type = chroma
path = /Users/clannad/.letta/chroma

[recall_storage]
type = sqlite
path = /Users/clannad/.letta

[metadata_storage]
type = sqlite
path = /Users/clannad/.letta

[version]
letta_version = 0.6.2
@4shub
Copy link
Collaborator

4shub commented Dec 12, 2024

Just to confirm; this tool doesn't show up in the "All Tools" section

@lemorage
Copy link
Author

Yes, after removing it from ADE, it's gone

@cpacker
Copy link
Collaborator

cpacker commented Dec 12, 2024

Thanks @lemorage !! Looking into this 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants