requestStreamingImpl
suspend fun <T> AIAgentGraphContextBase.requestStreamingImpl(input: String, structureDefinition: StructureDefinition? = null, transformStreamData: suspend (Flow<StreamFrame>) -> Flow<T>): Flow<T>(source)
InternalAgentsApi method. Appends a Message.User with given text to the prompt and requests a streaming response from the LLM.
Return
A Flow of T produced by the streaming LLM response after transformation.
Parameters
input
The user message to append to the prompt.
structureDefinition
An optional structure definition to customize the streaming response.
transformStreamData
A suspend function that transforms the incoming StreamFrame flow into a flow of type T.