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.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.