The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Example demonstrating per-run budget enforcement with WithBudget.
Two scenarios are shown:
BudgetStopRun: the run stops immediately and returns ErrBudgetExceeded when the
configured token or cost limit is reached.
BudgetWaitForApproval: the run pauses when the limit is reached; the approval
handler decides whether to continue or stop.
Run:
go run ./agent_with_budget
go run ./agent_with_budget "Your custom prompt here"
Set SHOW_LLM_USAGE=true to print token usage at the end of each run.
The budget limits in this example are set very low so they trigger on most prompts.
Raise them to realistic values (e.g. MaxTokens: 100_000) for production use.