booths 2.0.0-0 → 2.0.0-2

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/README.md CHANGED
@@ -479,15 +479,16 @@ Factory that wires an `LLMAdapter`, a `BoothConfig`, and internal registries/plu
479
479
  function createCoreBooth(
480
480
  adapter: LLMAdapter<any>,
481
481
  booth: BoothConfig,
482
- options?: { endInteractionLoopMarker?: string }
482
+ options?: { endInteractionLoopMarker?: string; loopLimit?: number }
483
483
  ): CoreBooth
484
484
  ```
485
485
 
486
486
  #### Options
487
487
 
488
- | Name | Type | Default | Description |
489
- | -------------------------- | -------- | -----------------------------: | ----------------------------------------------------- |
490
- | `endInteractionLoopMarker` | `string` | `"__awaiting_user_response__"` | Marker used by plugins to determine when a turn ends. |
488
+ | Name | Type | Default | Description |
489
+ | -------------------------- | -------- | -----------------------------: | --------------------------------------------------------------------- |
490
+ | `endInteractionLoopMarker` | `string` | `"__awaiting_user_response__"` | Marker used by plugins to determine when a turn ends. |
491
+ | `loopLimit` | `number` | `10` | Maximum number of interaction loop iterations before stopping. |
491
492
 
492
493
  #### Examples
493
494
 
@@ -505,6 +506,23 @@ const coreBooth = createCoreBooth(adapter, pirateBooth, {
505
506
  });
506
507
  ```
507
508
 
509
+ **Custom loop limit**
510
+
511
+ ```ts
512
+ const coreBooth = createCoreBooth(adapter, pirateBooth, {
513
+ loopLimit: 20, // Allow up to 20 interaction loop iterations
514
+ });
515
+ ```
516
+
517
+ **Multiple options**
518
+
519
+ ```ts
520
+ const coreBooth = createCoreBooth(adapter, pirateBooth, {
521
+ endInteractionLoopMarker: '__custom_marker__',
522
+ loopLimit: 15,
523
+ });
524
+ ```
525
+
508
526
  ---
509
527
 
510
528
  ### InteractionProcessor