Skip to main content

For AI agents: docs.octen.ai/integrations/google-adk.md

Each tool wraps a Python SDK method.

Get API Key

Create a key from the API Platform.

Python SDK

The octen package.

Install

Requires Python 3.11+.

Quick Start

Set your Octen and Gemini API keys:
Run an agent that answers with Octen Web Search:

Add an Extract Tool

Let the agent read full pages from the URLs it finds, with Extract. Replace everything from agent = Agent( to the end of the Quick Start program with this code:

Add More Search Tools

Let the agent also use Web Search Premier, Broad Search, News Search, Business Search, Pulse Search, Place Search, Image Search, and Design Search. Replace everything from agent = Agent( to the end of the program from Add an Extract Tool with this code. Each function returns the response data, with the same fields as the API reference:
Skip the tool loop and let Octen run the searches server-side with Auto Search. Point the model at the Octen base URL and enable the built-in octen_search tool. Your Octen API key is the only key you need. Install LiteLLM, which the LiteLlm model class needs:
Run the agent:
The model name starts with openai/openai/ because LiteLLM removes the first openai/ before sending the request.

Last modified on November 24, 2026