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.
Type 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.
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.
Type 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.
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.
Type 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
Applies a transformation to the intermediate output of the edge builder and filters the received tool results based on the provided condition. This function is used to handle tool results as a part of the AI agent's edge flow within the DSL.
Creates an edge that transforms an intermediate output into a Message.User using the provided transform.
Filters the intermediate outputs of the ai.koog.agents.core.agent.entity.AIAgentNode based on a specified condition.
Filters the intermediate outputs of the ai.koog.agents.core.agent.entity.AIAgentNode based on a specified condition.
Filters the intermediate outputs of the ai.koog.agents.core.agent.entity.AIAgentNode based on a specified condition.
Filters the intermediate outputs of the ai.koog.agents.core.agent.entity.AIAgentNode based on a specified condition.
Filters the intermediate outputs of the 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 outputs based on their MessagePart subtype.
Filters and transforms the intermediate outputs of the AI agent node based on the success results of a tool operation.
Creates an edge that transforms an intermediate output into a Message.User using the provided transform.
Creates an edge that filters tool call messages for a specific tool.
Creates an edge that filters tool call messages for a specific tool and arguments condition.
Creates an edge that filters assistant messages containing tool calls, based on a custom condition. The default condition onToolCalls { true } will create a conditional edge checking that there at list one tool call The custom condition onToolCalls { it.tool == "exit" } will create a conditional edge checking that there is tool call with the name "exit"
Transforms the intermediate output of the ai.koog.agents.core.agent.entity.AIAgentNode by applying a given transformation block.
Transforms the intermediate output of the ai.koog.agents.core.agent.entity.AIAgentNode by applying a given transformation block.
Transforms the intermediate output of the ai.koog.agents.core.agent.entity.AIAgentNode by applying a given transformation block.
Transforms the intermediate output of the ai.koog.agents.core.agent.entity.AIAgentNode by applying a given transformation block.
Applies a transformation to the intermediate output of the AIAgentNode without requiring additional context.