Skip to content

ppagent / ISourceGroupChatMessage

Interface: ISourceGroupChatMessage

Defined in: src/source/source.ts:446

Extends

Properties

atList?

optional atList: string[]

Defined in: src/source/source.ts:434

Inherited from

ISourceChatMessage.atList


content

content: SourceChatContent

Defined in: src/source/source.ts:411

Inherited from

ISourceChatMessage.content


customType?

optional customType: string

Defined in: src/source/source.ts:439

自定义类型时的名称

Inherited from

ISourceChatMessage.customType


error?

optional error: string

Defined in: src/source/source.ts:435

Inherited from

ISourceChatMessage.error


fromId?

optional fromId: string

Defined in: src/source/source.ts:416

消息来源ID,如果是个人消息,同senderId,如果是群消息,是群Id

Inherited from

ISourceChatMessage.fromId


groupInfo

groupInfo: ISourceUserInfo

Defined in: src/source/source.ts:447


isAdmin?

optional isAdmin: boolean

Defined in: src/source/source.ts:448


isGroupChat

isGroupChat: boolean

Defined in: src/source/source.ts:425

Inherited from

ISourceChatMessage.isGroupChat


isOwner?

optional isOwner: boolean

Defined in: src/source/source.ts:449


isSender?

optional isSender: boolean

Defined in: src/source/source.ts:426

Inherited from

ISourceChatMessage.isSender


messageId?

optional messageId: string

Defined in: src/source/source.ts:433

Inherited from

ISourceChatMessage.messageId


origin?

optional origin: any

Defined in: src/source/source.ts:432

Inherited from

ISourceChatMessage.origin


senderId?

optional senderId: string

Defined in: src/source/source.ts:420

发消息人的ID

Inherited from

ISourceChatMessage.senderId


senderInfo?

optional senderInfo: ISourceUserInfo

Defined in: src/source/source.ts:427

Inherited from

ISourceChatMessage.senderInfo


senderName?

optional senderName: string

Defined in: src/source/source.ts:424

发消息的用户名(一般也是唯一),不管是群消息还是个人消息,都应该是发送者(个人)的名称

Inherited from

ISourceChatMessage.senderName


status?

optional status: "content" | "reasoning"

Defined in: src/source/source.ts:443

消息状态,仅用于标记大模型返回的消息。reasoning表示推理过程消息,content表示回复的消息。为空表示content。

Inherited from

ISourceChatMessage.status


time?

optional time: Date

Defined in: src/source/source.ts:412

Inherited from

ISourceChatMessage.time


toInfo

toInfo: ISourceUserInfo[]

Defined in: src/source/source.ts:431

如果是群消息,则是群信息(具体使用哪个字段发送由source决定)

Inherited from

ISourceChatMessage.toInfo


type

type: SourceChatMessageType

Defined in: src/source/source.ts:410

Inherited from

ISourceChatMessage.type