From 83a2cd1ac24ca0feda34ae877aaf31f41b58b86c Mon Sep 17 00:00:00 2001 From: aichat-agent Date: Thu, 1 Oct 2026 14:58:06 +0000 Subject: feat: add built-in subquery tool with hierarchical query ids * Add config options subquery and subquery_max_depth. * Register an internal subquery function that spawns a fresh LLM query with the current model configuration but without the full context. The model selects context numerically (message_indexes) or by text excerpt (excerpts). * Subqueries can use tools, including further nested subqueries up to subquery_max_depth. * Queries and subqueries get hierarchical ids ([0], [0/1], [0/1/2]) that prefix tool-call prints and spinner messages. --- config.example.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.example.yaml') diff --git a/config.example.yaml b/config.example.yaml index 7c367d7..ae249b6 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -17,6 +17,8 @@ function_calling: true # Enables or disables function calling (Globall mapping_tools: # Alias for a tool or toolset fs: 'fs_cat,fs_ls,fs_mkdir,fs_rm,fs_write' use_tools: null # Which tools to use by default. (e.g. 'fs,web_search') +subquery: false # Enable the built-in subquery tool, letting the model spawn fresh context-limited LLM queries. +subquery_max_depth: 3 # Maximum nesting depth of subqueries (the main query counts as depth 1). # ---- prelude ---- repl_prelude: null # Set a default role or session for REPL mode (e.g. role:, session:, :) -- cgit v1.2.3