Interface AiAssistantService

All Known Implementing Classes:
AiAssistantServiceImpl

public interface AiAssistantService
Stateless, programmatic access to the AI assistant.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    send(String message)
    Sends a message to the chat model and blocks until the full reply is produced.
    reactor.core.publisher.Flux<String>
    stream(String message)
    Streams the chat model's reply as a flux of text chunks.
  • Method Details

    • send

      @Nullable String send(String message)
      Sends a message to the chat model and blocks until the full reply is produced.
      Parameters:
      message - user message
      Returns:
      full reply text
    • stream

      reactor.core.publisher.Flux<String> stream(String message)
      Streams the chat model's reply as a flux of text chunks.
      Parameters:
      message - user message
      Returns:
      flux emitting reply chunks in order