Class AiServiceTokenStreamParameters

java.lang.Object
dev.langchain4j.service.AiServiceTokenStreamParameters

public class AiServiceTokenStreamParameters extends Object
Parameters for creating an AiServiceTokenStream.
  • Constructor Details

  • Method Details

    • messages

      public List<ChatMessage> messages()
      Returns:
      the messages
    • toolSpecifications

      public List<ToolSpecification> toolSpecifications()
      Returns:
      the tool specifications
    • toolExecutors

      public Map<String,ToolExecutor> toolExecutors()
      Returns:
      the tool executors
    • gretrievedContents

      public List<Content> gretrievedContents()
      Returns:
      the retrieved contents
    • context

      public AiServiceContext context()
      Returns:
      the AI service context
    • memoryId

      public Object memoryId()
      Returns:
      the memory ID
    • commonGuardrailParams

      public GuardrailRequestParams commonGuardrailParams()
      Retrieves the common parameters shared across guardrail checks for validating interactions between a user and a language model, if available.
      Returns:
      the GuardrailRequestParams containing chat memory, user message template, and additional variables required for guardrail processing, or null if not set.
    • methodKey

      public Object methodKey()
      Retrieves the method key associated with this instance.
      Returns:
      the method key as an Object
    • builder

      public static AiServiceTokenStreamParameters.Builder builder()
      Creates a new builder for AiServiceTokenStreamParameters.
      Returns:
      a new builder