mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Limit tool calls recursion
This commit is contained in:
@ -210,6 +210,12 @@ export class ToolManager {
|
||||
|
||||
static #INPUT_DELTA_KEY = '__input_json_delta';
|
||||
|
||||
/**
|
||||
* The maximum number of times to recurse when parsing tool calls.
|
||||
* @type {number}
|
||||
*/
|
||||
static RECURSE_LIMIT = 5;
|
||||
|
||||
/**
|
||||
* Returns an Array of all tools that have been registered.
|
||||
* @type {ToolDefinition[]}
|
||||
|
Reference in New Issue
Block a user