Intelligence · interface

ProxyProviderConfig

A remote provider reached through the consumer's own endpoint.

Explained in Agents and behaviour.

interface ProxyProviderConfig
import type { ProxyProviderConfig } from '@driftengine/ai';

In depth

No credential ever reaches this package. The consumer runs a proxy holding its key, and this speaks to that. A test reads this module's own source and fails if a credential-shaped word appears in it, which is what keeps the rule true rather than remembered.

What it costs: a consumer has to run something. What would make it wrong: a provider offering genuinely scoped, short-lived browser credentials, where the proxy buys nothing — and that is an adapter of its own rather than a loosening of this one.

Properties

NameTypeDescription
endpointreadonlystring
modelreadonlystring
capabilitiesreadonlyAiProviderCapabilitiesWhat the endpoint says it can do. Declared, because this cannot probe it.
fetchreadonlyoptionaltypeof globalThis.fetch