Uses of Record Class
dev.langchain4j.service.tool.ToolService.NextChatRequest
Packages that use ToolService.NextChatRequest
-
Uses of ToolService.NextChatRequest in dev.langchain4j.service.tool
Methods in dev.langchain4j.service.tool that return ToolService.NextChatRequestModifier and TypeMethodDescriptionToolService.prepareNextChatRequest(AiServiceContext context, Object memoryId, List<ChatMessage> messages, InvocationContext invocationContext, ToolServiceContext toolServiceContext, Map<ToolExecutionRequest, ToolExecutionResult> toolResults, ChatRequestParameters parameters) Builds the next round'sChatRequest, shared by every AI Service mode: given the already-resolvedmessagesto send (seeToolService.resolveMessagesForNextRequest(List, AiServiceContext, InvocationContext)), it refreshes dynamic tool providers, folds in any tools found by tool search, overrides the tool specifications on the carried-forwardparameters, applies the chat-request transformer, and fires theAiServiceRequestIssuedEvent.