Neutrome SDK reference
    Preparing search index...

    Function appendToolInteraction

    • Appends a tool call and its result as one exchange.

      Parameters

      Returns Program

      A new program; the input is left untouched.

      const next = appendToolInteraction(program, {
      callId: call.id,
      name: call.name,
      args: JSON.parse(call.args),
      result: await tool.execute(args, ctx),
      });