Class TrainingConfig
java.lang.Object
io.agentscope.core.training.runner.TrainingConfig
Configuration for Training Runner.
Configures various parameters for the training process, including Trinity service address, training model, selection strategy, reward calculator, etc.
Automated design:
- Task ID and Run ID are fully managed automatically by the system
- Users don't need to worry about task tracking details
- Supports flexible training request filtering strategies
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TrainingConfig.Builderbuilder()longintdoubleGet current sampling rateintintboolean
-
Method Details
-
builder
-
getTrinityEndpoint
-
getTrinityApiKey
-
getModelName
-
getSelectionStrategy
-
getRewardCalculator
-
getCommitIntervalSeconds
public long getCommitIntervalSeconds() -
getHttpTimeout
-
isEnableAutoCommit
public boolean isEnableAutoCommit() -
getShadowPoolSize
public int getShadowPoolSize() -
getShadowPoolCapacity
public int getShadowPoolCapacity() -
getRepeatTime
public int getRepeatTime() -
getSampleRate
public double getSampleRate()Get current sampling rate- Returns:
- Sampling rate (0.0 ~ 1.0), returns -1 if using non-sampling strategy
-