generated from cloudwego/.github
-
Notifications
You must be signed in to change notification settings - Fork 729
feat: define AgenticMessage #572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mrh997
wants to merge
28
commits into
main
Choose a base branch
from
release/agentic_model
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+6,438
−82
Conversation
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
66bd0d0 to
630a8a3
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #572 +/- ##
==========================================
- Coverage 81.62% 79.99% -1.63%
==========================================
Files 127 135 +8
Lines 12250 13639 +1389
==========================================
+ Hits 9999 10911 +912
- Misses 1510 1849 +339
- Partials 741 879 +138 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
f672218 to
a7fdb1b
Compare
afc347e to
59a320a
Compare
9918722 to
bd7776b
Compare
980e38f to
2f1d10e
Compare
feat(agentic_model): - format print - support agentic chat template - support to compose agentic odel&agentic tools node - support agentic tool node - support agentic message concat
2f1d10e to
10742a2
Compare
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.
🚀 Eino 全新消息结构体定义发布 [Beta]
随着内置工具、MCP 工具、缓存等能力在 OpenAI Responses API、Claude API 等先进厂商的 API 中得到原生支持,模型正在从 “一次性问答引擎” 升级为 “面向用户目标的自主行动体”。我们很高兴地宣布 Eino 框架推出全新的消息结构体定义 AgenticMessage ,围绕 AgenticMessage 引入了三个核心组件:AgenticModel、AgenticChatTemplate 和 AgenticToolsNode,为构建更智能、更自主的 AI 应用提供强大支持。
Eino v0.9.0-alpha.2 版本已发布,立即更新 eino-example@release/agentic_model 体验 Eino 的 Agentic 能力,构建下一代智能应用! 🚀
git clone https://github.com/cloudwego/eino-examples.git git checkout release/agentic_model cd ./eino-examples/flow/agent/react/agentic go run main.go✨ 核心更新内容
1️⃣ AgenticMessage
ContentBlock多态结构承载复杂的复合内容(如"推理过程 + 工具调用 + 文本生成"),针对 OpenAI、Claude、Gemini 等不同模型提供商的专属扩展字段。用户输入
UserInputText- 文本输入UserInputImage- 图像输入UserInputAudio- 音频输入UserInputVideo- 视频输入UserInputFile- 文件输入模型生成
Reasoning- 推理过程AssistantGenText- 生成文本AssistantGenImage- 生成图像AssistantGenAudio- 生成音频AssistantGenVideo- 生成视频工具调用
FunctionToolCall/Result- 用户自定义工具ServerToolCall/Result- 服务端内置工具MCPToolCall/Result- MCP 协议工具MCPListToolsResult- MCP 工具列表MCPToolApprovalRequest/Response- MCP 工具审批2️⃣ AgenticModel
AgenticModel 是以 “目标驱动的自主执行” 为核心的模型能力抽象,是 ChatModel 的增强抽象。
📦 接口定义
🔥 模型厂商支持情况
3️⃣ AgenticChatTemplate
专为 AgenticMessage 设计的提示模板组件,用于构建结构化的上下文准备。
📦 接口定义
4️⃣ AgenticToolsNode
专为 AgenticModel 设计的工具执行组件,支持自动解析并执行模型生成的工具调用。
当前版本为 Beta 版本,API 可能会有调整。我们欢迎社区反馈和贡献!
反馈渠道