Package-level declarations

Types

Link copied to clipboard

Represents a directed edge connecting two nodes in the graph of an AI agent strategy. This edge facilitates the transmission of data between a source node and a destination node, allowing transformation or filtering of output values from the source node before they reach the destination node.

Link copied to clipboard
abstract class AIAgentNodeBase<Input, Output>

Represents an abstract node in an AI agent strategy graph, responsible for executing a specific operation and managing directed edges to other nodes.

Link copied to clipboard
Link copied to clipboard

Concurrent-safe key-value storage for an agent. You can create typed keys for your data using the createStorageKey function and set and retrieve data using it by calling set and get.

Link copied to clipboard
data class AIAgentStorageKey<T : Any>(val name: String)
Link copied to clipboard
class AIAgentStrategy(val name: String, val nodeStart: StartAIAgentNodeBase<String>, val nodeFinish: FinishAIAgentNodeBase<String>, toolSelectionStrategy: ToolSelectionStrategy) : AIAgentSubgraph<String, String>

Represents a strategy for managing and executing AI agent workflows built as subgraphs of interconnected nodes.

Link copied to clipboard
open class AIAgentSubgraph<Input, Output>(val name: String, val start: StartAIAgentNodeBase<Input>, val finish: FinishAIAgentNodeBase<Output>, toolSelectionStrategy: ToolSelectionStrategy) : AIAgentNodeBase<Input, Output>

AIAgentSubgraph represents a structured subgraph within an AI agent workflow. It serves as a logical segment containing a defined starting and ending point. The subgraph is responsible for executing tasks in a step-by-step manner, managing iterations, and handling tool selection strategies.

Link copied to clipboard
Link copied to clipboard
sealed interface ToolSelectionStrategy

Represents a strategy to select a subset of tools to be used in a subgraph during its execution.

Functions

Link copied to clipboard