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

IncomingOutput

The type of the output data produced by the originating node.

IntermediateOutput

The type of intermediate data produced after transformation or filtering.

OutgoingInput

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

IncomingOutput

The type of the output data produced by the originating node.

IntermediateOutput

The type of intermediate data produced after transformation or filtering.

OutgoingInput

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

IncomingOutput

The type of the output data produced by the originating node.

IntermediateOutput

The type of intermediate data produced after transformation or filtering.

OutgoingInput

The type of input data that the destination node expects.

Functions

Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard

Filters and transforms the intermediate outputs of the AI agent node based on the success results of a tool operation.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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"

Link copied to clipboard
Link copied to clipboard