MCPcopy Index your code
hub / github.com/coder/coder / IsChatAgent

Function IsChatAgent

coderd/x/chatd/internal/agentselect/agentselect.go:18–20  ·  view source on GitHub ↗

IsChatAgent reports whether name uses the chat-agent suffix convention.

(name string)

Source from the content-addressed store, hash-verified

16
17// IsChatAgent reports whether name uses the chat-agent suffix convention.
18func 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:

Callers 2

TestIsChatAgentFunction · 0.92
FindChatAgentFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsChatAgentFunction · 0.74