PromptSpec constructor

const PromptSpec({
  1. required String root,
  2. required Map<String, PromptEntry> components,
  3. List<PromptGroup> groups = const [],
  4. Map<String, PromptEntry> functions = const {},
  5. Map<String, PromptEntry> actions = const {},
  6. List<String>? builtinFunctionLines,
  7. Map<String, PromptEntry>? builtinSteps,
  8. String? preamble,
  9. bool? bindings,
  10. bool? toolCalls,
  11. bool? builtinFunctions,
  12. List<PromptTool> tools = const [],
  13. List<String> toolNames = const [],
  14. List<String> examples = const [],
  15. List<String> toolExamples = const [],
  16. List<String> additionalRules = const [],
  17. bool editMode = false,
  18. bool inlineMode = false,
  19. List<BoundRecord> records = const [],
  20. Map<String, Object?> state = const {},
  21. Set<String>? allowedActions,
})

Implementation

const PromptSpec({
  required this.root,
  required this.components,
  this.groups = const [],
  this.functions = const {},
  this.actions = const {},
  this.builtinFunctionLines,
  this.builtinSteps,
  this.preamble,
  this.bindings,
  this.toolCalls,
  this.builtinFunctions,
  this.tools = const [],
  this.toolNames = const [],
  this.examples = const [],
  this.toolExamples = const [],
  this.additionalRules = const [],
  this.editMode = false,
  this.inlineMode = false,
  this.records = const [],
  this.state = const {},
  this.allowedActions,
});