PromptContext class
A structured, programmatically composable prompt context representation.
Constructors
Properties
-
capabilities
→ List<
String> -
Declared capabilities of the template.
final
-
dependencies
→ List<
String> -
Dependencies declared by the package/template.
final
-
environment
→ Map<
String, String> -
Redacted environment or config tags.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ Map<
String, dynamic> -
Structured metadata key-value pairs.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
structuredFacts
→ Map<
String, dynamic> -
Additional domain facts sorted deterministically.
final
- templateId → String
-
Target template or package ID.
final
- version → String?
-
Target template version, if known.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Produces a byte-identical canonical JSON map representation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited