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

Function UserAgent

coderd/x/chatd/chatprovider/useragent.go:16–19  ·  view source on GitHub ↗

UserAgent returns the User-Agent string sent on all outgoing LLM API requests made by Coder's built-in chat (chatd). The format mirrors conventions used by other coding agents so that LLM providers can identify traffic originating from Coder. Example: coder-agents/v2.21.0 (linux/amd64)

()

Source from the content-addressed store, hash-verified

14//
15// Example: coder-agents/v2.21.0 (linux/amd64)
16func UserAgent() string {
17 return fmt.Sprintf("coder-agents/%s (%s/%s)",
18 buildinfo.Version(), runtime.GOOS, runtime.GOARCH)
19}

Calls 1

VersionFunction · 0.92