Skip to content

Commit 4d2c2e5

Browse files
doc(Eino): add chatmodel docs (#1446)
1 parent 1641612 commit 4d2c2e5

File tree

10 files changed

+5188
-565
lines changed

10 files changed

+5188
-565
lines changed

content/zh/docs/eino/core_modules/components/chat_model_guide.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Description: ""
3-
date: "2025-05-07"
3+
date: "2025-10-17"
44
lastmod: ""
55
tags: []
66
title: 'Eino: ChatModel 使用说明'
@@ -77,7 +77,14 @@ type Message struct {
7777
// Content 是消息的文本内容
7878
Content string
7979
// MultiContent 是多模态内容,支持文本、图片、音频等
80+
// Deprecated: 已废弃,使用UserInputMultiContent替代
8081
MultiContent []ChatMessagePart
82+
// UserInputMultiContent 用来存储用户输入的多模态数据,支持文本、图片、音频、视频、文件
83+
// 使用此字段时限制模型角色为User
84+
UserInputMultiContent []MessageInputPart
85+
// AssistantGenMultiContent 用来承接模型输出的多模态数据,支持文本、图片、音频、视频
86+
// 使用此字段时限制模型角色为Assistant
87+
AssistantGenMultiContent []MessageOutputPart
8188
// Name 是消息的发送者名称
8289
Name string
8390
// ToolCalls 是 assistant 消息中的工具调用信息

0 commit comments

Comments
 (0)