From 534eccfddd7ab91c434db94580ece1442205f1ae Mon Sep 17 00:00:00 2001 From: Shashi-Stackone Date: Mon, 11 May 2026 11:57:33 +0100 Subject: [PATCH] Update SDK README for ADK Integration --- README.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/README.md b/README.md index 078ab63..e834302 100644 --- a/README.md +++ b/README.md @@ -196,6 +196,49 @@ for tool_call in response.tool_calls: +
+Google ADK Integration + +StackOne is a [first-party integration in Google's Agent Development Kit](https://adk.dev/integrations/stackone/), shipped as the `stackone-adk` plugin and compatible with [ADK 2.0](https://adk.dev/2.0/). The plugin implements ADK's `BasePlugin` interface and provides tool discovery, account auto-discovery, and lifecycle hooks. + +```bash +uv add stackone-adk +``` + +```python +import asyncio + +from google.adk.agents import Agent +from google.adk.apps import App +from google.adk.runners import InMemoryRunner +from stackone_adk import StackOnePlugin + + +async def main(): + plugin = StackOnePlugin() + # Or scope to a specific account: + # plugin = StackOnePlugin(account_id="YOUR_ACCOUNT_ID") + + agent = Agent( + model="gemini-flash-latest", + name="stackone_agent", + instruction="You are a helpful assistant powered by StackOne.", + tools=plugin.get_tools(), + ) + + app = App(name="stackone_app", root_agent=agent, plugins=[plugin]) + + async with InMemoryRunner(app=app) as runner: + await runner.run_debug("List the first 3 workers.", quiet=True) + + +asyncio.run(main()) +``` + +For configuration details and the `search_and_execute` mode, see the [stackone-adk repository](https://github.com/StackOneHQ/stackone-adk-plugin). + +
+
Pydantic AI Integration