onAssistantMessageWithMedia
infix fun <IncomingOutput, IntermediateOutput, OutgoingInput> AIAgentEdgeBuilderIntermediate<IncomingOutput, IntermediateOutput, OutgoingInput>.onAssistantMessageWithMedia(block: suspend (Message.Assistant) -> Boolean): AIAgentEdgeBuilderIntermediate<IncomingOutput, MediaContent, OutgoingInput>(source)
Creates an edge that filters assistant messages based on a custom condition and provides access to media content.
Parameters
block
A function that evaluates whether to accept an assistant message with media