Skip to content

Function: resolveDisabledNativeTools()

Makaio Framework


Makaio Framework / ai-adapters-core / resolveDisabledNativeTools

resolveDisabledNativeTools(requester, adapterName, harnessId?, clientId?): Promise<readonly string[]>

Defined in: ../../../adapters/core/src/utils/resolveDisabledNativeTools.ts:35

Resolve SDK-native tool names disabled by the active harness for an adapter.

When harnessId is provided, fetches that specific harness by ID. Otherwise falls back to the adapter’s default harness via adapterName and optional clientId so that client-scoped harnesses are considered.

Uses optional request semantics so callers can run without harness registration (for example, in lightweight test runtimes).

HarnessRequester

Bus-like requester supporting requestOptional for harness subjects

string

Adapter name used to look up the default harness (fallback path)

string

Optional explicit harness ID; takes precedence over the default lookup

string

Optional client identifier for client-scoped default harness lookup

Promise<readonly string[]>

Disabled native tool names, or an empty array when unavailable