Client libraries can expose different response shapes for similar capabilities. An adapter should make the conversion explicit instead of assuming every provider returns the same dictionary. Unknown shapes need a bounded outcome, and tool blocks should not turn into answer text merely because they share a content array.
For case.provider responses, collect output_text content from message items in case.reply.output. For provider messages, collect text from case.reply.content blocks whose type is text. Return a list of text pieces. Other item types and unknown providers return no text.
The notebook executes your Python against an original local mock. Use the supplied case rather than copying visible values. The hidden checks change identities, revisions and boundary inputs; no provider endpoint or external tool is contacted.
An example implementation of the function contract.