40
41
parseChatRequest(sessionResource: URI, message: string, location: ChatAgentLocation = ChatAgentLocation.Chat, context: IChatParserContext = {}): IParsedChatRequest {
42
>
const references = this.variableService.getDynamicVariables(sessionResource); // must access this list before any async calls
chatRequestParser.ts
43
>
const selectedToolAndToolSets = this.variableService.getSelectedToolAndToolSets(sessionResource);
44
>
if (!context.sessionType) {
45
>
context = { ...context, sessionType: getChatSessionType(sessionResource) };
46
>
}
47
>
return this.parseChatRequestWithReferences(references, selectedToolAndToolSets, message, location, context);
48
>
}
49
50
parseChatRequestWithReferences(references: ReadonlyArray<IDynamicVariable>, selectedToolAndToolSets: ToolAndToolSetEnablementMap, message: string, location: ChatAgentLocation = ChatAgentLocation.Chat, context?: IChatParserContext): IParsedChatRequest {