Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
fa3876e
refactor(subagent): modularize subagent orchestration system
whatevertogo Mar 3, 2026
6fdda84
feat: Enhance SubAgent functionality with new configurations and vali…
whatevertogo Mar 3, 2026
621112a
Merge branch 'master' of github.com:AstrBotDevs/AstrBot into refactor…
whatevertogo Mar 3, 2026
0be8591
feat(subagent): add reschedule functionality for subagent tasks and i…
whatevertogo Mar 3, 2026
a2c9cd6
refactor(subagent): enhance type safety and improve error handling in…
whatevertogo Mar 3, 2026
d319843
Use constants for subagent limits and validate IDs
whatevertogo Mar 3, 2026
f688d6b
fix: correct test command in AGENTS.md for clarity
whatevertogo Mar 3, 2026
04bee42
feat(subagent): add boolean parsing utility and enhance subagent conf…
whatevertogo Mar 3, 2026
2987948
fix(subagent): snapshot queued handoffs and improve task indexing
whatevertogo Mar 3, 2026
e17efcf
feat: Implement subagent runtime with task queuing, retry mechanisms,…
whatevertogo Mar 3, 2026
30952c0
update AGENTS.md for testing more
whatevertogo Mar 3, 2026
60577d9
Merge branch 'master' into refactor/subagent-orchestration
whatevertogo Mar 3, 2026
05fc959
refactor: Simplify defaults dictionary construction in MainAgentBuild…
whatevertogo Mar 3, 2026
999c181
Merge branch 'refactor/subagent-orchestration' of github.com:whatever…
whatevertogo Mar 3, 2026
2f38301
fix: 增强技能名称和描述的安全性,防止注入攻击
whatevertogo Mar 3, 2026
d6ad6cd
feat: implement the core main agent logic, configuration, and skill m…
whatevertogo Mar 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ pnpm dev

Runs on `http://localhost:3000` by default.

## Test

```bash
uv run pytest
```

Please run the tests after modifying the code to ensure everything works as expected and to prevent regressions.



## Dev environment tips

1. When modifying the WebUI, be sure to maintain componentization and clean code. Avoid duplicate code.
Expand Down
6 changes: 5 additions & 1 deletion astrbot/core/agent/handoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def __init__(
# Optional provider override for this subagent. When set, the handoff
# execution will use this chat provider id instead of the global/default.
self.provider_id: str | None = None
# Human-readable display name shown in orchestration UI/logs.
self.agent_display_name: str | None = None
# Optional per-subagent max steps override.
self.max_steps: int | None = None
# Note: Must assign after super().__init__() to prevent parent class from overriding this attribute
self.agent = agent

Expand Down Expand Up @@ -62,4 +66,4 @@ def default_parameters(self) -> dict:

def default_description(self, agent_name: str | None) -> str:
agent_name = agent_name or "another"
return f"Delegate tasks to {self.name} agent to handle the request."
return f"Delegate tasks to {agent_name} agent to handle the request."
1 change: 1 addition & 0 deletions astrbot/core/agent/runners/tool_loop_agent_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,7 @@ def _append_tool_call_result(tool_call_id: str, content: str) -> None:
executor = self.tool_executor.execute(
tool=func_tool,
run_context=self.run_context,
tool_call_id=func_tool_id,
**valid_params, # 只传递有效的参数
)

Expand Down
Loading