Neutrome SDK reference
    Preparing search index...

    Function createToolsExecutor

    • Wraps an executor in a tool loop.

      The returned executor declares tools to the model, runs any it owns, feeds the results back and repeats. Calls to tools it does not own are passed through to the caller untouched, so an outer loop can handle them.

      Parameters

      Returns Executor

      An executor that resolves tool calls before answering.

      export default createToolsExecutor("core/turn-1", [searchTool, calculatorTool]);