Skip to content

filterToolsByMode

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/agent-core/src/tools/tool-profiles.ts

Filter a list of tool definitions down to those allowed by the given mode. Tools not in the profile are omitted. When mode is 'full', returns all tools.

Signature

ts
function filterToolsByMode(tools: T[], mode: TaskMode): T[]

Parameters

NameType
toolsT[]
modeTaskMode

Returns: T[]

Was this page helpful?

Download as PDF