Passa al contenuto principale

Class: StreamingAgentChatResponse

Constructors

constructor

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

Parameters

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

Returns

StreamingAgentChatResponse

Defined in

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

Properties

response

response: AsyncIterable<Response>

Defined in

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


sourceNodes

Optional sourceNodes: NodeWithScore<Metadata>[]

Defined in

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


sources

sources: ToolOutput[]

Defined in

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