Przejdź do głównej zawartości

Class: AgentChatResponse

Constructors

constructor

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

Parameters

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

Returns

AgentChatResponse

Defined in

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

Properties

response

response: string

Defined in

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


sourceNodes

Optional sourceNodes: BaseNode<Metadata>[]

Defined in

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


sources

sources: ToolOutput[]

Defined in

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

Methods

_getFormattedSources

_getFormattedSources(): void

Returns

void

Defined in

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


toString

toString(): string

Returns

string

Defined in

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