Run Health
AI-awareThe two small, essential guards for any run in production: error surfacing with retry, and token-usage badges — both driven straight off the run.
How it works
A faulted run no longer fails silently: Run.Error carries the message and
exception type while the state settles at AiState.None, and
DrylAgentError slides in a danger alert — with an optional retry callback.
Separately, UsageContent updates from the stream are summed into
Run.Usage as they arrive; DrylAgentUsage fades in compact prompt /
completion / total badges the moment the provider reports numbers, and stays hidden if it
never does.
<DrylCard Ai="@run.State">
<DrylAiStream Source="run.TextStream">
<DrylMarkdown Content="@context.Text" Ai="@context.State" />
</DrylAiStream>
<DrylAgentError Run="run" OnRetry="Ask" />
<DrylAgentUsage Run="run" />
</DrylCard>Error surfacing + retry
A faulted run no longer fails silently: Run.Error carries the message and exception type while the state settles at AiState.None. DrylAgentError slides in a danger alert — with an optional retry callback.
Token usage
UsageContent updates from the stream are summed into Run.Usage as they arrive. DrylAgentUsage fades in compact prompt / completion / total badges the moment the provider reports numbers — and stays hidden if it never does.