Uses of Class
dev.langchain4j.model.decision.response.DecisionResponse
Packages that use DecisionResponse
Package
Description
Model mocks for tests: they need no network, answer the way a test tells them to, and record the requests they
receive.
-
Uses of DecisionResponse in dev.langchain4j.agentic.internal
Methods in dev.langchain4j.agentic.internal that return DecisionResponseMethods in dev.langchain4j.agentic.internal with parameters of type DecisionResponseModifier and TypeMethodDescriptionvoidAgentModelResponse.onDecisionResponse(DecisionResponse decisionResponse) -
Uses of DecisionResponse in dev.langchain4j.agentic.observability
Methods in dev.langchain4j.agentic.observability that return DecisionResponseModifier and TypeMethodDescriptionAgentResponse.decisionResponse()Returns the value of thedecisionResponserecord component.@Nullable DecisionResponsePlannerModelResponse.decisionResponse()Returns the response of the decision model called by the planner, with its answers and their probabilities, ornullif it called a chat model or if this notification was created without the response.Methods in dev.langchain4j.agentic.observability that return types with arguments of type DecisionResponseModifier and TypeMethodDescriptionAgentInvocation.decisionResponse()Returns the response of the decision model of a decision agent, with its answers and their probabilities.Methods in dev.langchain4j.agentic.observability with parameters of type DecisionResponseModifier and TypeMethodDescriptionstatic voidListenerNotifierUtil.afterAgentInvocation(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Object output, DecisionResponse decisionResponse) Constructors in dev.langchain4j.agentic.observability with parameters of type DecisionResponseModifierConstructorDescriptionAgentResponse(AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Object output, ChatRequest chatRequest, ChatResponse chatResponse, DecisionResponse decisionResponse) Creates an instance of aAgentResponserecord class.PlannerModelResponse(AgenticScope agenticScope, AgentInstance agent, DecisionResponse decisionResponse) Creates the notification of the response of a decision model, with the token usage and the model name of that response. -
Uses of DecisionResponse in dev.langchain4j.agentic.planner
Methods in dev.langchain4j.agentic.planner with parameters of type DecisionResponseModifier and TypeMethodDescriptionvoidPlanningContext.reportDecisionModelResponse(@Nullable DecisionResponse decisionResponse) Reports the response of a decision model that the planner called itself to decide what to do, likePlanningContext.reportChatModelResponse(ChatResponse)does for a chat model. -
Uses of DecisionResponse in dev.langchain4j.model.decision
Methods in dev.langchain4j.model.decision that return DecisionResponseModifier and TypeMethodDescriptiondefault DecisionResponseDecisionModel.decide(DecisionRequest request) Answers the questions of the given request.DecisionModel.doDecide(DecisionRequest request) The provider hook behindDecisionModel.decide(DecisionRequest).Methods in dev.langchain4j.model.decision that return types with arguments of type DecisionResponseModifier and TypeMethodDescriptiondefault CompletableFuture<DecisionResponse> DecisionModel.decideAsync(DecisionRequest request) Non-blocking counterpart ofDecisionModel.decide(DecisionRequest).default CompletableFuture<DecisionResponse> DecisionModel.doDecideAsync(DecisionRequest request) The provider hook behindDecisionModel.decideAsync(DecisionRequest). -
Uses of DecisionResponse in dev.langchain4j.model.decision.listener
Methods in dev.langchain4j.model.decision.listener that return DecisionResponseMethods in dev.langchain4j.model.decision.listener with parameters of type DecisionResponseModifier and TypeMethodDescriptionDecisionModelResponseContext.Builder.decisionResponse(DecisionResponse decisionResponse) Required:DecisionModelResponseContext.Builder.build()fails if it is not set.Constructors in dev.langchain4j.model.decision.listener with parameters of type DecisionResponseModifierConstructorDescriptionDecisionModelResponseContext(DecisionResponse decisionResponse, DecisionRequest decisionRequest, ModelProvider modelProvider, Map<Object, Object> attributes) Deprecated. -
Uses of DecisionResponse in dev.langchain4j.model.decision.response
Methods in dev.langchain4j.model.decision.response that return DecisionResponse -
Uses of DecisionResponse in dev.langchain4j.model.google.genai
Methods in dev.langchain4j.model.google.genai that return DecisionResponseMethods in dev.langchain4j.model.google.genai that return types with arguments of type DecisionResponseModifier and TypeMethodDescriptionGoogleGenAiDecisionModel.doDecideAsync(DecisionRequest request) -
Uses of DecisionResponse in dev.langchain4j.model.googleai
Methods in dev.langchain4j.model.googleai that return DecisionResponseMethods in dev.langchain4j.model.googleai that return types with arguments of type DecisionResponseModifier and TypeMethodDescriptionGoogleAiGeminiDecisionModel.doDecideAsync(DecisionRequest request) -
Uses of DecisionResponse in dev.langchain4j.model.ollama
Methods in dev.langchain4j.model.ollama that return DecisionResponseMethods in dev.langchain4j.model.ollama that return types with arguments of type DecisionResponse -
Uses of DecisionResponse in dev.langchain4j.model.openai
Methods in dev.langchain4j.model.openai that return DecisionResponseMethods in dev.langchain4j.model.openai that return types with arguments of type DecisionResponse -
Uses of DecisionResponse in dev.langchain4j.model.openai.internal.decision
Methods in dev.langchain4j.model.openai.internal.decision that return DecisionResponseModifier and TypeMethodDescriptionstatic DecisionResponseDecisionMapper.toDecisionResponse(DecisionCreateResponse response, DecisionRequest request) -
Uses of DecisionResponse in dev.langchain4j.model.openaiofficial
Methods in dev.langchain4j.model.openaiofficial that return DecisionResponseMethods in dev.langchain4j.model.openaiofficial that return types with arguments of type DecisionResponseModifier and TypeMethodDescriptionOpenAiOfficialDecisionModel.doDecideAsync(DecisionRequest request) -
Uses of DecisionResponse in dev.langchain4j.model.typesafe
Methods in dev.langchain4j.model.typesafe that return DecisionResponseMethods in dev.langchain4j.model.typesafe that return types with arguments of type DecisionResponse -
Uses of DecisionResponse in dev.langchain4j.model.typesafe.internal
Methods in dev.langchain4j.model.typesafe.internal that return DecisionResponseModifier and TypeMethodDescriptionstatic DecisionResponseTypeSafeMapper.toDecisionResponse(TypeSafeResponse response, DecisionRequest request) -
Uses of DecisionResponse in dev.langchain4j.service.decision
Methods in dev.langchain4j.service.decision that return DecisionResponseMethods in dev.langchain4j.service.decision with parameters of type DecisionResponse -
Uses of DecisionResponse in dev.langchain4j.service.decision.internal
Methods in dev.langchain4j.service.decision.internal with parameters of type DecisionResponseModifier and TypeMethodDescriptionDecisionMethod.toResult(DecisionResponse response, Function<String, Double> thresholds) Maps the response to the result of this method, without theCompletableFuturewrapper. -
Uses of DecisionResponse in dev.langchain4j.test.mock
Methods in dev.langchain4j.test.mock that return DecisionResponseMethods in dev.langchain4j.test.mock that return types with arguments of type DecisionResponseModifier and TypeMethodDescriptionMockDecisionModel.doDecideAsync(DecisionRequest request) Answers likeMockDecisionModel.doDecide(DecisionRequest), with the next step of the script, and completes the future on another thread, where a step that computes its answers also computes them.Methods in dev.langchain4j.test.mock with parameters of type DecisionResponseModifier and TypeMethodDescriptionstatic MockDecisionModelMockDecisionModel.thatResponds(DecisionResponse response) A model that answers the first request with the answers and the metadata of the given response, for example its token usage or model name, to test code that reads them, such as a cost check.MockDecisionModel.thenResponds(DecisionResponse response) Adds a step: the next request is answered with the answers and the metadata of the given response, for example its token usage or model name, seeMockDecisionModel.thatResponds(DecisionResponse). -
Uses of DecisionResponse in dev.langchain4j.test.service
Methods in dev.langchain4j.test.service that return DecisionResponseModifier and TypeMethodDescriptionDecisionModelCall.response()Returns the response of the decision model, ornullif the call failed or had not ended when the invocation finished.
DecisionModelResponseContext.builder()instead