Skip to main content

determineResponse

Stentor API Reference


Stentor API Reference / stentor-response/src / determineResponse

Function: determineResponse()

determineResponse(responses, request, context, additionalContext?, macros?): Response

Defined in: packages/stentor-response/src/determineResponse.ts:11

Determines which response is best based on the provided list of possible responses.

Parameters​

responses​

Response[]

request​

Request

context​

Context

additionalContext?​

Record\<string, unknown>

macros?​

MacroMap

Returns​

Response