Feature gap between StreamingChatClientOperations and AbstractLlmOperations
There is a noticeable discrepancy in capabilities between StreamingChatClientOperations and AbstractLlmOperations. Specifically, the streaming implementation has fallen behind in evolution, lacking support for ToolGroup processing and ToolDecorator support. Should we consider refactoring these components to ensure feature parity and consistent architectural evolution?
StreamingChatClientOperations
override fun doTransformStream(
messages: List<Message>,
interaction: LlmInteraction,
llmRequestEvent: LlmRequestEvent<String>?,
): Flux<String> {
return chatClient
.prompt(springAiPrompt)
.toolCallbacks(interaction.tools.toSpringToolCallbacks()) -- tools only
.options(chatOptions)
.stream()
.content()
}
abstract class AbstractLlmOperations(
protected val toolDecorator: ToolDecorator, -- toolDecorator support
val (allTools, llmRequestEvent) = getToolsAndEvent( -- all tools
agentProcess = agentProcess,
interaction = interaction,
action = action,
messages = messages,
outputClass = outputClass,
)
acknoweledged
@zhuyouxiang - Thank you for reporting! Could you please review and try to conduct more testing on PR: gh pr checkout 1375
Thank you, Igor
@igordayen Tested and verified. Thanks for the quick fix!
closing as completed.