UserBehavior class

Describes one behavior pattern for a simulated user persona.

Constructors

UserBehavior({required String name, required String description, List<String>? behaviorInstructions, List<String>? violationRubrics})
Creates one user behavior definition.
UserBehavior.fromJson(EvalJson json)
Decodes a behavior definition from JSON.
factory

Properties

behaviorInstructions → List<String>
Instructions used when generating user messages.
final
description → String
Behavior description.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
Behavior name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
violationRubrics → List<String>
Rubric identifiers that indicate violation of this behavior.
final

Methods

getBehaviorInstructionsStr() → String
Returns bullet-formatted behavior instructions.
getViolationRubricsStr() → String
Returns bullet-formatted violation rubric identifiers.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → EvalJson
Encodes this behavior for persistence.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited