For AI agents: docs.octen.ai/integrations/pydantic-ai.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 OpenAI API keys:Add an Extract Tool
Let the agent read full pages from the URLs it finds, with Extract. Replace everything fromagent = 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 fromagent = 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:
Use Auto Search
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-inocten_search tool. Your Octen API key is the only key you need:
Last modified on November 24, 2026