Class AgentTaskOutcomeTool
java.lang.Object
io.agentscope.extensions.aistio.adapter.AgentTaskOutcomeTool
Captures intent. Only the adapter is allowed to commit the physical AgentTask lifecycle.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AgentTaskOutcomeTool
public AgentTaskOutcomeTool()
-
-
Method Details
-
submit
@Tool(name="task.submit_result", description="Submit the actual outcome of this AgentTask, then end your turn. succeeded requires the full deliverable in result, not a plan or promise. waiting requires real background task IDs (or control-plane AgentTask IDs for a Team leader). If required evidence or tools are missing, submit blocked with the missing capability and partial result. Submitting this tool does not by itself mark the task successful.") public io.agentscope.core.message.ToolResultBlock submit(io.agentscope.core.agent.RuntimeContext context, @ToolParam(name="outcome",description="succeeded, waiting, blocked or failed") String outcome, @ToolParam(name="result",description="Full deliverable or partial work",required=false) String result, @ToolParam(name="reason",description="Reason for completion, waiting or inability",required=false) String reason, @ToolParam(name="pending_task_ids",description="Background task IDs to collect, or delegated AgentTask IDs for a Team leader",required=false) List<String> pendingTaskIds)
-