LlmBackedUserSimulatorConfig class
Configuration for an LLM-backed user simulator.
- Inheritance
-
- Object
- BaseUserSimulatorConfig
- LlmBackedUserSimulatorConfig
Constructors
-
LlmBackedUserSimulatorConfig({String type = 'llm_backed', String model = 'gemini-2.5-flash', GenerateContentConfig? modelConfiguration, int maxAllowedInvocations = 20, String? customInstructions, bool includeFunctionCalls = false, Map<
String, Object?> ? values}) - Creates configuration for an LLM-backed user simulator.
- LlmBackedUserSimulatorConfig.fromBase(BaseUserSimulatorConfig config)
-
Builds a simulator config from
config.factory
Properties
- customInstructions → String?
-
Optional custom instruction template for turn generation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- includeFunctionCalls → bool
-
Whether tool calls and responses are included in conversation history.
final
- maxAllowedInvocations → int
-
Maximum number of simulator invocations before stopping.
final
- model → String
-
Model id used to generate simulated user turns.
final
- modelConfiguration → GenerateContentConfig
-
Generation configuration used for simulator requests.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Discriminator identifying this simulator config type.
final
-
values
→ Map<
String, Object?> -
Raw configuration values.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
Encodes this config for persistence.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited