Skip to content

feat: ecosystem architecture enhancements (Graph, Loop, Context, Harness)#75

Open
Patel230 wants to merge 6 commits into
mainfrom
feat/tok-model-ordering
Open

feat: ecosystem architecture enhancements (Graph, Loop, Context, Harness)#75
Patel230 wants to merge 6 commits into
mainfrom
feat/tok-model-ordering

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

This PR introduces cross-ecosystem architectural enhancements encompassing Graph Engineering, Loop Engineering, Context Management, and Prompt Frameworks.

What's Included

  • Graph Engineering: StateGraph implementations, A2A protocol support, and Cypher-like DSLs.
  • Loop Engineering: Async exponential backoff and retry handlers with strict context timeout support.
  • Context Engineering: Token budget optimizers prioritizing recent messages and system prompts.
  • Harness Engineering: Test harness wrappers for injecting mocks and running result validations.
  • Prompt Engineering: Secure text templating engines for LLM prompts.

All changes include appropriate edge-case handling for timeouts, cancellations, and state immutability.

Patel230 added 6 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
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