Member Junction
    Preparing search index...

    Action that performs AI-powered web search using Perplexity's Search API Returns comprehensive search results with citations and related questions

    // Basic search with Perplexity
    await runAction({
    ActionName: 'Perplexity Search',
    Params: [{
    Name: 'Query',
    Value: 'latest developments in quantum computing'
    }]
    });

    // Search with specific model and parameters
    await runAction({
    ActionName: 'Perplexity Search',
    Params: [{
    Name: 'Query',
    Value: 'climate change research papers 2024'
    }, {
    Name: 'Model',
    Value: 'llama-3.1-sonar-large-128k-online'
    }, {
    Name: 'ReturnRelatedQuestions',
    Value: true
    }, {
    Name: 'ReturnImages',
    Value: true
    }]
    });

    // Search with domain filtering
    await runAction({
    ActionName: 'Perplexity Search',
    Params: [{
    Name: 'Query',
    Value: 'machine learning tutorials'
    }, {
    Name: 'SearchDomainFilter',
    Value: ['github.com', 'arxiv.org', 'medium.com']
    }]
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    AuthorizesCaller: boolean

    True when the action authorizes its caller itself, so a public entry point such as the RunAction mutation may run it for an authenticated user without an MJ: Action Authorizations link. Set it only on an action that either checks an authorization the caller must hold, or reads and writes only with the caller's own permissions. Leave it false for an action that acts with more authority than its caller, or that reaches data or sends messages the caller chooses but could not otherwise reach.

    The engine reads the marker only from the class that runs, never from its parent classes. A subclass that overrides a marked action must declare the marker again.

    Methods

    • Executes the Perplexity AI search

      Parameters

      • params: RunActionParams

        The action parameters containing:

        • Query: Search query text (required)
        • Model: Perplexity model to use (default: 'llama-3.1-sonar-small-128k-online') Options: llama-3.1-sonar-small-128k-online, llama-3.1-sonar-large-128k-online, llama-3.1-sonar-huge-128k-online
        • MaxTokens: Maximum tokens in response (default: 1000)
        • Temperature: Sampling temperature 0-2 (default: 0.2)
        • TopP: Nucleus sampling threshold (default: 0.9)
        • ReturnImages: Include images in results (default: false)
        • ReturnRelatedQuestions: Include related questions (default: false)
        • SearchDomainFilter: Array of domains to limit/exclude search (use '-' prefix to exclude)
        • SearchRecencyFilter: Filter by recency - 'day', 'week', 'month', 'year' (optional)

      Returns Promise<ActionResultSimple>

      Search results with content, citations, and related questions