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(), Map<String, dynamic>? state})
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
state → Map<String, dynamic>?
The person's state for this turn (runtime 0.8.0+): readings, the core-runtime facts SyniAgent.answersPlan asked for, device names, today's date, tone and name, as the runtime's answers::StateInput. With it the runtime answers about the person's state itself and checks the reply against the facts; SyniTurnResult.answer says how. The persona's own prompt is then left out of the system turn, as the runtime supplies the persona. Send it only to a runtime that SyniRuntimeCapabilities.supportsAnswers: an older one ignores it.
final
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