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.dev.langchain4j.guardrail.GuardrailRequestParamsRetrieves the common parameters shared across guardrail checks for validating interactions between a user and a language model, if available.context()List<dev.langchain4j.rag.content.Content> dev.langchain4j.invocation.InvocationContextList<dev.langchain4j.data.message.ChatMessage> messages()Retrieves the method key associated with this instance.List<dev.langchain4j.agent.tool.ToolSpecification>
-
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
- Returns:
- the retrieved contents
-
context
- Returns:
- the AI service context
-
invocationContext
public dev.langchain4j.invocation.InvocationContext invocationContext()- Since:
- 1.6.0
-
commonGuardrailParams
public dev.langchain4j.guardrail.GuardrailRequestParams 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
-