ppagent / ISourceChatMessage
Interface: ISourceChatMessage
Defined in: src/source/source.ts:409
Extended by
Properties
atList?
optional
atList:string
[]
Defined in: src/source/source.ts:434
content
content:
SourceChatContent
Defined in: src/source/source.ts:411
customType?
optional
customType:string
Defined in: src/source/source.ts:439
自定义类型时的名称
error?
optional
error:string
Defined in: src/source/source.ts:435
fromId?
optional
fromId:string
Defined in: src/source/source.ts:416
消息来源ID,如果是个人消息,同senderId,如果是群消息,是群Id
isGroupChat
isGroupChat:
boolean
Defined in: src/source/source.ts:425
isSender?
optional
isSender:boolean
Defined in: src/source/source.ts:426
messageId?
optional
messageId:string
Defined in: src/source/source.ts:433
origin?
optional
origin:any
Defined in: src/source/source.ts:432
senderId?
optional
senderId:string
Defined in: src/source/source.ts:420
发消息人的ID
senderInfo?
optional
senderInfo:ISourceUserInfo
Defined in: src/source/source.ts:427
senderName?
optional
senderName:string
Defined in: src/source/source.ts:424
发消息的用户名(一般也是唯一),不管是群消息还是个人消息,都应该是发送者(个人)的名称
status?
optional
status:"content"
|"reasoning"
Defined in: src/source/source.ts:443
消息状态,仅用于标记大模型返回的消息。reasoning表示推理过程消息,content表示回复的消息。为空表示content。
time?
optional
time:Date
Defined in: src/source/source.ts:412
toInfo
toInfo:
ISourceUserInfo
[]
Defined in: src/source/source.ts:431
如果是群消息,则是群信息(具体使用哪个字段发送由source决定)
type
type:
SourceChatMessageType
Defined in: src/source/source.ts:410