ppagent / ISourceGroupChatMessage
Interface: ISourceGroupChatMessage
Defined in: src/source/source.ts:446
Extends
Properties
atList?
optionalatList:string[]
Defined in: src/source/source.ts:434
Inherited from
content
content:
SourceChatContent
Defined in: src/source/source.ts:411
Inherited from
customType?
optionalcustomType:string
Defined in: src/source/source.ts:439
自定义类型时的名称
Inherited from
error?
optionalerror:string
Defined in: src/source/source.ts:435
Inherited from
fromId?
optionalfromId:string
Defined in: src/source/source.ts:416
消息来源ID,如果是个人消息,同senderId,如果是群消息,是群Id
Inherited from
groupInfo
groupInfo:
ISourceUserInfo
Defined in: src/source/source.ts:447
isAdmin?
optionalisAdmin:boolean
Defined in: src/source/source.ts:448
isGroupChat
isGroupChat:
boolean
Defined in: src/source/source.ts:425
Inherited from
ISourceChatMessage.isGroupChat
isOwner?
optionalisOwner:boolean
Defined in: src/source/source.ts:449
isSender?
optionalisSender:boolean
Defined in: src/source/source.ts:426
Inherited from
messageId?
optionalmessageId:string
Defined in: src/source/source.ts:433
Inherited from
origin?
optionalorigin:any
Defined in: src/source/source.ts:432
Inherited from
senderId?
optionalsenderId:string
Defined in: src/source/source.ts:420
发消息人的ID
Inherited from
senderInfo?
optionalsenderInfo:ISourceUserInfo
Defined in: src/source/source.ts:427
Inherited from
senderName?
optionalsenderName:string
Defined in: src/source/source.ts:424
发消息的用户名(一般也是唯一),不管是群消息还是个人消息,都应该是发送者(个人)的名称
Inherited from
status?
optionalstatus:"content"|"reasoning"|"tool"
Defined in: src/source/source.ts:443
消息状态,仅用于标记大模型返回的消息。reasoning表示推理过程消息,content表示回复的消息,tool表示工具调用消息。为空表示content。
Inherited from
time?
optionaltime:Date
Defined in: src/source/source.ts:412
Inherited from
toInfo
toInfo:
ISourceUserInfo[]
Defined in: src/source/source.ts:431
如果是群消息,则是群信息(具体使用哪个字段发送由source决定)
Inherited from
type
type:
SourceChatMessageType
Defined in: src/source/source.ts:410