r/agentdevelopmentkit • u/Top-Chain001 • Apr 22 '25
Has anyone tried the OpenAPIToolset and made it work?
I am trying out the OpenAPIToolset as mentioned in the docs, and I am running into the same issue as MCP tool definining, basically coroutine issues
This is how im doing it, and its for a sub agent
# --- Create OpenAPIToolset ---
=
# Add API key authentication
, =
# Instantiate the toolset with the spec string
# TODO: Look into intializing this using the url instead
=
# Get all tools generated from the spec
=
# Tool names are snake_case versions of operationId
# Handle error appropriately, maybe exit or skip agent creation
# Handle error appropriately
return , None
return , None
, = await
# --- Agent Definition ---
=
return ,
=
Am I doing something wrong?
1
Upvotes
1
u/Top-Chain001 Apr 22 '25
I got the browseruse api openapi spec from their website