PromptSpec constructor
const
PromptSpec({
- required String root,
- required Map<
String, PromptEntry> components, - List<
PromptGroup> groups = const [], - Map<
String, PromptEntry> functions = const {}, - Map<
String, PromptEntry> actions = const {}, - List<
String> ? builtinFunctionLines, - Map<
String, PromptEntry> ? builtinSteps, - String? preamble,
- bool? bindings,
- bool? toolCalls,
- bool? builtinFunctions,
- List<
PromptTool> tools = const [], - List<
String> toolNames = const [], - List<
String> examples = const [], - List<
String> toolExamples = const [], - List<
String> additionalRules = const [], - bool editMode = false,
- bool inlineMode = false,
- List<
BoundRecord> records = const [], - Map<
String, Object?> state = const {}, - 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,
});