feat: add UI message backend contract#56
Open
LIlGG wants to merge 1 commit into
Open
Conversation
e75599f to
01e06d3
Compare
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
SDK UI 后端相关工作,已完成文本生成、流式生成、工具调用等能力。
此 PR 目标是在后端补齐 Halo 自有的 UI Message 契约,让调用方可以直接围绕
UIMessage、UIMessageStreamResponse和UIMessageChatHandlers构建前端聊天接口。相对原来的低层 SDK 调用,现在可以更好地:UIMessage,方便保存和继续会话。UIMessage校验并转换回模型消息,支持后续多轮调用。Which issue(s) this PR fixes:
Fixes #57
Does this PR introduce a user-facing change?