Model and Tool API Contracts
Keep the old client working through an explicit adapter
A newer caller reaches yesterday’s parser
The old parser worked until a supported caller selected the new shape.
BOTIE
The inputs we are comparing
Versioned search request
Yesterday’s caller
- version
- 1
- text
- pump
- limit
- 2
The new client changes its public keys
- version
- 2
- query
- valve
- count
- 4
Result for yesterday’s caller
- query
- pump
- count
- 2
A future version has familiar-looking fields
This check uses the pieces from “Build the two public edges around one internal form”.
BOTIE
- Versioned search request
- version
- 3
- query
- pump
- count
- 2
Use a number, text, or an array matching the requested result. A named result uses field names, such as {"count": 2}. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.
Build a construction in the workspace above first. This case will test those pieces.
Which old client would fail if the server rolled back to version 1-only code?
Keep supported public contracts distinct from the internal representation.
The adapters recognize only these two specified request versions. Supporting another client requires checking its actual message and behavior, then adding the relevant adapter and fixtures.