Zum Hauptinhalt springen

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:71

Properties

response

response: string

Defined in

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


sourceNodes

Optional sourceNodes: BaseNode<Metadata>[]

Defined in

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


sources

sources: ToolOutput[]

Defined in

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

Methods

_getFormattedSources

_getFormattedSources(): void

Returns

void

Defined in

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


toString

toString(): string

Returns

string

Defined in

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