From 69759767f569b7acd9c37bcc11d9b1da5d90b4cb Mon Sep 17 00:00:00 2001 From: Matthew Wright Date: Mon, 15 Jun 2026 11:40:01 -0400 Subject: [PATCH] maxSubSessionTokens and maxDelegationDepth config settings --- salt/soc/defaults.yaml | 2 ++ salt/soc/soc_soc.yaml | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/salt/soc/defaults.yaml b/salt/soc/defaults.yaml index c9399eab4..b74e117db 100644 --- a/salt/soc/defaults.yaml +++ b/salt/soc/defaults.yaml @@ -1508,6 +1508,8 @@ soc: assistant: systemPromptAddendum: "" systemPromptAddendumMaxLength: 50000 + maxSubSessionTokens: 0 + maxDelegationDepth: 0 adapters: - name: SOAI protocol: securityonion_ai_cloud diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index b2ac6d175..2b4b54b7f 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -714,6 +714,16 @@ soc: description: Maximum length of the system prompt addendum. Longer prompts will be truncated. global: True advanced: True + maxSubSessionTokens: + description: Maximum number of output tokens a delegated sub-session may generate across all of its turns. When the budget is reached, the sub-agent is halted and its result is returned to the parent agent. Set to 0 to disable the limit. + global: True + advanced: True + forcedType: int + maxDelegationDepth: + description: Maximum delegation nesting depth for sub-agents. For example, a value of 2 lets the main agent delegate to a sub-agent that may itself delegate one level deeper. Any deeper delegation is refused and the requesting agent continues without it. Set to 0 to disable the limit. + global: True + advanced: True + forcedType: int adapters: description: Configuration for AI adapters used by the Onion AI assistant. Please see documentation for help on which fields are required for which protocols. global: True