Interface AssistantFunction

All Known Implementing Classes:
ManualAssistantFunction

public interface AssistantFunction
A pluggable capability of the AI assistant (e.g. MANUAL chat over the manual). A function owns its own answering logic; the generic core stores conversations and dispatches a turn to the matching function by type(). Implementations are Spring beans.
  • Method Summary

    Modifier and Type
    Method
    Description
    Produce an answer for one chat turn; the prior conversation is in request.history().
    Stable discriminator persisted on the conversation and sent by the client, e.g.
  • Method Details

    • type

      String type()
      Stable discriminator persisted on the conversation and sent by the client, e.g. "MANUAL".
    • answer

      ChatResponse answer(ChatRequest request)
      Produce an answer for one chat turn; the prior conversation is in request.history().