Training Resources
Shared execution resources created once per training session.
Holds the tracked agent, the injected execution collaborators (consumption capture, failure analysis, per-item context, agent invocation), and configuration shared across all scope instances.
These collaborators (failureAnalyzer, consumptionCollector, capturingExecutorFactory, runAgentAttempt, withItemContext) are supplied by the app; the defaults make the resources usable on their own (no consumption, no provider-specific recognition, plain agent runs).
Constructors
Properties
Truncation applied to action-log strings recorded during the session.
Wraps a delegate executor into a consumption-capturing one, created once per leaf prompt call.
Returns the consumption accumulated by the tracked agent since the last call (cleared each call).
The training dataset iterated by the DSL.
Recognizes caught exceptions into the project's failure taxonomy.
Scores an agent's output against its dataset item; higher is better.
Session-level retry policy applied inside leaf primitives (runAgent / executeWithTrackedPromptExecutor).
Serializers for dataset items and agent outputs used when recording runs.
Executor used for the session's leaf prompt calls (executePrompt and variants).
The agent being trained/evaluated; the default target of runAgent.
Establishes any per-item context (e.g. tracing) around a dataset item's processing.