跳到主要内容

Class: StreamingAgentChatResponse

Constructors

constructor

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

Parameters

NameType
responseAsyncIterable<Response>
sources?ToolOutput[]
sourceNodes?BaseNode<Metadata>[]

Returns

StreamingAgentChatResponse

Defined in

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

Properties

response

response: AsyncIterable<Response>

Defined in

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


sourceNodes

Optional sourceNodes: BaseNode<Metadata>[]

Defined in

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


sources

sources: ToolOutput[]

Defined in

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