refactor(action-core): migrate action modules to Result return flow and unify exception reporting

This commit is contained in:
2026-04-12 17:29:10 +08:00
parent 19f56d11f0
commit c14e6f84e7
9 changed files with 74 additions and 81 deletions

View File

@@ -13,7 +13,7 @@ interface ActivateModel {
fun streamChat(
messages: List<Message>,
handler: StreamChatMessageConsumer
): work.slhaf.partner.framework.agent.support.Result<Unit> {
): Result<Unit> {
return ModelRuntimeRegistry.resolveProvider(modelKey()).streamChat(mergeMessages(messages), handler)
}