Package-level declarations

Types

Link copied to clipboard
@Serializable(with = RatioSerializer::class)
data class Ratio(val top: Int, val bottom: Int)

Represents a ratio of top out of bottom, serialized as a human-readable string like "3 / 10 (30.00%)".

Link copied to clipboard
object RatioSerializer : KSerializer<Ratio>

Serializes Ratio as its toString string form (e.g. "3 / 10 (30.00%)").

Link copied to clipboard
class ResilientPath(path: Path)

A wrapper around Path whose write operations retry on transient I/O failures.

Properties

Link copied to clipboard
val koogJson: Json

Lenient Json instance for parsing LLM-produced JSON (e.g. ACE playbook deltas).

Functions

Link copied to clipboard

Wraps this Path in a ResilientPath, adding retry-on-failure semantics to its write operations.

Link copied to clipboard
inline fun <T> Result<T>.mapError(transform: (e: Throwable) -> Throwable): Result<T>

Transforms the exception wrapped in this Result, if it is an exception. Otherwise, preserves the same Result.

Link copied to clipboard

Formats this path as a clickable file:// URI for log output, or file://<file not specified> when the receiver is null.