Package-level declarations

Types

Link copied to clipboard
@Serializable
data class ChunkingConfig(val chunkSize: Int? = null, val chunkOverlap: Int? = null, val whiteSpaceConfig: WhiteSpaceConfig? = null)

Config for telling the service how to chunk the data.

Link copied to clipboard
@Serializable
data class CustomMetadata(val key: String, val stringValue: String? = null)

Custom metadata to be associated with the data.

Link copied to clipboard
class FileSearch(apiKey: String, client: HttpClient? = null, fileUploadProvider: FileUploadProvider = FileUploadProvider(apiKey))

Client for interacting with the Google File Search API.

Link copied to clipboard
@Serializable
data class FileSearchStore(val name: String? = null, val displayName: String? = null, val createTime: String? = null, val updateTime: String? = null, val activeDocumentsCount: String? = null, val pendingDocumentsCount: String? = null, val failedDocumentsCount: String? = null, val sizeBytes: String? = null)

A FileSearchStore is a collection of Documents.

Link copied to clipboard
@Serializable
data class ImportFileRequest(val fileName: String, val customMetadata: List<CustomMetadata>? = null, val chunkingConfig: ChunkingConfig? = null)

Request body for importing a File from File Service to a FileSearchStore.

Link copied to clipboard
@Serializable
data class ListFileSearchStoresResponse(val fileSearchStores: List<FileSearchStore>? = null, val nextPageToken: String? = null)

Response from fileSearchStores.list containing a paginated list of FileSearchStores.

Link copied to clipboard
@Serializable
data class Operation(val name: String? = null, val metadata: JsonObject? = null, val done: Boolean? = null, val error: Status? = null, val response: JsonObject? = null)

This resource represents a long-running operation that is the result of a network API call.

Link copied to clipboard
@Serializable
data class Status(val code: Int? = null, val message: String? = null, val details: List<JsonObject>? = null)

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.

Link copied to clipboard
@Serializable
data class UploadFileSearchStoreRequest(val displayName: String? = null, val customMetadata: List<CustomMetadata>? = null, val chunkingConfig: ChunkingConfig? = null, val mimeType: String? = null)

Request body for uploading to a FileSearchStore.

Link copied to clipboard
@Serializable
data class WhiteSpaceConfig(val maxTokensPerChunk: Int? = null, val maxOverlapTokens: Int? = null)

Config for white space chunking.