feat: ecosystem architecture enhancements (Graph, Loop, Context, Harness)#75
Open
Patel230 wants to merge 6 commits into
Open
feat: ecosystem architecture enhancements (Graph, Loop, Context, Harness)#75Patel230 wants to merge 6 commits into
Patel230 wants to merge 6 commits into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces cross-ecosystem architectural enhancements encompassing Graph Engineering, Loop Engineering, Context Management, and Prompt Frameworks.
What's Included
StateGraphimplementations, A2A protocol support, and Cypher-like DSLs.All changes include appropriate edge-case handling for timeouts, cancellations, and state immutability.