Package-level declarations
Types
A functional interface representing an action that can be performed on a builder in a chainable manner. It defines a transformation from one builder type to another, allowing the construction process to be extended or modified incrementally.
Represents a functional interface designed to apply configurations of type T. This interface allows for standardized handling of configuration operations across various implementations or systems.
Functions
Executes a suspending block as a bridge from blocking (Java) code into the coroutine world. It uses AGENT_CONTEXT_ELEMENT to track the current logical dispatcher across blocking boundaries and avoid deadlocks in two scenarios:
Executes the given suspending block of code on the LLM dispatcher (suitable for IO / LLM communication) derived from the provided executorService, or falls back to Dispatchers.IO if none is supplied.
Executes a given suspending block of code within a coroutine context on a strategy dispatcher that is determined by the provided executorService . If no executorService is supplied, it defaults to the AIAgentConfig.strategyExecutorService or falls back to Dispatchers.Default if none is configured.
Submits a block of code to the main dispatcher for execution.