docs: Fix the error in implementing custom callback handler method in qiuckstart modification#208
Open
Claran309 wants to merge 1 commit intocloudwego:mainfrom
Open
docs: Fix the error in implementing custom callback handler method in qiuckstart modification#208Claran309 wants to merge 1 commit intocloudwego:mainfrom
Claran309 wants to merge 1 commit intocloudwego:mainfrom
Conversation
…6 of the quickstart
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.
Summary
This PR fixes a technical error in the Quickstart documentation regarding the implementation of custom callback handlers.
Related Issues
Fixes #188
Changes
quickstart\chatwitheino\docs\ch06_callback.mdNewHandlerHelperwith the correctNewHandlerBuildermethod from thecallbackspackage.Key Insight
In the core
github.com/cloudwego/eino/callbackspackage, the method for creating generic handlers isNewHandlerBuilder(), notNewHandlerHelper().The original documentation provided a code snippet that would lead to a compilation error because
NewHandlerHelperis either missing from that scope or belongs to a different utility package with a different calling convention. This update ensures that developers following the Quickstart guide can successfully implement their first callback handler without encountering "method not found" errors.概述
本 PR 修复了快速入门(Quickstart)文档中关于自定义回调处理器(Callback Handler)实现的一个技术错误。
关联议题
修复 #188
变更内容
quickstart\chatwitheino\docs\ch06_callback.mdNewHandlerHelper替换为callbacks包中正确的NewHandlerBuilder方法。核心洞察
在 Eino 的核心包
github.com/cloudwego/eino/callbacks中,用于创建通用处理器的正确方法是NewHandlerBuilder()。原文档引用的
NewHandlerHelper会导致开发者在按照教程操作时遇到编译错误(方法未定义)。通过此次修改,纠正了 API 的调用名称,确保新用户在学习快速入门指南时能够顺利运行示例代码,提升了文档的准确性和易用性。