Skip to content
Français

defineHarnessToolset

import { defineHarnessToolset } from "@elie-laloum/outpost";

Group tools and nested toolsets under a name so they can be reused across harnesses. Flattens nested sets and rejects duplicate tool names.

Complete example and detailed rules.

  • optionsRequired
    HarnessToolsetOptions
    Toolset name and the tools or nested toolsets it groups.
  • options.nameRequired
    string
    Nonempty name identifying the toolset.
  • options.toolsRequired
    readonly (HarnessTool<unknown> | HarnessToolset)[]
    Tools and nested toolsets to group; nested sets are flattened and duplicate tool names are rejected.

HarnessToolset

export declare function defineHarnessToolset(
  options: HarnessToolsetOptions,
): HarnessToolset;