mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 08:43:02 +08:00
fix(AgentRuntime): repair exception handling logic in method executeTurn
This commit is contained in:
@@ -52,8 +52,7 @@ object AgentRuntime {
|
||||
executeOrder(modules, runningFlowContext)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
runningFlowContext.status.ok = false
|
||||
runningFlowContext.status.errMsg.add(e.localizedMessage)
|
||||
runningFlowContext.status.errors.add(e.localizedMessage)
|
||||
}
|
||||
|
||||
return runningFlowContext
|
||||
|
||||
Reference in New Issue
Block a user