Class Context

java.lang.Object
org.odinware.odinrunes.Context
All Implemented Interfaces:
Serializable

public class Context extends Object implements Serializable
The Context class represents the context in which the GPT request is made. It contains captured data and user options that will be used to construct the request.
See Also:
  • Constructor Details

    • Context

      public Context()
  • Method Details

    • addCapturedData

      public void addCapturedData(String capturedText, String captureMethod)
      Adds captured data to the context using the specified captured text and capture method.
      Parameters:
      capturedText - The text captured from the user's input.
      captureMethod - The method used to capture the text (e.g., clipboard, OCR).
    • deleteCapturedData

      public void deleteCapturedData(Context.CapturedData capturedDataToDelete)
      Deletes the specified captured data from the context.
      Parameters:
      capturedDataToDelete - The captured data to be deleted.
    • getCapturedDataList

      public List<Context.CapturedData> getCapturedDataList()
      Returns the list of captured data in the context.
      Returns:
      The list of captured data.
    • getUserProfile

      public String getUserProfile()
      Returns the user profile of the context.
      Returns:
      The user profile of the context.
    • setUserProfile

      public void setUserProfile(String userProfile)
      Sets the user profile for the context.
      Parameters:
      userProfile - The user profile to be set.