Package org.ametys.plugins.ai.provider
Class AITextModelEnumerator
java.lang.Object
org.ametys.plugins.ai.provider.AITextModelEnumerator
- All Implemented Interfaces:
Enumerator<String>,DeferredServiceable,Component
public class AITextModelEnumerator
extends Object
implements Enumerator<String>, DeferredServiceable, Component
Enumerates possible models depending on chosen aiprovider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeferredService(ServiceManager manager) Pass theServiceManagerused to access other components.Provides the enumerated values with their optional label.getEntries(Map<String, Object> contextualParameters) Provides the enumerated values with their optional label.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.runtime.model.Enumerator
getConfiguration, getEntry, getEntry
-
Field Details
-
ROLE
Avalon role
-
-
Constructor Details
-
AITextModelEnumerator
public AITextModelEnumerator()
-
-
Method Details
-
deferredService
Description copied from interface:DeferredServiceablePass theServiceManagerused to access other components.- Specified by:
deferredServicein interfaceDeferredServiceable- Parameters:
manager- TheServiceManagerwhich thisDeferredServiceableuses. Must not benull.- Throws:
ServiceException- if an error occurs
-
getEntries
Description copied from interface:EnumeratorProvides the enumerated values with their optional label.- Specified by:
getEntriesin interfaceEnumerator<String>- Returns:
- the enumerated values and their label.
- Throws:
Exception- if an error occurs.
-
getEntries
public Map<String,I18nizableText> getEntries(Map<String, Object> contextualParameters) throws ExceptionDescription copied from interface:EnumeratorProvides the enumerated values with their optional label.- Specified by:
getEntriesin interfaceEnumerator<String>- Parameters:
contextualParameters- Contextual parameters that may change enumeration. See enumerator implementation to see available parameters.- Returns:
- the enumerated values and their label.
- Throws:
Exception- if an error occurs.
-