ChunkClientListChunksAsync Method

Lists available Chunk resources.

Definition

Namespace: GenerativeAI.Clients
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public Task<ListChunksResponse?> ListChunksAsync(
	string parent,
	int? pageSize = null,
	string? pageToken = null
)

Parameters

parent  String
The name of the Document containing Chunks. Example: corpora/my-corpus-123/documents/the-doc-abc
pageSize  NullableInt32  (Optional)
The maximum number of Chunk resources to return.
pageToken  String  (Optional)
A page token, received from a previous ListChunksAsync(String, NullableInt32, String) call.

Return Value

TaskListChunksResponse
A list of Chunk resources.

See Also