← Back
Harness Status
ContextMeter.init [intermediate]Agent harness status bar, context/spend meters, activity indicator, advisory feed, and drift gauge
Agent harness status bar, context/spend meters, activity indicator, advisory feed, and drift gauge
For the full interactive experience:
$ mix raxol.playground
Code
defp context_meter(model) do
{:ok, state} =
ContextMeter.init(
id: :context_meter,
used: model.context_used,
total: @context_total,
width: 24
)
ContextMeter.render(state, %{})
end
defp spend_meter(model) do
{:ok, state} =
SpendMeter.init(
id: :spend_meter,
spent: model.cost,
cap: @spend_cap,
width: 24
)
SpendMeter.render(state, %{})
end