Package dev.langchain4j.service
Class AiServiceTokenStreamParameters
java.lang.Object
dev.langchain4j.service.AiServiceTokenStreamParameters
Parameters for creating an
AiServiceTokenStream
.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
-
Method Summary
Modifier 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()
memoryId()
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
-
gretrievedContents
- Returns:
- the retrieved contents
-
context
- Returns:
- the AI service context
-
memoryId
- Returns:
- the memory ID
-
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
Retrieves the method key associated with this instance.- Returns:
- the method key as an Object
-
builder
Creates a new builder forAiServiceTokenStreamParameters
.- Returns:
- a new builder
-