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

Stale example in Agentic RAG with Letta.ipynb #2353

Open
2 tasks done
ianb opened this issue Jan 14, 2025 · 1 comment
Open
2 tasks done

Stale example in Agentic RAG with Letta.ipynb #2353

ianb opened this issue Jan 14, 2025 · 1 comment

Comments

@ianb
Copy link

ianb commented Jan 14, 2025

Describe the bug
A clear and concise description of what the bug is.

Please describe your setup

  • How did you install letta?
    • Cloned main, pip install -e .
  • Describe your setup
    • Mac

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

image

Specifically this example code gives an error:

no_tool_agent = client.create_agent(
    tools=['send_message'], 
    include_base_tools=False
)
no_tool_agent.tools

TypeError: LocalClient.create_agent() got an unexpected keyword argument 'tools'

Also later in this code:

from letta.schemas.memory import ChatMemory

# delete agent if exists 
if client.get_agent_id("birthday_agent"): 
    client.delete_agent(client.get_agent_id("birthday_agent"))

agent_state = client.create_agent(
    name="birthday_agent", 
    tools=[birthday_tool.name], 
    memory=ChatMemory(
        human="My name is Sarah", 
        persona="You are a agent with access to a birthday_db " \
        + "that you use to lookup information about users' birthdays."
    )
)
@sarahwooders
Copy link
Collaborator

Yes unfortunately we made major API changes recently -- for this example you will need to instead pass in tool_ids and provide the birthday_tool.id.

We are moving our Python client to a new auto-generated SDK, and with that will be releasing updated examples (hopefully around next week). Apologies for all the changes - once the new client is released, there will be much fewer API changes.

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

2 participants