Function: endpointSupportsTools()
endpointSupportsTools(
endpoint):boolean
Return whether a discovered endpoint can be used for a tool-calling chat.
Parameters
Section titled “Parameters”endpoint
Section titled “endpoint”class?
Section titled “class?”"chat-thinking" | "chat-balanced" | "chat-fast" | "embedding" = ...
description?
Section titled “description?”string = ...
dimension?
Section titled “dimension?”number = ...
displayName?
Section titled “displayName?”string = ...
family?
Section titled “family?”string = ...
modelServiceName?
Section titled “modelServiceName?”string = ...
string = ...
profile?
Section titled “profile?”{ cost?: number; quality?: number; speed?: number; } = ...
profile.cost?
Section titled “profile.cost?”number = ...
profile.quality?
Section titled “profile.quality?”number = ...
profile.speed?
Section titled “profile.speed?”number = ...
reasoningEfforts?
Section titled “reasoningEfforts?”("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[] = ...
serviceNames?
Section titled “serviceNames?”Record<string, string> = ...
state?
Section titled “state?”string = ...
status?
Section titled “status?”{ deprecated: boolean; } = ...
status.deprecated
Section titled “status.deprecated”boolean = ...
supportsTools?
Section titled “supportsTools?”boolean = ...
string = ...
Returns
Section titled “Returns”boolean