anthropic-sdk-python >= 1.0 (released 2026-08-20) removed `temperature`
from the explicit signature of `AsyncMessages.create()` and
`AsyncMessages.stream()`. Any LLM call through the Anthropic binding —
including the real Anthropic API and any Anthropic-compatible gateway
(e.g. MiniMax, AWS Bedrock Claude) — now raises:
AsyncMessages.create() got an unexpected keyword argument 'temperature'
The Anthropic API itself still accepts `temperature` as a top-level
request field; the SDK simply forces callers to tunnel it through
`extra_body` instead of accepting it as a first-class kwarg. This patch
moves both `temperature` assignments in `AnthropicProvider._build_kwargs`
from the top-level kwargs to `extra_body`, so the wire payload is
unchanged and SDK 1.x stops rejecting the call.
Tests in test_anthropic_provider_fixes.py are updated to assert against
`extra_body['temperature']` instead of top-level `temperature`, plus a
new `test_temperature_is_routed_via_extra_body` covers the new
behaviour end-to-end.
Short selections such as rc carried only the raw token and an opaque parent session id. Capture the containing message id, resolve it from the parent session, and provide both the source message and exact selection to the tutor prompt.
Resolved ask_user exchanges happened before the assistant produced the
row's answer, so they must precede the row's content in both
_build_history() and format_messages_as_transcript(). The previous order
(assistant content first, clarification second) made later turns see the
answer before the user supplied the missing context, confusing the model
and polluting rolling summaries.
Update the test that had locked in the wrong order.
Composer clarifying questions on a choice card were persisted as the formal
answer, after which mastery_grade could never map them to an option and the
gate stalled. Skip unreadable commits and allow a later readable pick to
recover already-stuck interactions.
Providers whose Responses API performs web_search server-side (DeepSeek
V4, #846) declare the tool as {"type": "web_search"} instead of a
function schema, run the search mid-generation, and return web_search_call
output items with url_citation annotations.
- convert_tools(): map the web_search function tool to the native schema
when the provider spec sets native_web_search
- parsing: synthesize a server_executed-marked web_search ToolCallRequest
from web_search_call items and url_citation annotations across all three
consumers (SSE, SDK stream, non-streaming), with tail-merge for
annotations that stream after the search item completes
- convert_messages(): replay server-executed calls as web_search_call
items and skip their function_call_output pairing
- assistant_message_with_tool_calls(): keep provider_specific_fields so
the server_executed marker survives into the conversation history
- tool_dispatch: short-circuit server-executed calls with a stub result
carrying the citations as sources — the local web_search tool never
re-runs a search the provider already performed
The chat loop silently strips tools whenever a provider 400 mentions
the word tool. Narrow the matcher to schema/parameter rejection phrases
so unrelated errors no longer disable tool calling for the turn.
- Guard resource module import in runner server for non-POSIX platforms
- Use POSIX relative path format in ListDirTool for consistent path separators
- Specify UTF-8 encoding in Weixin channel state loading and prompt tests to avoid GBK UnicodeDecodeError
- Use as_posix() in path assertion tests for cross-platform compatibility