chore: Change create_tool endpoint on v1 routes to error instead of upsert (#2102)

This commit is contained in:
Matthew Zhou
2024-11-25 10:46:15 -08:00
committed by GitHub
parent f237717ce4
commit 8711e1dc00
17 changed files with 271 additions and 259 deletions

View File

@@ -30,7 +30,7 @@ def roll_d20() -> str:
# create a tool from the function
tool = client.create_tool(roll_d20)
tool = client.create_or_update_tool(roll_d20)
print(f"Created tool with name {tool.name}")
# create a new agent