| Name | Type | Description |
|---|---|---|
host* | str | None | A hostname, or |
Return whether a parsed hostname is the LangSmith managed gateway.
Matches the host exactly or as a subdomain (org-scoped gateway URLs). The
suffix match requires a dot boundary, so notsmith.langchain.com does not
qualify; a host that merely contains the gateway name earlier in the
string (smith.langchain.com.evil.example) is not a suffix and is
likewise rejected.
Case and a trailing root dot are normalized here rather than left to the caller. Both callers reach this from a different parser, and a precondition enforced only by a comment in each caller is the way the two drift apart.