Sypha AI Docs
FeaturesTools

attempt_completion

Conclude the active task, summarize accomplishments, and deliver final results for verification.

attempt_completion

The attempt_completion utility signals that Sypha has successfully fulfilled the task requirements. It provides a comprehensive summary of the work performed and can optionally initiate a command to demonstrate the final output.

Parameters

  • result (required): A detailed narrative of the task's outcomes and implemented changes.
  • command (optional): A specific terminal instruction to visualize or verify the result (e.g., npm run test or ls -la dist/).

Functional Workflow

Once the AI determines that all objectives have been met, it utilizes this tool to formally hand over the workspace. All stated accomplishments are presented in a clear Completion Summary block within your conversation history.

The Verification Loop

Submission is not inherently final. If the results do not perfectly align with your expectations, you can provide corrective feedback, and Sypha will instantly resume the task to perform the necessary adjustments.

Implementation Example

Finalizing a Component Refactor

<attempt_completion>
  <result>
    I have completed the reorganization of the UI Library. This update includes:
    1. Standardizing button components across the theme.
    2. Implementing a global layout wrapper.
    3. Resolving several critical linting warnings.
  </result>
  <command>npm run build</command>
</attempt_completion>

Operation Best Practices

  • Audit the Summary: Verify that every requested feature or fix has been documented in the results list.
  • Execution Verification: If a command is suggested, it is often the most efficient way to validate the logic of the changes directly.
  • Context Resumption: When used within a subtask, attempt_completion automatically returns your focus to the parent task's context.

On this page