Skip to content

Merge feature branch into main#76

Merged
Patel230 merged 9 commits into
mainfrom
auto-merge-1785054363
Jul 26, 2026
Merged

Merge feature branch into main#76
Patel230 merged 9 commits into
mainfrom
auto-merge-1785054363

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Automated merge of feature branch into main

Patel230 added 9 commits July 23, 2026 20:16
The examples showed 'out, err := tok.Compress(...)' but the actual API returns
(string, Stats) and (string, PromptStats) respectively — no error return.
Fix the examples to match the real signatures.
tok.EstimateCost was referenced across README, QUICK_START, DEPLOYMENT,
AGENT_INTEGRATION, TROUBLESHOOTING, PERFORMANCE, and examples/README but did
not exist. Adds the missing function (estimates USD cost of text as input
tokens via EstimateTokensForModel + GetModelPricing) with tests, and fixes
the doc examples to match the actual API:

- Compress/PromptCompress return (string, Stats)/(string, PromptStats), not
  (string, error): corrected out, err := to out, _ := / out, stats :=
- PromptCompress single-value assignments now use out, _ :=
- EstimateCost now takes text (string) and returns float64 (single value)
- Fixed 3-value Compress misuses in architecture.md
ListModels documented a sorted list but iterated the pricing map
directly, yielding random order per run. Add sort.Strings and a
sort.StringsAreSorted assertion so the contract is enforced.
- Add runtimegraph/ package with runtime analysis
- Update ratelimit.go, ratelimit_test.go, go.mod
- Update README
- Add RuntimeGraph implementation
- Track runtime performance metrics across components
- Support issue ranking and portable GraphSpec conversion
@Patel230
Patel230 merged commit 23b7cdf into main Jul 26, 2026
20 checks passed
@Patel230
Patel230 deleted the auto-merge-1785054363 branch July 26, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant