Stability

The part of Tandem's API that gets no breaking changes before 1.0.

Tandem is 0.x. Its core API gets no breaking changes before 1.0. Each release can add optional parameters and new members to the core. Nothing in the core is removed or renamed, and it keeps the behaviour its docs describe.

Everything outside the core can still change in a minor release. Each such change has a Breaking: entry with the upgrade steps in the package's CHANGELOG. Upgrade from 0.3 collects them for 0.4.

The core

The core is everything that the quick start uses, as in the README. Its code is one file, quick_start.dart, and quick_start_test.dart tests it.

  • The agent list: @TandemAgent(), AgentCapability.sees, .calls and .callsWithApproval, and the agentCapabilities and changes of AgentSurface.
  • The screen: TandemScope with agent:, and TandemScope.connected. TandemApprovals.callback, .fromState and .none, the ApprovalCallback signature, and approve, reject and decide of TandemSession. The scope keeps its thread: and onEvent: parameters, but the types they take are outside the core.
  • Views: TandemView with catalog: and whenUnavailable:, and @TandemCatalog([...]) with its doc comment, which holds the guidelines and a required JSON example.
  • Generated code: the _$Class mixins and the <Class>Tool enums that tandem_generator writes. Keep tandem and tandem_generator on the same minor, and run dart run build_runner build after moving to a new minor. The code your app wrote against them keeps compiling.
  • Debug: TandemBridge.enable().

Outside the core

  • TandemThread.
  • The chat and status types: ChatItem, SessionStatus, TandemEvent and their cases.
  • Connections and the AG-UI wire format.
  • The JSON of ext.tandem.describe and ext.tandem.call.
  • ScriptedAgent and the rest of package:tandem/testing.dart.
  • The tandem_firebase_ai package.

What breaking means

A change to the core is breaking when code that uses it as documented stops compiling or does something else. A new optional parameter or a new member is not breaking.