While an optional attribute, we have the ability to set the gen_ai.response.finish_reason span within the Anthropic integration, either through the result.stop_reason for non-streaming responses, or the event.delta.stop_reason for streaming messages.
We need to ensure that we set the gen_ai.response.finish_reason span when available in the Anthropic integration, similar to what we do for other integrations like Google, Hugging Face, and LangChain.
While an optional attribute, we have the ability to set the
gen_ai.response.finish_reasonspan within the Anthropic integration, either through theresult.stop_reasonfor non-streaming responses, or theevent.delta.stop_reasonfor streaming messages.We need to ensure that we set the
gen_ai.response.finish_reasonspan when available in the Anthropic integration, similar to what we do for other integrations like Google, Hugging Face, and LangChain.