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.
| Release | Example | What it may do |
|---|---|---|
| Patch | 1.0.1 | Fix a bug. No public name, option or file format changes. |
| Minor | 1.1.0 | Add things: new functions, options, result fields, events and telemetry codes. Code written for an earlier 1.x keeps working. |
| Major | 2.0.0 | Remove 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
codevalues (see Errors). - The stream event types and the telemetry codes, with the fields the reference lists.
- The settings keys of
setConfigsand theconfigs.jsonfile in the home folder (see Settings). - Saved sessions. A session saved by any
1.xrelease loads in every later1.xrelease, 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
switchover them adefaultbranch. - Message text. The wording of an error message or a warning can change in any release. Match on the error class,
err.codeor the telemetrycode, 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.