SyniTurnRequest class

Versioned, authority-aware turn request.

The fields are kept separate all the way to the native runtime: persona/host policy and task intent become the system turn, dialogue becomes native user/assistant history, userMessage remains the final user turn, and context is conditioning data rather than executable policy.

Constructors

SyniTurnRequest({required String requestId, required SyniTaskContract task, required String userMessage, String? systemPolicy, Map<String, dynamic>? context, Map<String, dynamic>? hsiContext, List<SyniTurnMessage> dialogue = const [], SyniGenerationProfile generation = const SyniGenerationProfile()})
const

Properties

context Map<String, dynamic>?
Authoritative host data for this task (session facts, aggregates, etc.). It is serialized into the runtime's conversation conditioning field and explicitly labelled as data, not instructions.
final
dialogue List<SyniTurnMessage>
final
generation SyniGenerationProfile
final
hashCode int
The hash code for this object.
no setterinherited
hsiContext Map<String, dynamic>?
Optional full HSI payload supplied by synheart-core.
final
requestId String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
systemPolicy String?
final
task SyniTaskContract
final
userMessage String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toRuntimeRequest(SyniPersona persona) SyniRuntimeRequest
Deterministically compile the typed request into Runtime API 2.0. Public primarily for integration diagnostics and contract tests.
toString() String
A string representation of this object.
inherited

Operators

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