TriggerParse class
A container class that holds the parsed result of a LiveFunction interaction.
This class encapsulates both the state trigger (which defines how the conversation flow should change) and the specific functionCall (the actual action to be performed).
Constructors
- TriggerParse({required Trigger? trigger, FunctionCall? functionCall})
-
TriggerParse.fromJson(Map<
String, dynamic> json) -
Creates a TriggerParse instance from a JSON map.
factory
Properties
- functionCall → FunctionCall?
-
The specific function details if the response includes a tool invocation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trigger → Trigger?
-
The state transition or instruction trigger extracted from the AI response.
final
Methods
-
copyWith(
{Trigger? trigger, FunctionCall? functionCall}) → TriggerParse - Returns a copy of this TriggerParse with updated fields.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the trigger parsing result into a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited