SGR Custom Final Answer Tool icon

SGR Custom Final Answer Tool

Custom configurable Final Answer tool for SGR Agent

SGR Custom Final Answer Tool

AI-generated

Summary

Finalize a research task and complete agent execution by providing a structured comprehensive final answer with reasoning, completed steps, and status.

Inputs

  • Description (required) — Text explaining the purpose of the tool, shown to the AI model; typically describes that this tool finalizes the research task and completes agent execution after all steps are done.
  • JSON Schema (required) — A JSON Schema object defining the structure for the tool's parameters, requiring an object with: 'reasoning' (string) explaining why the task is complete and how the answer was verified; 'completed_steps' (array of 1 to 5 strings) summarizing completed steps including verification; 'answer' (string) providing a comprehensive final answer with exact factual details; and 'status' (string enum of 'COMPLETED' or 'FAILED') indicating the task completion status.

Output shape

a single JSON object output containing the structure confirmed by the JSON Schema, with fields: reasoning (string), completed_steps (array of strings), answer (string), and status (string - 'COMPLETED' or 'FAILED').

The output JSON is stringified with indentation and intended to be consumed as the final answer tool output. This custom tool disables the built-in 'Final Answer Tool' and 'Clarification Tool' in the SGR Agent to prevent conflicts. Inputs must validate against the provided JSON Schema, otherwise the node will raise errors.

Discussion