Record Class TranscriptPolicy
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.ai.TranscriptPolicy
- Record Components:
enabled- whether the harness writes a transcript.
Whether a harness writes a conversation transcript. Where transcripts land, what format they use,
and how many are retained are the owning
AiContext's concern — a caller opts in or out
and nothing more.
This is a record instead of a plain boolean to leave room for other potential transcript options in the future, such as a per-harness retention policy or a custom transcript directory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TranscriptPolicyWrite no transcript for this harness.static final TranscriptPolicyWrite a transcript to the owning context's transcript directory. -
Constructor Summary
ConstructorsConstructorDescriptionTranscriptPolicy(boolean enabled) Creates an instance of aTranscriptPolicyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static TranscriptPolicyof(boolean enabled) Convenience for call sites gated on a system property or user setting.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ENABLED
Write a transcript to the owning context's transcript directory. The default. -
DISABLED
Write no transcript for this harness.
-
-
Constructor Details
-
TranscriptPolicy
public TranscriptPolicy(boolean enabled) Creates an instance of aTranscriptPolicyrecord class.- Parameters:
enabled- the value for theenabledrecord component
-
-
Method Details
-
of
Convenience for call sites gated on a system property or user setting. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
enabled
-