mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 08:43:02 +08:00
refactor(action-core): migrate action modules to Result return flow and unify exception reporting
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user