接口 UserInputBase

所有已知实现类:
StreamUserInput

public interface UserInputBase
Strategy interface for handling user input from different sources. Enables pluggable input implementations such as terminal console, web UI, or programmatic sources. Implementations convert raw user input into UserInputData containing both content blocks and optional structured data, maintaining consistency across different input channels.
  • 方法概要

    修饰符和类型
    方法
    说明
    reactor.core.publisher.Mono<UserInputData>
    handleInput(String agentId, String agentName, List<Msg> contextMessages, Class<?> structuredModel)
    Handle user input and return the input data.
  • 方法详细资料

    • handleInput

      reactor.core.publisher.Mono<UserInputData> handleInput(String agentId, String agentName, List<Msg> contextMessages, Class<?> structuredModel)
      Handle user input and return the input data.
      参数:
      agentId - The agent identifier
      agentName - The agent name
      contextMessages - Optional messages to display before prompting (e.g., assistant response)
      structuredModel - Optional class for structured input format
      返回:
      Mono containing the user input data