跳到主要内容

Class: AgentChatResponse

Constructors

constructor

new AgentChatResponse(response, sources?, sourceNodes?): AgentChatResponse

Parameters

NameType
responsestring
sources?ToolOutput[]
sourceNodes?NodeWithScore<Metadata>[]

Returns

AgentChatResponse

Defined in

packages/core/src/engines/chat/types.ts:70

Properties

response

response: string

Defined in

packages/core/src/engines/chat/types.ts:66


sourceNodes

Optional sourceNodes: NodeWithScore<Metadata>[]

Defined in

packages/core/src/engines/chat/types.ts:68


sources

sources: ToolOutput[]

Defined in

packages/core/src/engines/chat/types.ts:67

Methods

_getFormattedSources

_getFormattedSources(): void

Returns

void

Defined in

packages/core/src/engines/chat/types.ts:80


toString

toString(): string

Returns

string

Defined in

packages/core/src/engines/chat/types.ts:84