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 TypeMethodDescriptionanswer(ChatRequest request) Produce an answer for one chat turn; the prior conversation is inrequest.history().type()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
Produce an answer for one chat turn; the prior conversation is inrequest.history().
-