AgentHelpList returns a newline-separated bulleted list of agents for help text.
()
| 373 | |
| 374 | // AgentHelpList returns a newline-separated bulleted list of agents for help text. |
| 375 | func AgentHelpList() string { |
| 376 | lines := make([]string, len(Agents)) |
| 377 | for i, h := range Agents { |
| 378 | lines[i] = fmt.Sprintf(" - %s (%s)", h.Name, h.ID) |
| 379 | } |
| 380 | return strings.Join(lines, "\n") |
| 381 | } |
| 382 | |
| 383 | // AgentNames returns the display names of all agents for prompting. |
| 384 | func AgentNames() []string { |