booths 2.0.0-0 → 2.0.0-1
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 +22 -4
- package/dist/index.cjs +52 -52
- package/dist/index.d.ts +9 -2
- package/dist/index.js +1095 -1092
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -764,6 +764,7 @@ export declare class CoreBooth<T> {
|
|
|
764
764
|
llmAdapter: LLMAdapter<T>;
|
|
765
765
|
sessionHistory?: ResponseInput;
|
|
766
766
|
endInteractionLoopMarker?: string;
|
|
767
|
+
loopLimit?: number;
|
|
767
768
|
});
|
|
768
769
|
}
|
|
769
770
|
|
|
@@ -774,9 +775,15 @@ export declare class CoreBooth<T> {
|
|
|
774
775
|
*
|
|
775
776
|
* @param llmAdapter - The LLM adapter for communication with the language model.
|
|
776
777
|
* @param boothConfig - The configuration for the single booth to be used.
|
|
778
|
+
* @param options - Optional configuration for the CoreBooth instance.
|
|
779
|
+
* @param options.endInteractionLoopMarker - Custom marker to signal end of interaction loop.
|
|
780
|
+
* @param options.loopLimit - Maximum number of interaction loop iterations (default: 10).
|
|
777
781
|
* @returns A fully configured CoreBooth instance.
|
|
778
782
|
*/
|
|
779
|
-
export declare function createCoreBooth<T>(llmAdapter: LLMAdapter<T>, boothConfig: BoothConfig
|
|
783
|
+
export declare function createCoreBooth<T>(llmAdapter: LLMAdapter<T>, boothConfig: BoothConfig, options?: {
|
|
784
|
+
endInteractionLoopMarker?: string;
|
|
785
|
+
loopLimit?: number;
|
|
786
|
+
}): CoreBooth<T>;
|
|
780
787
|
|
|
781
788
|
/**
|
|
782
789
|
* Creates a `route_to_booth` tool module that can be used by the LLM to switch the conversation
|
|
@@ -902,7 +909,7 @@ export declare class InteractionProcessor<T> {
|
|
|
902
909
|
* @param toolRegistry - The registry for available tools.
|
|
903
910
|
* @param llmAdapter - The adapter for interacting with the LLM.
|
|
904
911
|
*/
|
|
905
|
-
constructor(boothRegistry: BoothRegistry, boothPlugins: BoothPluginRegistry, toolRegistry: ToolRegistry, llmAdapter: LLMAdapter<T
|
|
912
|
+
constructor(boothRegistry: BoothRegistry, boothPlugins: BoothPluginRegistry, toolRegistry: ToolRegistry, llmAdapter: LLMAdapter<T>, loopLimit?: number);
|
|
906
913
|
/**
|
|
907
914
|
* Sends a message to the LLM and processes the response through the interaction loop.
|
|
908
915
|
* This involves running pre-loop, pre-send, response-received, and post-loop plugin hooks.
|