src/types.ts

canonry · packages/provider-perplexity/src/types.ts · typescript · MIT
ai

Type-safe interfaces for the Perplexity Agent API provider configuration and request/response shapes.

// Source: https://github.com/Canonry/canonry | License: MIT | Copyright 2026 Arber X and contributors
// Provided via justclaw.it.com; keep this notice with the code.
import type {
  ProviderQuotaPolicy,
  ProviderUsage,
  GroundingSource,
  LocationContext,
  RetrievalContract,
  RetrievalStatus,
} from '@canonry/canonry-contracts'

export type { GroundingSource, RetrievalContract, RetrievalStatus }

export interface PerplexityConfig {
  apiKey: string
  quotaPolicy: ProviderQuotaPolicy
  model?: string
}

export interface PerplexityHealthcheckResult {
  ok: boolean
  provider: 'perplexity'
  message: string
  model?: string
}

export interface PerplexityTrackedQueryInput {
  query: string
  canonicalDomains: string[]
  competitorDomains: string[]
  config: PerplexityConfig
  location?: 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key