Uses of Class
com.google.genkit.ai.Part
Packages that use Part
Package
Description
This package provides types for the Genkit agents feature, including enums and models for agent
state snapshots, agent execution lifecycle, and agent-related operations.
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.agent
Methods in com.google.genkit.ai.agent that return PartModifier and TypeMethodDescriptionAgentInterrupt.part()Returns the originating tool-request part.Methods in com.google.genkit.ai.agent that return types with arguments of type PartModifier and TypeMethodDescriptionArtifact.getParts()Returns the artifact parts.ToolResume.getRespond()Returns the response parts to resume with.ToolResume.getRestart()Returns the restart parts.AgentResponse.toolRequests()Returns the tool-request parts of the assistant message.Method parameters in com.google.genkit.ai.agent with type arguments of type PartModifier and TypeMethodDescriptionResumes a paused turn by restarting its interrupted tool requests.Resumes a paused turn by responding to its interrupts.voidSets the artifact parts.voidToolResume.setRespond(List<Part> respond) Sets the response parts.voidToolResume.setRestart(List<Part> restart) Sets the restart parts.Constructors in com.google.genkit.ai.agent with parameters of type PartModifierConstructorDescriptionAgentInterrupt(String name, Object input, Part part) Constructs an AgentInterrupt. -
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.