Uses of Class
com.google.genkit.ai.agent.Artifact
Packages that use Artifact
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.
-
Uses of Artifact in com.google.genkit.ai.agent
Methods in com.google.genkit.ai.agent that return ArtifactModifier and TypeMethodDescriptionAgentChunk.artifact()Returns the artifact carried by this chunk.Artifact.Builder.build()AgentStreamChunk.getArtifact()Returns the artifact in this chunk.Methods in com.google.genkit.ai.agent that return types with arguments of type ArtifactModifier and TypeMethodDescriptionAgentChat.artifacts()Returns the accumulated artifacts.AgentResponse.artifacts()Returns the turn's artifacts.AgentOutput.getArtifacts()Returns the output artifacts.AgentResult.getArtifacts()Returns the result artifacts.ArtifactStore.getArtifacts()Returns a copy of the current list of artifacts.Session.getArtifacts()Returns a copy of the current artifacts list.SessionRunner.getArtifacts()Returns a copy of the current artifacts list.SessionState.getArtifacts()Returns the session artifacts.Methods in com.google.genkit.ai.agent with parameters of type ArtifactModifier and TypeMethodDescriptionvoidArtifactStore.addArtifacts(Artifact... artifacts) Adds artifacts, deduplicating by name.voidSession.addArtifacts(Artifact... arts) Adds artifacts with deduplication by name.voidSessionRunner.addArtifacts(Artifact... a) Adds artifacts to the session.voidAgentStreamChunk.setArtifact(Artifact artifact) Sets the artifact.Method parameters in com.google.genkit.ai.agent with type arguments of type ArtifactModifier and TypeMethodDescriptionvoidSession.addArtifacts(List<Artifact> arts) Adds artifacts with deduplication by name (list overload).voidAgentOutput.setArtifacts(List<Artifact> artifacts) Sets the output artifacts.voidAgentResult.setArtifacts(List<Artifact> artifacts) Sets the result artifacts.voidSessionState.setArtifacts(List<Artifact> artifacts) Sets the session artifacts.voidSession.setOnArtifactChanged(Consumer<Artifact> cb) Sets the callback to be invoked for each artifact added or updated viaSession.addArtifacts(com.google.genkit.ai.agent.Artifact...).voidSession.updateArtifacts(UnaryOperator<List<Artifact>> fn) Appliesfnto the current artifacts list and stores the result.