Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions agentscope-core/src/main/java/io/agentscope/core/ReActAgent.java
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,9 @@ private Mono<Msg> reasoning(int iter, boolean ignoreMaxIters) {

// HITL stop
if (event.isStopRequested()) {
return Mono.just(msg);
return Mono.just(
msg.withGenerateReason(
GenerateReason.REASONING_STOP_REQUESTED));
}

// gotoReasoning requested (e.g., by StructuredOutputHook)
Expand Down Expand Up @@ -543,7 +545,11 @@ private Mono<Msg> acting(int iter) {
// HITL stop (also triggered by
// StructuredOutputHook when completed)
if (event.isStopRequested()) {
return Mono.just(event.getToolResultMsg());
return Mono.just(
event.getToolResultMsg()
.withGenerateReason(
GenerateReason
.ACTING_STOP_REQUESTED));
}

// If there are pending results, build suspended Msg
Expand Down
Loading