onIsInstance
open fun <OutputSubtype : IntermediateOutput> onIsInstance(clazz: ERROR CLASS: Symbol not found for Class<OutputSubtype>): FullAgentEdgeBuilder<IncomingOutput, OutputSubtype, OutgoingInput>(source)
Filters the outputs of the current processing edge based on their type, forwarding only those that are instances of the specified class.
Return
A builder instance allowing further configuration or chaining of processing steps within the agent's processing graph.
Parameters
clazz
The class instance used to check the type of intermediate outputs. Only outputs that are instances of this class will be forwarded.
open fun <CompatibleOutput : OutgoingInput> onIsInstance(clazz: ERROR CLASS: Symbol not found for Class<CompatibleOutput>): CompatibleFullAgentEdgeBuilder<IncomingOutput, CompatibleOutput, OutgoingInput>(source)
Filters intermediate outputs to only process those that are instances of the specified class type.
Return
A builder instance configured to handle the filtered and casted outputs, enabling further processing or chaining of transformations.
Parameters
clazz
The Class object representing the type to filter by and cast to.