[PR #497] [MERGED] feat(quickjs): add maxPtcCallsbudget for ptc calls #513

Closed
opened 2026-06-05 17:23:31 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/497
Author: @colifran
Created: 4/30/2026
Status: Merged
Merged: 4/30/2026
Merged by: @colifran

Base: mainHead: colifran/budget-host-functions


📝 Commits (9)

  • 68011b8 set up default max ptc calls types and options wiring
  • 33a75cc implement per eval budget counter in repl sessions
  • b83f16b wire consume ptc budget into inject tools
  • 1715fb7 re-organizing
  • 35d670b lint
  • 69ee77d changeset
  • ea1abef removed unusued err.name
  • 84547f7 add specific PTCCallBudgetExceededError error type
  • 2a2b950 options interface

📊 Changes

7 files changed (+280 additions, -52 deletions)

View changed files

.changeset/nice-memes-stand.md (+5 -0)
libs/providers/quickjs/src/errors.ts (+38 -0)
📝 libs/providers/quickjs/src/index.ts (+3 -0)
📝 libs/providers/quickjs/src/middleware.ts (+7 -0)
📝 libs/providers/quickjs/src/session.test.ts (+116 -0)
📝 libs/providers/quickjs/src/session.ts (+96 -52)
📝 libs/providers/quickjs/src/types.ts (+15 -0)

📄 Description

Port of https://github.com/langchain-ai/deepagents/pull/2994


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/deepagentsjs/pull/497 **Author:** [@colifran](https://github.com/colifran) **Created:** 4/30/2026 **Status:** ✅ Merged **Merged:** 4/30/2026 **Merged by:** [@colifran](https://github.com/colifran) **Base:** `main` ← **Head:** `colifran/budget-host-functions` --- ### 📝 Commits (9) - [`68011b8`](https://github.com/langchain-ai/deepagentsjs/commit/68011b8f61c0a4ca0e58fa39267c5b3f057d5a52) set up default max ptc calls types and options wiring - [`33a75cc`](https://github.com/langchain-ai/deepagentsjs/commit/33a75cca286b8f020f92c3db45e7fb868fd4e5b9) implement per eval budget counter in repl sessions - [`b83f16b`](https://github.com/langchain-ai/deepagentsjs/commit/b83f16b65379e432ebf1f12524a74ae810db28f4) wire consume ptc budget into inject tools - [`1715fb7`](https://github.com/langchain-ai/deepagentsjs/commit/1715fb7feae1032d2629ba1e4ea92c12f2ebac8b) re-organizing - [`35d670b`](https://github.com/langchain-ai/deepagentsjs/commit/35d670bca5ed36ee2b7c81cff7fc97affbad262d) lint - [`69ee77d`](https://github.com/langchain-ai/deepagentsjs/commit/69ee77d30d647f920acc80d0dfb561dce45e1afd) changeset - [`ea1abef`](https://github.com/langchain-ai/deepagentsjs/commit/ea1abef54344c0c82c4c37c53f25e4c90ed702de) removed unusued err.name - [`84547f7`](https://github.com/langchain-ai/deepagentsjs/commit/84547f7244a798c67b0be3c4430d28c37e06fda4) add specific PTCCallBudgetExceededError error type - [`2a2b950`](https://github.com/langchain-ai/deepagentsjs/commit/2a2b95013c6b70bbe46d0f044b51a25b7139f7f6) options interface ### 📊 Changes **7 files changed** (+280 additions, -52 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/nice-memes-stand.md` (+5 -0) ➕ `libs/providers/quickjs/src/errors.ts` (+38 -0) 📝 `libs/providers/quickjs/src/index.ts` (+3 -0) 📝 `libs/providers/quickjs/src/middleware.ts` (+7 -0) 📝 `libs/providers/quickjs/src/session.test.ts` (+116 -0) 📝 `libs/providers/quickjs/src/session.ts` (+96 -52) 📝 `libs/providers/quickjs/src/types.ts` (+15 -0) </details> ### 📄 Description Port of https://github.com/langchain-ai/deepagents/pull/2994 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 17:23:31 -04:00
yindo closed this issue 2026-06-05 17:23:31 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#513