Class AiServiceTokenStreamParameters
java.lang.Object
dev.langchain4j.service.AiServiceTokenStreamParameters
Parameters for creating an 
AiServiceTokenStream.- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotected
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()Creates a new builder forAiServiceTokenStreamParameters.Retrieves the common parameters shared across guardrail checks for validating interactions between a user and a language model, if available.context()messages()Retrieves the method key associated with this instance.
- 
Constructor Details- 
AiServiceTokenStreamParameters
 
- 
- 
Method Details- 
messages- Returns:
- the messages
 
- 
toolSpecifications- Returns:
- the tool specifications
 
- 
toolExecutors- Returns:
- the tool executors
 
- 
toolArgumentsErrorHandler- Since:
- 1.4.0
 
- 
toolExecutionErrorHandler- Since:
- 1.4.0
 
- 
toolExecutor- Since:
- 1.4.0
 
- 
gretrievedContents
- 
context- Returns:
- the AI service context
 
- 
invocationContext- Since:
- 1.6.0
 
- 
commonGuardrailParamsRetrieves the common parameters shared across guardrail checks for validating interactions between a user and a language model, if available.- Returns:
- the GuardrailRequestParamscontaining chat memory, user message template, and additional variables required for guardrail processing, or null if not set.
 
- 
methodKeyRetrieves the method key associated with this instance.- Returns:
- the method key as an Object
 
- 
builderCreates a new builder forAiServiceTokenStreamParameters.- Returns:
- a new builder
 
 
-