IsChatAgent reports whether name uses the chat-agent suffix convention.
(name string)
| 16 | |
| 17 | // IsChatAgent reports whether name uses the chat-agent suffix convention. |
| 18 | func IsChatAgent(name string) bool { |
| 19 | return strings.HasSuffix(strings.ToLower(name), Suffix) |
| 20 | } |
| 21 | |
| 22 | // FindChatAgent picks the best workspace agent for a chat session from the |
| 23 | // provided candidates. It applies these rules in order: |
no outgoing calls