Package com.smartgwt.client.ai
Class AIServiceDescriptor
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.ai.AIServiceDescriptor
- All Implemented Interfaces:
HasHandlers
Descriptor for an AI service that can be registered with
AI.registerAIService() (globally) or Canvas.registerAIService() (component-scoped) so that the AIDelegator can choose to invoke it on behalf of the user. See the AI Assist overview for the full registration and routing model.
-
Field Summary
Fields inherited from class com.smartgwt.client.core.RefDataClass
idFields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNatural-language description of what this service does, shown to the AI so it can decide whether this service is appropriate for a given user request.getName()Unique name for this service (e.g.static AIServiceDescriptorgetOrCreateRef(JavaScriptObject jsObj) setDescription(String description) Natural-language description of what this service does, shown to the AI so it can decide whether this service is appropriate for a given user request.Unique name for this service (e.g.Methods inherited from class com.smartgwt.client.core.RefDataClass
getRef, getRef, internalSetIDMethods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
AIServiceDescriptor
public AIServiceDescriptor() -
AIServiceDescriptor
-
-
Method Details
-
getOrCreateRef
-
setDescription
Natural-language description of what this service does, shown to the AI so it can decide whether this service is appropriate for a given user request. Should be a concise sentence or two.- Parameters:
description- New description value. Default value is null- Returns:
AIServiceDescriptorinstance, for chaining setter calls
-
getDescription
Natural-language description of what this service does, shown to the AI so it can decide whether this service is appropriate for a given user request. Should be a concise sentence or two.- Returns:
- Current description value. Default value is null
-
setName
Unique name for this service (e.g. "answerEngine", "buildUI", "legacyAssist"). Used as the key in the registry and as the identifier the AI selects.- Parameters:
name- New name value. Default value is null- Returns:
AIServiceDescriptorinstance, for chaining setter calls
-
getName
Unique name for this service (e.g. "answerEngine", "buildUI", "legacyAssist"). Used as the key in the registry and as the identifier the AI selects.- Returns:
- Current name value. Default value is null
-