AgentOS Extensions API - v1.0.3
    Preparing search index...

    Service for managing multiple search providers with fallback support

    SearchProviderService

    const service = new SearchProviderService({
    serperApiKey: 'your-key',
    rateLimit: { maxRequests: 10, windowMs: 60000 }
    });

    const results = await service.search('query');
    Index

    Constructors

    Methods

    • Performs a search across available providers with automatic fallback

      Parameters

      • query: string

        The search query

      • options: { category?: string; maxResults?: number; provider?: string } = {}

        Search options

        • Optionalcategory?: string
        • OptionalmaxResults?: number

          Maximum results to return

        • Optionalprovider?: string

          Specific provider to use

      Returns Promise<ProviderResponse>

      Search results with metadata

      If all providers fail and no fallback is available

    • Gets recommended search providers with signup information

      Returns { description: string; freeQuota: string; name: string; signupUrl: string }[]

      Array of provider recommendations