java.lang.Object
com.alibaba.cloud.ai.graph.agent.tools.task.TaskTool
All Implemented Interfaces:
BiFunction<TaskTool.Request,org.springframework.ai.chat.model.ToolContext,String>

public class TaskTool extends Object implements BiFunction<TaskTool.Request,org.springframework.ai.chat.model.ToolContext,String>
Tool that enables invoking sub-agents to handle complex, isolated tasks.

Inspired by spring ai TaskTool, this allows the main agent to delegate work to specialized sub-agents, each with their own context and capabilities. Supports both synchronous and background execution.