All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.bedrock.kotlin.inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.bedrock.kotlin.inputs

import com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property breakpointPercentileThreshold The dissimilarity threshold for splitting chunks.
 * @property bufferSize The buffer size.
 * @property maxToken The maximum number of tokens a chunk can contain.
 */
public data class
AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgs(
    public val breakpointPercentileThreshold: Output,
    public val bufferSize: Output,
    public val maxToken: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgs =
        com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgs.builder()
            .breakpointPercentileThreshold(breakpointPercentileThreshold.applyValue({ args0 -> args0 }))
            .bufferSize(bufferSize.applyValue({ args0 -> args0 }))
            .maxToken(maxToken.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgs].
 */
@PulumiTagMarker
public class
AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgsBuilder
internal constructor() {
    private var breakpointPercentileThreshold: Output? = null

    private var bufferSize: Output? = null

    private var maxToken: Output? = null

    /**
     * @param value The dissimilarity threshold for splitting chunks.
     */
    @JvmName("dacrugykrfylqjgi")
    public suspend fun breakpointPercentileThreshold(`value`: Output) {
        this.breakpointPercentileThreshold = value
    }

    /**
     * @param value The buffer size.
     */
    @JvmName("syawmlyknfejkvpq")
    public suspend fun bufferSize(`value`: Output) {
        this.bufferSize = value
    }

    /**
     * @param value The maximum number of tokens a chunk can contain.
     */
    @JvmName("lcjumekxcuyiumve")
    public suspend fun maxToken(`value`: Output) {
        this.maxToken = value
    }

    /**
     * @param value The dissimilarity threshold for splitting chunks.
     */
    @JvmName("kecvefxnsafibkug")
    public suspend fun breakpointPercentileThreshold(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.breakpointPercentileThreshold = mapped
    }

    /**
     * @param value The buffer size.
     */
    @JvmName("dfukkoxsncxpfynx")
    public suspend fun bufferSize(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bufferSize = mapped
    }

    /**
     * @param value The maximum number of tokens a chunk can contain.
     */
    @JvmName("ambfrkebwofvxsaf")
    public suspend fun maxToken(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maxToken = mapped
    }

    internal fun build(): AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgs =
        AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgs(
            breakpointPercentileThreshold = breakpointPercentileThreshold ?: throw
                PulumiNullFieldException("breakpointPercentileThreshold"),
            bufferSize = bufferSize ?: throw PulumiNullFieldException("bufferSize"),
            maxToken = maxToken ?: throw PulumiNullFieldException("maxToken"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy