Class SuggestChangeResult

java.lang.Object
uno.anahata.ai.nb.model.coding.SuggestChangeResult
All Implemented Interfaces:
StatefulResource, UserFeedback

public class SuggestChangeResult extends Object implements StatefulResource, UserFeedback
Represents the result of a proposeChange operation, indicating whether the user accepted or cancelled the change, and including the updated file information if accepted.
Author:
Anahata
  • Constructor Details

    • SuggestChangeResult

      public SuggestChangeResult()
  • Method Details

    • getResourceId

      public String getResourceId()
      Gets the resource ID from the nested FileInfo object. This allows the ContextManager to treat this result as a stateful resource only when a file was actually modified.
      Specified by:
      getResourceId in interface StatefulResource
      Returns:
      The file path if the change was accepted, otherwise null.
    • getLastModified

      public long getLastModified()
      Specified by:
      getLastModified in interface StatefulResource
    • getSize

      public long getSize()
      Specified by:
      getSize in interface StatefulResource
    • getUserFeedback

      public String getUserFeedback()
      Specified by:
      getUserFeedback in interface UserFeedback
    • toString

      public String toString()
      Overrides:
      toString in class Object