Connection
Base URL, credentials and a reachable server.
Change an API response from a numeric ID to a string and trace its client consumers. Check missing IDs and reject malformed responses before mapping them.
Base URL, credentials and a reachable server.
A model available through the configured endpoint.
Context limits and tool support are determined by the model and server.
const parsed = responseSchema.safeParse(payload);
if (!parsed.success) return contractMismatch(parsed.error);
return mapToClientModel(parsed.data);