You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 hotelrooms for a specific date range.', '[]', 'python', 'deflookup_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().
fortoolinclient.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
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:After some debugging, I realized the tool was still persistent in my database, by
list_tools()
.Please describe your setup
pip install letta
Screenshots
Letta Config
The text was updated successfully, but these errors were encountered: