Skip to main content
SofyaTools enable an Agent to search the web, extract page content, and run deep research using the Sofya API. Search returns extracted page content instead of snippets, extract fetches URLs as clean markdown (including PDF and DOCX), and research returns a cited multi-source report.

Prerequisites

The example requires Agno, the openai and requests packages, an OpenAI API key, and an API key from Sofya.

Example

The following agent will search the web with Sofya and print the response.
cookbook/91_tools/sofya_tools.py
Search is enabled by default. To also enable extraction and research, pass all=True, or turn on the individual tools with enable_extract and enable_research.

Toolkit Params

Toolkit Functions

Developer Resources