feat: add spawn tracker and deepsearch tool with configurable depth limits
Implement spawn_tracker module to enforce recursive agent spawning limits via R_MAX_SPAWN_DEPTH and R_MAX_TOTAL_SPAWNS environment variables, replacing the previous max_subagents parameter in tool_agent.c. Add tool_deepsearch.c implementing an iterative multi-query research algorithm with configurable system message, and register the new source files in Makefile build targets.
This commit is contained in:
@@ -31,4 +31,9 @@ bool r_config_set_session_id(r_config_handle cfg, const char *session_id);
|
||||
|
||||
const char *r_config_get_system_message(r_config_handle cfg);
|
||||
|
||||
int r_config_get_max_spawn_depth(r_config_handle cfg);
|
||||
int r_config_get_max_total_spawns(r_config_handle cfg);
|
||||
|
||||
const char *r_config_get_deepsearch_system_message(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user