Class StreamHelper

java.lang.Object
org.springframework.ai.anthropic.api.StreamHelper

public class StreamHelper extends Object
Helper class to support streaming function calling and thinking events.

It can merge the streamed AnthropicApi.StreamEvent chunks in case of function calling message. It passes through other events like text, thinking, and signature deltas.

Since:
1.0.0
Author:
Mariusz Bernacki, Christian Tzolov, Jihoon Kim, Alexandros Pappas, Claudio Silva Junior, Soby Chacko