mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +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)
|
executeOrder(modules, runningFlowContext)
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
runningFlowContext.status.ok = false
|
runningFlowContext.status.errors.add(e.localizedMessage)
|
||||||
runningFlowContext.status.errMsg.add(e.localizedMessage)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return runningFlowContext
|
return runningFlowContext
|
||||||
|
|||||||
Reference in New Issue
Block a user