feat: add agent subagent support, bash timeout, context manager improvements, and benchmark script

- Add agent_set_is_subagent and agent_set_tool_registry to agent API for subagent support
- Add timeout_seconds parameter to r_bash_execute to prevent hanging processes
- Refactor context_manager truncation logic with dynamic ratio-based truncation and total size calculation
- Add messages_to_json_string helper and r_config_get_max_tokens accessor
- Introduce tool_registry_get_specialized for type-filtered tool registries
- Add completion_phrases and passive_phrases detection to agent completion logic
- Suppress spinner in http_client when stderr is not a TTY
- Add comprehensive agent_benchmark.py with TestCase framework and logging
This commit is contained in:
2026-01-29 05:01:05 +00:00
parent a72e4116b1
commit 8215d7012d
31 changed files with 922 additions and 260 deletions
+2 -1
View File
@@ -34,7 +34,8 @@ SRC_TOOLS = $(TOOLSDIR)/tools_init.c \
$(TOOLSDIR)/tool_network.c \
$(TOOLSDIR)/tool_dns.c \
$(TOOLSDIR)/tool_automation.c \
$(TOOLSDIR)/tool_csv.c
$(TOOLSDIR)/tool_csv.c \
$(TOOLSDIR)/tool_agent.c
SRC = $(SRC_CORE) $(SRC_TOOLS)