How to retrieve multiple toolkits at once? #443
-
Hey team, is there any special steps needed to make use of multiple toolkits at once ie retrieving their tools? I’m away from desk right now so I can’t provide sample code but i was following the docs guide on using arcade with OpenAI Agent SDK. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Right now you can retrieve multiple tools like this (This will get all available tools in your account). Be mindful that the default maximum is 250 so you may need to handle pagination to get the full list. We're working on making the filtering more versatile in the future, for now you can specify the toolkit, which should fall well within the limit of the reponse. from arcadepy import Arcade
from dotenv import load_dotenv
load_dotenv()
client = Arcade()
tools = client.tools.list()
c = 0
for tool in tools:
c += 1
print(f"{tool.qualified_name}\n\t{tool.description}")
print("---")
print(f"retrieved {c} tools") |
Beta Was this translation helpful? Give feedback.
Right now you can retrieve multiple tools like this (This will get all available tools in your account). Be mindful that the default maximum is 250 so you may need to handle pagination to get the full list. We're working on making the filtering more versatile in the future, for now you can specify the toolkit, which should fall well within the limit of the reponse.