ragChunk

Setter for ragChunk.

ragChunk: Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used. This field is not supported in Gemini API.


@CanIgnoreReturnValue()
public GroundingChunkRetrievedContext.Builder ragChunk(RagChunk.Builder ragChunkBuilder)

Setter for ragChunk builder.

ragChunk: Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used. This field is not supported in Gemini API.