plugin(hook): add task tool execution hooks and command context tracking (#5642)

This commit is contained in:
Spoon
2025-12-17 02:28:09 +01:00
committed by GitHub
parent a6a8f41fd3
commit b8a8fb0de6
4 changed files with 45 additions and 22 deletions

View File

@@ -26,6 +26,7 @@ export const TaskTool = Tool.define("task", async () => {
prompt: z.string().describe("The task for the agent to perform"),
subagent_type: z.string().describe("The type of specialized agent to use for this task"),
session_id: z.string().describe("Existing Task session to continue").optional(),
command: z.string().describe("The command that triggered this task").optional(),
}),
async execute(params, ctx) {
const agent = await Agent.get(params.subagent_type)