AnthropicStreamingHandler

org.llm4s.llmconnect.streaming.AnthropicStreamingHandler

Anthropic-specific streaming response handler

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def processChunk(chunk: String): Result[Option[StreamedChunk]]

Process a streaming chunk

Process a streaming chunk

Attributes

Definition Classes

Inherited methods

override def cleanup(): Unit

Clean up resources

Clean up resources

Attributes

Definition Classes
Inherited from:
BaseStreamingResponseHandler

Get the final completion after streaming is done

Get the final completion after streaming is done

Attributes

Definition Classes
Inherited from:
BaseStreamingResponseHandler
override def handleError(error: LLMError): Unit

Handle error during streaming

Handle error during streaming

Attributes

Definition Classes
Inherited from:
BaseStreamingResponseHandler
override def isComplete: Boolean

Check if streaming is complete

Check if streaming is complete

Attributes

Definition Classes
Inherited from:
BaseStreamingResponseHandler
protected def markComplete(): Unit

Attributes

Inherited from:
BaseStreamingResponseHandler

Inherited fields

Attributes

Inherited from:
BaseStreamingResponseHandler
protected var complete: Boolean

Attributes

Inherited from:
BaseStreamingResponseHandler
protected var streamingError: Option[LLMError]

Attributes

Inherited from:
BaseStreamingResponseHandler