MCPcopy Create free account
hub / github.com/TanStack/ai / isProvider

Function isProvider

examples/ts-react-chat/src/routes/api.structured-output.ts:121–123  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

119type Provider = (typeof PROVIDERS)[number]
120
121function isProvider(value: unknown): value is Provider {
122 return typeof value === 'string' && PROVIDERS.includes(value as Provider)
123}
124
125/**
126 * Synthetic suffixes the dropdown uses to opt the route into reasoning

Callers 2

triagePostFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected