Repository navigation
feat(judge): add OpenAI Decisions middleware and runnable examples - #3707
Open
xiaoyuuuuuupeng wants to merge 4 commits into
Open
xiaoyuuuuuupeng wants to merge 4 commits into
xiaoyuuuuuupeng wants to merge 4 commits into
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
xiaoyuuuuuupeng
marked this pull request as ready for review
October 21, 2026 10:37
This branch has not been deployed
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.
AgentScope-Java Version
2.1.0-SNAPSHOT, tested against main
702a9fca1.Description
Follow-up to #3648. The existing OpenAI Decisions client returns typed judgments, but applications still need to apply them to the agent loop.
This change adds three opt-in middleware implementations:
All three are disabled by default. Configurable wrapper retries are bound through the existing Spring Boot starter, preserving zero retries by default. Borrowed SDK clients retain their own lifecycle and retry settings.
Add a runnable example with independent
route,select, andguardmodes, simulated business tools, and aligned EN/ZH documentation. The example configuresreasoning_effort=nonefor Luna chat requests so function tools work through Chat Completions. It also documents JVM proxy setup and SDK daemon-thread warnings underexec:java.Broader JEV execution modes, confirmation binding, RAG, compaction, evaluation, and Service wiring are outside this PR.
Validation on Java 17 / Maven 3.6.3 / Windows:
mvn -B -T1C clean verify: all 110 tests in the Decisions extension (96), starter (7), and example (7) pass, including request-body regression coverage for Luna tool calls. These modules complete verification, including formatting and Javadoc checks.WorkspaceMessageBusTest.logReadWithCursorreports a JUnit temporary-directory cleanupDirectoryNotEmptyException. Harness totals: 1,300 tests, 0 assertion failures, 1 cleanup error, 18 skips. The exact method passes on isolated rerun; the full reactor remains non-green and dependent modules are skipped.git diff --checkpass.selectrun completes with live Decisions and Chat Completions, a simulated weather-tool result, andBUILD SUCCESS. Live routing, guarding, image input, retries, and production decision quality have not been validated.AI assistance: implementation and local verification used Codex.
Checklist
mvn spotless:apply