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 TypeMethodDescriptionReturns all available tool specifications configured for AI service.builder()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()Returns effective tool specifications that should be included in the nextChatRequest.messages()Returns messages that should be included in the nextChatRequest.Retrieves the method key associated with this instance.Deprecated.
-
Constructor Details
-
AiServiceTokenStreamParameters
-
-
Method Details
-
messages
Returns messages that should be included in the nextChatRequest. -
effectiveTools
Returns effective tool specifications that should be included in the nextChatRequest.- See Also:
-
toolSpecifications
Deprecated.useeffectiveTools()insteadReturns effective tool specifications that should be included in the nextChatRequest.- See Also:
-
availableTools
Returns all available tool specifications configured for AI service. These tool specifications can be discovered/found by the LLM (seeToolSearchStrategy) and included in the nextChatRequest.- Since:
- 1.12.0
- See Also:
-
toolExecutors
- Returns:
- the tool executors
-
toolArgumentsErrorHandler
- Since:
- 1.4.0
-
toolExecutionErrorHandler
- Since:
- 1.4.0
-
toolExecutor
- Since:
- 1.4.0
-
retrievedContents
-
context
- Returns:
- the AI service context
-
invocationContext
- Since:
- 1.6.0
-
commonGuardrailParams
Retrieves 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.
-
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
-
effectiveTools()instead