Interface: Toolset<TTools>
Makaio Framework / tools-core / Toolset
Interface: Toolset<TTools>
Section titled “Interface: Toolset<TTools>”Defined in: ../../../tools/core/src/types.ts:248
A collection of related tools with shared metadata.
Toolsets provide logical grouping and versioning for tools. Uses AnyToolDefinition to avoid TypeScript variance issues with heterogeneous tool collections.
Example
Section titled “Example”const filesystemToolset: Toolset = { metadata: { name: 'filesystem', description: 'File system operations', version: '1.0.0', }, tools: { readFile: readFileTool, writeFile: writeFileTool, },};Type Parameters
Section titled “Type Parameters”TTools
Section titled “TTools”TTools extends Record<string, AnyToolDefinition> = Record<string, AnyToolDefinition>
Record type mapping tool names to definitions
Properties
Section titled “Properties”configSchema?
Section titled “configSchema?”
optionalconfigSchema?:ZodType<unknown,unknown,$ZodTypeInternals<unknown,unknown>>
Defined in: ../../../tools/core/src/types.ts:256
Optional Zod schema for toolset configuration (used for UI generation)
metadata
Section titled “metadata”metadata:
ToolsetMetadata
Defined in: ../../../tools/core/src/types.ts:250
Toolset metadata
tools:
TTools
Defined in: ../../../tools/core/src/types.ts:253
Map of tool names to definitions