lloyal-agents API Reference
    Preparing search index...

    Function createToolkit

    • Aggregate an array of Tool instances into a toolkit

      Builds both the dispatch map and the JSON schema string from the tool array. Pass the result directly to AgentPoolOptions and AgentTaskSpec.

      Parameters

      • tools: Tool<Record<string, unknown>>[]

        Tool instances to aggregate

      Returns Toolkit

      Toolkit with toolMap and toolsJson

      const { toolMap, toolsJson } = createToolkit([
      new SearchTool(chunks, reranker),
      new ReadFileTool(resources),
      new GrepTool(resources),
      ]);