Repository navigation
Add StackOne plugin for Google ADK - #1
Conversation
| return [a["id"] for a in accounts if a.get("id")] | ||
|
|
||
|
|
||
| def _build_utility_tools(tools: Any) -> list[StackOneTool]: |
There was a problem hiding this comment.
why do we have to rebuild it. can we not import the StackOne Python SDK directly?
There was a problem hiding this comment.
We should add the keyword/semantic search later.. Its due to SDK needs to return the parameter scheme and needs work there .. I have removed the keyword search for now ..
This reverts commit 2d5ebe4.
| } | ||
|
|
||
|
|
||
| def _convert_property_to_schema(prop: dict[str, Any]) -> types.Schema: |
There was a problem hiding this comment.
check if this can be simplified or use some tooling from ADK to do this as I'm assuming there are popular converters
There was a problem hiding this comment.
Yes, there are couple of handy methods in the ADK that can simply this a lot. Using this directly has some limitation as SDK still needs parameter schemas but remove this manual conversation now. Good spot. Clade Code told me that conversion has too be manual as it couldn't find conversation tools in ADK!
There was a problem hiding this comment.
@willleeney Appreciate your opinion on this PR. I have removed the manual parsing and used some of the methods from ADK but still needs little bit of parsing. It would be great our SDK have
type: str = Field(description="JSON Schema type")
properties: JsonDict = Field(description="JSON Schema properties")
required: list[str] = Field(default_factory=list, description="Required property names")
This will reduce any further parsing from any providers ..
… tool parameter enhament in SDK
glebedel
left a comment
There was a problem hiding this comment.
LGTM - make sure every example works too once merged
|
Cool. Removed HRIS example to keep the plugin simple. Merging this now. |
Summary
Initial implementation of
stackone-adk, a Google ADK plugin that connects agents to 200+ SaaS providers via StackOne's unified API gateway. This plugin dynamically discovers available tools from StackOne's API and exposes them as native Google ADK tools.What's included
StackOnePluginclass implementing Google ADK'sBasePlugininterface withlifecycle hooks and tool management
StackOneToolclass that bridges StackOne tool definitions to ADK'sBaseToolinterfaceproviders), action pattern with glob support(
actions), and account ID (account_ids)Dependencies
Using latest from both
google-adk>=1.25.0stackone-ai[mcp]>=2.3.1Next steps
stackone-adkpackage to PyPIfollowing the contribution guide
Running locally
Set your API keys
Run an example
Make sure you have Calendly connector or update agent with you connectors
Test plan
pip install -e ".[dev]"installs cleanly