Skip to main content

Conversation Trigger Service

Description

Evaluates registered conversation trigger sources to determine when agent-to-agent conversations should start. For each potential initiator, it checks the trigger profile (sense, requirements, cooldowns, probability) and starts conversations through the orchestrator when all conditions are met.

Evaluation is not per frame. ConversationTriggerDriver calls Evaluate() on an interval taken from the conversation trigger settings, with jitter so sources do not all fire on the same tick. See Conversation Triggers.

Interface

Type
IConversationTriggerService

The registered implementation is ConversationTriggerEvaluator. The interface exposes only Register and Unregister; Evaluate and DebugState are on the concrete class.

Inherits

Type
N/A

Interface Methods

NameParametersReturn TypeDescription
RegisterConversationTriggerSource sourcevoidRegisters a trigger source for periodic evaluation.
UnregisterConversationTriggerSource sourcevoidRemoves a trigger source from evaluation.

ConversationTriggerEvaluator Members

NameParametersReturn TypeDescription
EvaluateN/AvoidRuns one evaluation pass across all registered trigger sources.
DebugStateN/ATriggerDebugStateProperty. Snapshot of the last pass, used by the debug overlay.