isAgentProviderId (src/providers.ts)

canonry · packages/contracts/src/providers.ts · typescript · MIT
ai

TypeScript utilities for validating and categorizing AI provider IDs across sweep adapters and agent backends.

// 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.
/**
 * Canonical Canonry provider IDs.
 *
 * Every provider anywhere in the system — sweep adapters, Aero agent
 * backends, config keys, CLI flags, API responses — identifies itself by
 * one of these strings. Split by capability:
 *
 * - `SweepProviderIds`  — adapters that can run answer-visibility sweeps.
 *   Perplexity is an answer engine; `local` is an OpenAI-compatible local
 *   LLM; `cdp:chatgpt` is a browser-automation adapter.
 * - `AgentProviderIds`  — LLM backends that can drive the Aero conversation
 *   loop (tool-calling + streaming). Subset of ProviderIds plus `zai`
 *   (agent-only, no sweep adapter).
 *
 *

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

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

Get a free API key