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<dev.langchain4j.data.message.ChatMessage> messages()
      Returns:
      the messages
    • toolSpecifications

      public List<dev.langchain4j.agent.tool.ToolSpecification> toolSpecifications()
      Returns:
      the tool specifications
    • toolExecutors

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

      public List<dev.langchain4j.rag.content.Content> gretrievedContents()
      Returns:
      the retrieved contents
    • context

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

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

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