FunctionTool for Gemini agents via Google's Agent Development Kit. Ships 4 meta-tools: find, route, call, and about.
npm install agent402-google-adk
import { agent402Tools } from "agent402-google-adk";
import { LlmAgent } from "@google/adk";
const tools = await agent402Tools();
const agent = new LlmAgent({
model: "gemini-2.0-flash",
name: "my-agent",
tools,
});
// The agent can now discover and call any Agent402 tool
// via the find, route, call, and about meta-tools.
| Option | Type | Description |
|---|---|---|
baseUrl |
string |
Point to a self-hosted Agent402 instance. |
agentKey |
string |
Private key for wallet-only (paid) tools. |
// Point to a self-hosted Agent402 instance.
agent402Tools({ baseUrl: "https://my-agent402.example.com" })
// Private key for wallet-only (paid) tools.
agent402Tools({ agentKey: process.env.AGENT_KEY })