opik icon indicating copy to clipboard operation
opik copied to clipboard

[FR]: Replay Anthropic LLM Spans in the playground

Open jverre opened this issue 3 months ago • 4 comments

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:

Image

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 avatar Sep 25 '25 21:09 jverre

@jverre @vincentkoc , I would like to work on the issue. Can you please assign this to me.

DhanashreePetare avatar Oct 01 '25 06:10 DhanashreePetare

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!

smirk-dev avatar Oct 01 '25 20:10 smirk-dev

Hi @jverre @vincentkoc, I’d be happy to take on this issue as part of Hacktoberfest. Could you please assign it to me?

roshan9911 avatar Oct 04 '25 13:10 roshan9911

Hi @jverre @vincentkoc , please review this PR. Thanks :)

sonianuj287 avatar Oct 20 '25 08:10 sonianuj287