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
TypeError: LocalClient.create_agent() got an unexpected keyword argument 'tools'
Also later in this code:
fromletta.schemas.memoryimportChatMemory# delete agent if exists ifclient.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."
)
)
The text was updated successfully, but these errors were encountered:
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.
Describe the bug
A clear and concise description of what the bug is.
Please describe your setup
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Specifically this example code gives an error:
TypeError: LocalClient.create_agent() got an unexpected keyword argument 'tools'
Also later in this code:
The text was updated successfully, but these errors were encountered: