Class StreamParserFactory

java.lang.Object
org.apache.camel.component.aws2.bedrock.runtime.stream.StreamParserFactory

public final class StreamParserFactory extends Object
Factory for creating appropriate StreamResponseParser based on model ID
  • Method Details

    • getParser

      public static StreamResponseParser getParser(String modelId)
      Get the appropriate parser for the given model ID
      Parameters:
      modelId - the Bedrock model ID
      Returns:
      the appropriate parser for this model