AIAgentEdgeBuilderIntermediate
Represents an intermediate stage in the construction of a directed edge between two nodes in an AI agent strategy graph. This class provides mechanisms to define conditions and transformations that dictate how data flows and is processed between the nodes.
Parameters
The type of the output data produced by the originating node.
The type of intermediate data produced after transformation or filtering.
The type of input data that the destination node expects.
Functions
Creates an edge that filters assistant messages based on a custom condition and extracts their content.
Creates an edge that filters assistant messages based on a custom condition and provides access to media content.
Filters the intermediate outputs of the ai.koog.agents.core.agent.entity.AIAgentNode based on a specified condition.
Defines a handler to process failure cases in a directed edge strategy by applying a condition to filter intermediate results of type SafeTool.Result.Failure
. This method is used to specialize processing for failure results and to propagate or transform them based on the provided condition.
Creates an edge that filters outputs based on their type.
Creates an edge that filters assistant messages based on a custom condition and extracts their content.
Creates an edge that filters lists of tool call messages based on a custom condition.
Creates an edge that filters lists of tool result messages based on a custom condition.
Filters and transforms the intermediate outputs of the AI agent node based on the success results of a tool operation.
Creates an edge that filters tool call messages for a specific tool.
Creates an edge that filters tool call messages based on a custom condition.
Creates an edge that filters tool call messages for a specific tool and arguments condition.
Creates an edge that filters tool call messages to NOT be a specific tool
Creates an edge that filters tool result messages for a specific tool and result condition.
Transforms the intermediate output of the ai.koog.agents.core.agent.entity.AIAgentNode by applying a given transformation block.