Package-level declarations
Types
Provides an implementation of ProvideSubgraphResult
for handling StringSubgraphResult
.
Represents an abstract result type for subgraph provisioning tools.
Represents a concrete implementation of ProvideSubgraphResult specialized to handle verified subgraph results.
Represents the result of subgraphWithRetry.
The result which subgraphs can return.
Represents the result of a subgraph operation encapsulated as a string.
The result which subgraphs can return.
Represents the result of a verified subgraph execution.
Functions
Creates and configures a ai.koog.agents.core.agent.entity.AIAgentStrategy for executing a chat interaction process. The agent orchestrates interactions between different stages, nodes, and tools to handle user input, execute tools, and provide responses. Allows the agent to interact with the user in a chat-like manner.
Creates a ReAct AI agent strategy that alternates between reasoning and execution stages to dynamically process tasks and request outputs from an LLM.
Creates a subgraph with retry mechanism, allowing a specified action subgraph to be retried multiple times until a given condition is met or the maximum number of retries is reached.
Creates a subgraph that includes retry functionality based on a given condition and a maximum number of retries. If the condition is not met after the specified retries and strict mode is enabled, an exception is thrown. Unlike subgraphWithRetry, this function directly returns the output value instead of a RetrySubgraphResult.
subgraphWithTask with StringSubgraphResult result.
Creates a subgraph with a predefined task definition using the provided tools, model, and parameters.
Creates a subgraph, which performs one specific task, defined by defineTask, using the tools defined by toolSelectionStrategy. When LLM believes that the task is finished, it will call finishTool, generating ProvidedResult as its argument. The generated ProvidedResult is the result of this subgraph. The subgraph returns a wrapper SafeTool.Result to handle cases when the model didn't reach the finish condition or didn't generate a final ProvidedResult due to an error (reported as SafeTool.Result.Failure)
Creates a subgraph with a task definition and specified tools. The subgraph uses the provided tools to process input and execute the defined task, eventually producing a result through the provided finish tool.
subgraphWithTask with VerifiedSubgraphResult result. It verifies if the task was performed correctly or not, and describes the problems if any.
Constructs a subgraph within an AI agent's strategy graph with additional verification capabilities.