compose method
Composes the system prompt for a mission with registry tools.
Implementation
String compose(McpToolRegistry registry) {
final buffer = StringBuffer();
if (playbook.isNotEmpty) {
buffer.writeln(playbook);
buffer.writeln();
}
buffer.writeln('# Available tools');
for (final entry in registry.all.entries) {
final tool = entry.value;
buffer.writeln('- ${entry.key}: ${tool.description}');
}
return buffer.toString();
}