Uses of Class
org.springframework.ai.chat.model.Generation
Packages that use Generation
Package
Description
-
Uses of Generation in org.springframework.ai.chat.model
Methods in org.springframework.ai.chat.model that return GenerationModifier and TypeMethodDescriptionstatic GenerationGuardrailRefusal.generation(String text) Builds the generation that carries a refusal.@Nullable GenerationChatResponse.getResult()Methods in org.springframework.ai.chat.model that return types with arguments of type GenerationMethods in org.springframework.ai.chat.model with parameters of type GenerationModifier and TypeMethodDescriptionstatic booleanGuardrailRefusal.isRefusal(@Nullable Generation generation) Whether a generation carries a guardrail's refusal rather than an answer of the model.Method parameters in org.springframework.ai.chat.model with type arguments of type GenerationConstructor parameters in org.springframework.ai.chat.model with type arguments of type GenerationModifierConstructorDescriptionChatResponse(List<Generation> generations) Construct a newChatResponseinstance without metadata.ChatResponse(List<Generation> generations, ChatResponseMetadata chatResponseMetadata) Construct a newChatResponseinstance. -
Uses of Generation in org.springframework.ai.google.genai
Methods in org.springframework.ai.google.genai that return types with arguments of type GenerationModifier and TypeMethodDescriptionprotected List<Generation>GoogleGenAiChatModel.responseCandidateToGeneration(com.google.genai.types.Candidate candidate) Converts a response candidate to a single generation whose message holds the Gemini parts, in order, asMessageParts: thought text asReasoningPart, answer text asTextPart, function calls asToolCallPart, inline data asMediaPart, and anything else (server-side tool calls and responses, executable code, code execution results, file data) asUnknownPart, kept verbatim for replay. -
Uses of Generation in org.springframework.ai.model.tool
Methods in org.springframework.ai.model.tool that return GenerationModifier and TypeMethodDescriptionToolCallLimitExceededException.buildGeneration()Builds a singleGenerationrepresenting this exception, so that a limit breach is never mistaken for one of several equally valid answers.Methods in org.springframework.ai.model.tool that return types with arguments of type GenerationModifier and TypeMethodDescriptionstatic List<Generation>ToolExecutionResult.buildGenerations(ToolExecutionResult toolExecutionResult) Build a list ofGenerationfrom the tool execution result, useful for sending the tool execution result to the client directly.