Skip to content

feat: Support Durable HTTP Tool Calls with Request Persistence … - #4640

Open
jack-yu-matrix wants to merge 3 commits into
agentscope-ai:mainfrom
jack-yu-matrix:main
Open

jack-yu-matrix wants to merge 3 commits into
agentscope-ai:mainfrom
jack-yu-matrix:main

Conversation

@jack-yu-matrix

Copy link
Copy Markdown

AgentScope-Java Version

2.1.0-SNAPSHOT

Description

Adds an opt-in HTTP executor for endpoints that use Idempotency-Key to deduplicate requests and return the original successful response on replay. It persists the exact serialized JSON before dispatch and reuses it with the same key on recovery. The existing Runtime or Worker continues to own result checkpointing.

The executor uses a frozen tool binding, obtains authorization headers at send time, and stops replaying after the configured window. It keeps uncertain outcomes available for reconciliation.

The regression test uses a loopback HTTP service to create an order and drop its response. It reopens the SQLite store and checks byte-for-byte replay, a single order for the original execution, and reuse of the recorded result. It also covers missing or changed requests and expired replay windows.

Maven ran HttpToolExecutorTest, DurableHttpTest, and WorkerRuntimeTest with 39 passing tests and no failures. Spotless also passed.

resolves #4612.

@mintlify

mintlify Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 3b54848.

Approve preview

@CLAassistant

CLAassistant commented Dec 5, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ jack-yu-matrix
❌ jackyucapgemini
You have signed the CLA already but the status is still pending? Let us recheck it.

@jack-yu-matrix jack-yu-matrix changed the title feat: #4612 Support Durable HTTP Tool Calls with Request Persistence … feat: Support Durable HTTP Tool Calls with Request Persistence … Dec 5, 2026

This branch has not been deployed

No deployments
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.

[Feature]: Support Durable HTTP Tool Calls with Request Persistence and Idempotency Keys

3 participants