Package-level declarations
Types
DSL for building a stage action log. Obtained via StageScope.logAction.
Result of a successful agent run produced by StageScope.runAgent.
A successful CompletedAgentRun together with the PreparedAgentRun.runData that produced it, returned by the generic StageScope.runAgentWithRetries.
An agent paired with caller-supplied per-attempt data, returned by the agentProvider of the generic StageScope.runAgentWithRetries so the data can be matched back to a successful run.
Stop condition for the re-sampling StageScope.runAgentWithRetries overloads.
The single unified scope for the training DSL.
DslMarker for the training DSL; scopes receiver resolution within builders like ActionLogBuilder.
Functions
Executes an LLM prompt with consumption tracking. Creates a PromptExecutionRecord as a leaf record, recording elapsed time and consumption. On success, returns the raw LLM response messages.
.getOrThrow() shortcut over executePrompt; throws on a recorded execution failure.
Executes a structured LLM prompt with consumption tracking. Creates a PromptExecutionRecord and returns the deserialized structure.
.getOrThrow() shortcut over executePromptStructured; throws on a recorded execution failure.
Convenience wrapper that maps a collection, enclosing it in a dedicated stage. Pros: automatically sets substagesTotal to enable ETC calculation.
.getOrThrow() shortcut over StageScope.runAgent; throws on a recorded run failure.
Convenience wrapper that iterates a collection, enclosing it in a dedicated stage. Pros: automatically sets substagesTotal to enable ETC calculation.
.getOrThrow() shortcut over StageScope.runStage. See its KDoc for the metrics preset conventions; the default and parameter semantics are identical.
Serializes data with defaultExperimentsJson and stores it as this stage's additional data via StageScope.setAdditionalDataJson. Overwrites any previously set value.
Recursive string truncation over the entire JSON element tree