Patch Changes
-
#11916
73a739cThanks @zduric-langchain! - Report Bedrock thinking tokens asoutput_token_details.reasoningChatBedrockConversenow acceptsadditionalModelResponseFieldPaths(constructor and call option, matchingadditional_model_response_field_pathsin Python) and forwards it to Converse and ConverseStream. When the response includes Anthropic's native usage (additionalModelResponseFields.usage.output_tokens_details.thinking_tokens, returned when requesting["/usage"]), the count is mapped tousage_metadata.output_token_details.reasoningforinvoke(),.stream()andstreamEvents().output_tokensis unchanged, and nothing changes when the field is absent.