Examples

Choose the SDK you already use. Each page gives you the install command, required keys, a complete first run, a prompt to try, and a customization example.

Start here

SDK Example
OpenAI Agents SDK OpenAI Agents SDK
Pydantic AI Pydantic AI
LangChain LangChain
LangGraph LangGraph
CrewAI CrewAI
LlamaIndex LlamaIndex
Claude Agent SDK Claude Agent SDK
Microsoft Agent Framework Microsoft Agent Framework
AutoGen AutoGen
Haystack Haystack
Agno Agno
smolagents smolagents
Google ADK Google ADK
Semantic Kernel Semantic Kernel

Automatic SDK detection

Each SDK page shows both installation choices: the base package when your SDK is already installed, or a matching extra when you want both dependencies at once. The examples then use automatic detection:

from serpapi_search_tools import web_search

tool = web_search()

If multiple supported SDKs are installed in one environment, choose the target explicitly to avoid auto-detection confusion:

from serpapi_search_tools import web_search

tool = web_search(provider="openai-agents")

If your SDK is not listed, request a normal Python callable and follow Use another agent SDK for the next steps.