Feature: more user side log#85
Closed
HairlessVillager wants to merge 6 commits intoFellouAI:developfrom
Closed
Conversation
1579923417
approved these changes
Mar 1, 2025
1579923417
approved these changes
Mar 1, 2025
Contributor
Author
|
Close as duplicate development. |
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.
这个 PR 增加了更多的日志和对应的回调函数,方便应用层展示用户侧的日志。具体来说包括以下 3 个回调函数:
logAssistantReasoning:展示大模型思考过程;logToolUsing:展示正在使用的工具的名称;logToolUsingDetail:展示正在使用的工具的运行细节。参考实现如下:
This PR adds more logs and corresponding callback functions to facilitate the display of user-side logs at the application layer. Specifically, it includes the following three callback functions:
logAssistantReasoning: Displays the thinking process of the large model;logToolUsing: Displays the name of the tool currently in use;logToolUsingDetail: Displays the operational details of the tool currently in use.The reference implementation is as follows: