How squad versioning works with assistant versions
How squad versioning works
Squad versioning saves a numbered version of a squad each time you change it, so you can review how the squad evolved as you build it and use a specific version on a call. Versions are numbered v1, v2, and so on. The newest version is current, and new calls use it.
A squad version saves the squad’s configuration:
- The squad name
- The members, in order
- Each member’s assistant version: a pinned version, such as v3, or Latest.
- Everything you configure for a member in the squad builder, such as its model, voice, tools, and handoffs
- Transient assistants defined inside the squad
- Overrides that apply to all members
The assistant’s own configuration, including its tools, belongs to the assistant version. You change it in the assistant editor, and the squad uses it through the member’s pinned or Latest setting.
When a version is created
A squad that existed before squad versioning was enabled for your organization gets its first versions the next time you save it: the existing configuration becomes v1 and your changes become v2.
Create a version
Through the API, each create squad or update squad request that changes the configuration creates a version.
View version history
Pin a member’s assistant version
Each member that uses a saved assistant has one of two settings:
- Latest: The member uses the assistant’s current published version when each call starts. This is the default.
- Pinned version, such as v3: The member always uses that assistant version.
A squad version saves each member’s setting, not the assistant’s configuration. When an assistant publishes a new version, the squad version stays the same:
- Members set to Latest use the new assistant version on the next call.
- Pinned members stay on their pinned version until you change the pin and save the squad.
For example, squad v1 has assistant A pinned to v5 and assistant B set to Latest:
Squads pin assistant versions. Each assistant version keeps its own tool version selections, so a pinned member uses the tool versions saved with that assistant version.
To pin a member in the Dashboard:
Through the API, set assistantVersion next to assistantId on the member. Omit assistantVersion to use Latest.
To make a squad version run the same configuration every time, pin each member, and pin the tools inside each of those assistant versions. A tool set to Latest in an assistant version uses the tool’s newest published version.
Which version a call uses
- Inbound calls use the squad’s current version.
- Outbound calls use the current version by default. To use a specific version, pass
squadVersionwithsquadIdin the create call request.
A call that uses an earlier squad version runs that version’s members and pins. Members set to Latest use each assistant’s current version.