Skip to content

fix(durable): support model timeouts in native adapters - #4578

Open
kevinvv03 wants to merge 1 commit into
agentscope-ai:mainfrom
kevinvv03:fix/durable-model-options-serialization
Open

kevinvv03 wants to merge 1 commit into
agentscope-ai:mainfrom
kevinvv03:fix/durable-model-options-serialization

Conversation

@kevinvv03

@kevinvv03 kevinvv03 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

AgentScope-Java Version

2.1.0-SNAPSHOT

Description

Fixes #4577

A configured model timeout makes a Durable Turn fail before invoking the model. Encode native options with the default Core JSON codec before hashing and queueing, so Duration is supported while the existing options layout and Worker-owned connection/execution settings are preserved.

Add regression coverage for direct and Worker-backed ReAct/Harness calls, background completion, request identity, generation options and custom codec isolation. Update the matching English and Chinese dev documentation.

Validation:

  • 208 Durable runtime, worker and adapter tests pass, including 24 new cases.
  • All 24 new cases also pass on Java 17.
  • Spotless, 20 documentation tests, strict build validation and broken-link checks pass.
  • Full repository Linux/Windows CI remains pending.

Checklist

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test) — scoped suites pass; full repository CI is pending
  • Javadoc comments are complete and follow project conventions; no public API was added
  • Related documentation has been updated
  • Code is ready for review

Use the default Core JSON codec before hashing or queueing native model options.
Preserve Worker-owned settings and cover configured ReAct/Harness turns.

Refs: agentscope-ai#4577
@mintlify

mintlify Bot commented Dec 2, 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 7036e3f.

Approve preview

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.

[Bug]: Durable turns fail when model execution options contain Duration

1 participant