llmist 9.3.2 → 9.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -8119,7 +8119,9 @@ var init_executor = __esm({
8119
8119
  // Host exports for external gadgets to use host's llmist classes
8120
8120
  hostExports: getHostExportsInternal(),
8121
8121
  // Logger for structured logging (respects CLI's log level/file config)
8122
- logger: this.logger
8122
+ logger: this.logger,
8123
+ // Human input callback for subagents to bubble up input requests
8124
+ requestHumanInput: this.requestHumanInput
8123
8125
  };
8124
8126
  let rawResult;
8125
8127
  if (timeoutMs && timeoutMs > 0) {
@@ -12637,6 +12639,9 @@ function createSubagent(ctx, options) {
12637
12639
  defaultValue: defaultMaxIterations
12638
12640
  });
12639
12641
  let builder = new AgentBuilder2(client).withModel(model).withGadgets(...gadgets).withMaxIterations(maxIterations).withParentContext(ctx);
12642
+ if (ctx.requestHumanInput) {
12643
+ builder = builder.onHumanInput(ctx.requestHumanInput);
12644
+ }
12640
12645
  if (systemPrompt) {
12641
12646
  builder = builder.withSystem(systemPrompt);
12642
12647
  }