--- helpers ---
(tools []fantasy.AgentTool)
| 413 | // --- helpers --- |
| 414 | |
| 415 | func toolNames(tools []fantasy.AgentTool) []string { |
| 416 | names := make([]string, 0, len(tools)) |
| 417 | for _, t := range tools { |
| 418 | names = append(names, t.Info().Name) |
| 419 | } |
| 420 | return names |
| 421 | } |
| 422 | |
| 423 | func findTool(tools []fantasy.AgentTool, name string) fantasy.AgentTool { |
| 424 | for _, t := range tools { |
no test coverage detected