[FR]: Replay Anthropic LLM Spans in the playground
Similarly to #3411, we would like to replay LLM spans with an input field that follows the Anthropic data format.
Feature implementation:
The goal of this feature is to add an icon next to these three icons in the traces sidebar:
When a user clicks on the icon, they will be redirected to the playground and the messages in the span input will be already loaded. This will then allow the user to change the messages and see the response.
Implementation considerations:
- Before we display the button we will need to check that the LLM span input follows the Anthropic format or at least contains a message array of the right format
@jverre @vincentkoc , I would like to work on the issue. Can you please assign this to me.
Hi @jverre @vincentkoc! I'd love to work on this Anthropic replay feature for Hacktoberfest. I have experience with both React/TypeScript frontend and Anthropic API integration. My plan: validate Anthropic message format in span inputs, add conditional replay icon in traces sidebar, implement playground navigation with pre-populated messages, and handle proper state management. I can deliver this in 3-4 days with comprehensive testing. Looking forward to contributing!
Hi @jverre @vincentkoc, I’d be happy to take on this issue as part of Hacktoberfest. Could you please assign it to me?
Hi @jverre @vincentkoc , please review this PR. Thanks :)