Enable Anthropic prompt caching by default in `clai2`
Merged
MP
2mo ago+93+93+01234567890123456789-2-2-0123456789
Enable caching only in CLAI2 using existing Anthropic model settings. anthropic: and gateway/anthropic: use 5 minutes; claude-code: uses 1 hour. Cache conversation prefixes, static instructions, and tool schemas, preserving saved overrides.
No core changes: the final diff contains only CLAI2 settings, README, and tests. Uses existing automatic caching, not a new explicit latest-tool-call breakpoint.
- Closes #9858 (scoped to CLAI2 per Mike request).
Verification
- 150 targeted tests passed, 1 skipped.
- Outbound payload tests verify automatic, instruction, and tool-schema cache controls for both TTLs.
- Targeted source Pyright and pre-commit passed.
Checklist
- No breaking changes in accordance with the version policy; library behavior unchanged.
- Any permitted compatibility impact considered; saved settings override CLI defaults.
- PR title is fit for the release changelog.