GenerationConfigKt


public final class GenerationConfigKt


সারাংশ

পাবলিক পদ্ধতি

static final @ NonNull GenerationConfig

একটি DSL-এর মতো পদ্ধতিতে একটি GenerationConfig নির্মাণের সহায়ক পদ্ধতি।

পাবলিক পদ্ধতি

প্রজন্ম কনফিগারেশন

public static final @NonNull GenerationConfig generationConfig(
    @ExtensionFunctionType @NonNull Function1<@NonNull GenerationConfig.BuilderUnit> init
)

একটি DSL-এর মতো পদ্ধতিতে একটি GenerationConfig নির্মাণের সহায়ক পদ্ধতি।

উদাহরণ ব্যবহার:

generationConfig {
context = context // required
workerExecutor = workerThread // Set the [ExecutorService] on which background tasks should be run. If no value is specified, a background thread pool will be used.
callbackExecutor = callbackExecutor // Set the [Executor] on which callbacks should be invoked. If no value is specified, callbacks will be invoked on the UI thread.
temperature = 0.75f
topK = 30
candidateCount = 4
maxOutputTokens = 300
}
,

GenerationConfigKt


public final class GenerationConfigKt


সারাংশ

পাবলিক পদ্ধতি

static final @ NonNull GenerationConfig

একটি DSL-এর মতো পদ্ধতিতে একটি GenerationConfig নির্মাণের সহায়ক পদ্ধতি।

পাবলিক পদ্ধতি

প্রজন্ম কনফিগারেশন

public static final @NonNull GenerationConfig generationConfig(
    @ExtensionFunctionType @NonNull Function1<@NonNull GenerationConfig.BuilderUnit> init
)

একটি DSL-এর মতো পদ্ধতিতে একটি GenerationConfig নির্মাণের সহায়ক পদ্ধতি।

উদাহরণ ব্যবহার:

generationConfig {
context = context // required
workerExecutor = workerThread // Set the [ExecutorService] on which background tasks should be run. If no value is specified, a background thread pool will be used.
callbackExecutor = callbackExecutor // Set the [Executor] on which callbacks should be invoked. If no value is specified, callbacks will be invoked on the UI thread.
temperature = 0.75f
topK = 30
candidateCount = 4
maxOutputTokens = 300
}