Skip to content

Versioning ​

What 1.0 promises: what a patch or minor release may change, and what waits for the next major version.

From 1.0.0 the SDK follows semantic versioning: MAJOR.MINOR.PATCH.

ReleaseExampleWhat it may do
Patch1.0.1Fix a bug. No public name, option or file format changes.
Minor1.1.0Add things: new functions, options, result fields, events and telemetry codes. Code written for an earlier 1.x keeps working.
Major2.0.0Remove or rename something public, or change what it means. Every such change has a row in the migration guide that says what to use instead.

Nothing is ever marked deprecated: a name is either supported, or it is removed in a major release.

What the promise covers ​

  • Every name you import from "agent-accelerator", with its type, its options and the behaviour these docs describe. The package entry is the whole public API.
  • The error classes and their code values (see Errors).
  • The stream event types and the telemetry codes, with the fields the reference lists.
  • The settings keys of setConfigs and the configs.json file in the home folder (see Settings).
  • Saved sessions. A session saved by any 1.x release loads in every later 1.x release, with its whole conversation.
  • The scheduled action files. They have their own, stricter rules: see Scheduled action files.

What it does not cover ​

  • Files inside the package. Importing agent-accelerator/src/... reaches internal code, which can change in any release. Import from "agent-accelerator" only.
  • New values in a list. A minor release can add a stream event type, a finish reason, an error code or a telemetry code. Give a switch over them a default branch.
  • Message text. The wording of an error message or a warning can change in any release. Match on the error class, err.code or the telemetry code, never on the text.
  • The providers. A provider can change its API, its models or its prices at any time. The SDK follows in a minor or patch release.
  • The model catalog. Models, prices and limits come from models.dev and change without an SDK release.

Which version to depend on ​

"agent-accelerator": "^1.0.0" gets every fix and addition of 1.x, and never a major release. Pin an exact version instead when you want to upgrade on your own schedule, for example in a program you ship to other people.

Released under the MIT License.