When changing or adding code, keep logic and dependencies clean:
Example (centralize clamping):
// prefer: clamp inside Calculate (source of truth)
first, request, _ := ts.perf.Calculate() // already returns clamped request
Example (no reverse dependency):
llm is a bottom package, it should not import objects (business). Move shared types to a neutral/lower package or pass data via interfaces defined at the lower layer.Example (reuse utility):
v := lo.ToPtr(123) // instead of custom xptr.IntPtr(123)
Enter the URL of a public GitHub repository