Package org.odinware.odinrunes
Class Context
java.lang.Object
org.odinware.odinrunes.Context
- All Implemented Interfaces:
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The CapturedData class represents a piece of data captured from the user's input. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCapturedData
(String capturedText, String captureMethod) Adds captured data to the context using the specified captured text and capture method.void
deleteCapturedData
(Context.CapturedData capturedDataToDelete) Deletes the specified captured data from the context.Returns the list of captured data in the context.Returns the user profile of the context.void
setUserProfile
(String userProfile) Sets the user profile for the context.
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
addCapturedData
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
Deletes the specified captured data from the context.- Parameters:
capturedDataToDelete
- The captured data to be deleted.
-
getCapturedDataList
Returns the list of captured data in the context.- Returns:
- The list of captured data.
-
getUserProfile
Returns the user profile of the context.- Returns:
- The user profile of the context.
-
setUserProfile
Sets the user profile for the context.- Parameters:
userProfile
- The user profile to be set.
-