Uses of Class
com.google.genkit.ai.Part
Packages that use Part
Package
Description
Firestore vector search retriever and indexer components.
-
Uses of Part in com.google.genkit.ai
Methods in com.google.genkit.ai that return PartModifier and TypeMethodDescriptionstatic PartCreates a data part.static PartCreates a media part.Constructs a tool response for an interrupted tool request.Constructs a tool response for an interrupted tool request with metadata.Constructs a restart request for an interrupted tool.Constructs a restart request with replacement input.static PartCreates a text part.static PartPart.toolRequest(ToolRequest toolRequest) Creates a tool request part.static PartPart.toolResponse(ToolResponse toolResponse) Creates a tool response part.Methods in com.google.genkit.ai that return types with arguments of type PartModifier and TypeMethodDescriptionDocument.getContent()Message.getContent()ModelResponseChunk.getContent()ModelResponse.getInterrupts()Returns the list of interrupt tool requests.ModelResponse.getToolRequests()Returns all tool request parts from the first candidate.Methods in com.google.genkit.ai with parameters of type PartModifier and TypeMethodDescriptionAdds a part to the message content.Constructs a tool response for an interrupted tool request.Constructs a tool response for an interrupted tool request with metadata.Constructs a restart request for an interrupted tool.Constructs a restart request with replacement input.Method parameters in com.google.genkit.ai with type arguments of type PartModifier and TypeMethodDescriptionModelResponse.Builder.interrupts(List<Part> interrupts) voidDocument.setContent(List<Part> content) voidMessage.setContent(List<Part> content) voidModelResponseChunk.setContent(List<Part> content) voidModelResponse.setInterrupts(List<Part> interrupts) static MessageCreates a tool message with content.Constructor parameters in com.google.genkit.ai with type arguments of type Part -
Uses of Part in com.google.genkit.ai.middleware
Methods in com.google.genkit.ai.middleware that return PartModifier and TypeMethodDescriptionToolNext.apply(ActionContext ctx, ToolParams params) Calls the next handler in the tool chain.ToolParams.getRequestPart()Returns the full tool request part, including part-level metadata.BaseGenerationMiddleware.wrapTool(ActionContext ctx, ToolParams params, ToolNext next) GenerationMiddleware.wrapTool(ActionContext ctx, ToolParams params, ToolNext next) Wraps each tool execution.Constructors in com.google.genkit.ai.middleware with parameters of type Part -
Uses of Part in com.google.genkit.plugins.firebase.retriever
Methods in com.google.genkit.plugins.firebase.retriever that return types with arguments of type PartMethod parameters in com.google.genkit.plugins.firebase.retriever with type arguments of type PartModifier and TypeMethodDescriptionFirestoreRetrieverConfig.Builder.contentExtractor(Function<com.google.cloud.firestore.QueryDocumentSnapshot, List<Part>> contentExtractor) Sets a custom content extractor function.