Class AIServiceDescriptor

All Implemented Interfaces:
HasHandlers

public class AIServiceDescriptor extends RefDataClass
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.

See Also:
  • Constructor Details

    • AIServiceDescriptor

      public AIServiceDescriptor()
    • AIServiceDescriptor

      public AIServiceDescriptor(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static AIServiceDescriptor getOrCreateRef(JavaScriptObject jsObj)
    • setDescription

      public AIServiceDescriptor 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. Should be a concise sentence or two.
      Parameters:
      description - New description value. Default value is null
      Returns:
      AIServiceDescriptor instance, for chaining setter calls
    • getDescription

      public String 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

      public AIServiceDescriptor setName(String name)
      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:
      AIServiceDescriptor instance, for chaining setter calls
    • getName

      public String 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