Class WorkspaceFileAIHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workspaces.documents.WorkspaceFileAIHelper
- All Implemented Interfaces:
LogEnabled,Component,Serviceable
Helper class for AI-related functionalities in workspace.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateFileDescription(File file) Generate the description and set it to the filebooleanGet the value of the configuration paramvoidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon role -
SUMMARY_MAX_LENGTH
The summary max lentgh
-
-
Constructor Details
-
WorkspaceFileAIHelper
public WorkspaceFileAIHelper()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
isAutomaticGenerationEnabled
Get the value of the configuration param- Returns:
- true if it's true, false if it's false
-
generateFileDescription
Generate the description and set it to the file- Parameters:
file- the file to summarize- Returns:
- String the generated summary
- Throws:
Exception- if an error occurred
-