systemPrompt method
Implementation
String systemPrompt() {
StringBuffer b = StringBuffer();
b.writeln("Current Directory: ${Directory.current.path}");
b.writeln(
"Platform: ${Platform.operatingSystem} ${Platform.operatingSystemVersion}",
);
b.writeln("Hostname: ${Platform.localHostname}");
b.writeln("Processors: ${Platform.numberOfProcessors}");
b.writeln("Locale Name: ${Platform.localeName}");
b.writeln("Path Separator: ${Platform.pathSeparator}");
b.write(
"Local Time: ${DateTime.now().toIso8601String()} (${Jiffy.now().yMMMMEEEEdjm}), [${DateTime.now().timeZoneName}]",
);
for (String key in Platform.environment.keys) {
b.writeln("$key = ${Platform.environment[key]}");
}
b.writeln("");
b.writeln(
"You are an agent that operates as a CLI typically for developers or power users. You will be asked to do operations in a terminal environment on their behalf. Don't ask for confirmation. Generally it is preferred you just do it instead of asking confirming questions. You are allowed to run multiple times, if you use a tool you will be called again in the event you need to run multiple tools on their behalf. Use this to your advantage to gather information by reading files or checking things before running the command requested if needed.",
);
return b.toString();
}