create Object Stream If Possible
abstract fun <O> createObjectStreamIfPossible(messages: List<Message>, interaction: LlmInteraction, outputClass: Class<O>, agentProcess: AgentProcess, action: Action?): <Error class: unknown class><<Error class: unknown class><O>>
Try to create a streaming list of objects in the context of an AgentProcess. Return a Flux that may error if the LLM does not have enough information to create objects. Streaming equivalent of createObjectIfPossible().
Return
Flux of Result
Parameters
messages
messages
interaction
Llm options and tool callbacks to use, plus unique identifier
output Class
Class of the output objects
agent Process
Agent process we are running within
action
Action we are running within if we are running within an action