agentskit.js

DeprecationAction

Auto-generated API reference for DeprecationAction.

Type Alias: DeprecationAction

DeprecationAction = "warn" | "remap" | "fail"

Defined in: adapters/src/deprecation.ts:19

Provider model deprecation policy. When a provider deprecates a model, today the adapter silently 404s in production. This module lets you ship a deprecation table per provider and pick a behaviour:

  • warn β€” log once at startup, keep using the model.
  • remap β€” auto-substitute the configured successor.
  • fail β€” throw at startup so deploys catch it.

The deprecation table is community-updateable: the default export holds known deprecations as of the AgentsKit release; consumers can pass their own table to override or extend.

Closes issue #800.

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page