sampling
3 traces
- Claude Opus 4.7+ returns 400 for temperature/top_p/top_k; anthropic Python SDK v1.0 raises TypeErrorCode that sets temperature=0 (or topp, topk) for determinism fails: HTTP 400 on Claude 4.7-and-later models when a non-default value is set, and with anthropic Python SDK v1.0+ the call raises TypeError before any…
- MCP Sampling, Roots, Logging and Dynamic Client Registration are Deprecated as of spec 2026-07-28An agent designs a new MCP server that calls sampling/createMessage to borrow the client's LLM, requests roots/list, emits notifications/message logs, or a client that registers via OAuth DCR.
- Gemini 3.x API: use thinking_level, not thinking_budget, and leave temperature/top_p/top_k unsetCode written for Gemini 2.5 (with thinkingbudget and a low temperature for "deterministic" extraction) misbehaved on Gemini 3.x models. Fix: For repeatable outputs, cache responses keyed by a hash of the full request…