MCPcopy Create free account

hub / github.com/FirebaseExtended/solution-ai-barista / functions

Functions67 in github.com/FirebaseExtended/solution-ai-barista

↓ 7 callersFunctiongetStateOrder
()
services/cloud-run/src/ai/agents/utils/agentUtils.ts:47
↓ 6 callersFunctioncreateErrorResponse
(errorMessage: string, statusCode: number = 500)
services/cloud-run/src/utils/utils.ts:27
↓ 6 callersFunctiongetSessionLogger
(auth: DecodedIdToken | undefined)
services/cloud-run/src/logging/logger.ts:61
↓ 5 callersFunctioncreateChatErrorFromError
(error: any)
services/cloud-run/src/utils/utils.ts:74
↓ 4 callersFunctionupdateStateOrder
(order: BeverageModel[])
services/cloud-run/src/ai/agents/utils/agentUtils.ts:33
↓ 3 callersFunctionbeverageToTuple
(beverage: BeverageModel)
services/cloud-run/src/ai/agents/utils/agentUtils.ts:25
↓ 3 callersFunctioncreateBeverage
(drink: string, modifiers: string[] = [])
services/cloud-run/src/utils/utils.ts:102
↓ 3 callersMethodgetDocRef
(sessionId: string)
services/cloud-run/src/firestore/sessionStore.ts:78
↓ 3 callersMethodgetSession
* Load or a create a new genkit session for the given session ID. * @param sessionID ID of the session to restore. If undefined, a new session is
services/cloud-run/src/ai/agentSessionManager.ts:174
↓ 3 callersMethodprocessComplete
()
client/web/angular-customer-app/src/app/services/chat.service.ts:57
↓ 3 callersMethodprocessError
(err: ErrorResponse)
client/web/angular-customer-app/src/app/services/chat.service.ts:51
↓ 3 callersMethodsendChat
(message: Part[] | string, chatOptions: ChatOptions<unknown> = {})
services/cloud-run/src/ai/agentSessionManager.ts:89
↓ 3 callersFunctionverifyAppCheck
* Middleware that verifies that the `X-Firebase-AppCheck` header is a valid Firebase * AppCheck token.
services/cloud-run/src/auth/verifyAppCheckMiddleware.ts:26
↓ 3 callersFunctionverifyAuthentication
* Middleware that verifies that the `Authorization: Bearer` header is a valid Firebase * Authentication token.
services/cloud-run/src/auth/verifyAuthenticationMiddleware.ts:27
↓ 2 callersMethodaddToChatHistory
(chat: ChatMessageModel | ChatResponseModel)
client/web/angular-customer-app/src/app/services/chat.service.ts:62
↓ 2 callersMethodask
(message?: string, media?: MediaModel)
client/web/angular-customer-app/src/app/chatbot/chatbot.component.ts:87
↓ 2 callersMethodchat
* Send a chat message with an optional media item.
services/cloud-run/src/ai/agentSessionManager.ts:79
↓ 2 callersFunctioncreateErrorResponseFromChatError
(error: ChatError)
services/cloud-run/src/utils/utils.ts:39
↓ 2 callersMethodget
* Retrieves session data from Firestore for the given session ID. * @async * @param {string} sessionId - The ID of the session to retrieve. *
services/cloud-run/src/firestore/sessionStore.ts:53
↓ 2 callersMethodgetAppCheckToken
()
client/web/angular-customer-app/src/app/services/login.service.ts:65
↓ 2 callersMethodgetHttpOptions
* Create Http options that include the latest id token.
client/web/angular-customer-app/src/app/services/coffee.service.ts:42
↓ 2 callersMethodhas
* Checks if there is a session stored for this session ID. * @param sessionId The ID of the session to retrieve. * @returns True if there is a s
services/cloud-run/src/firestore/sessionStore.ts:74
↓ 2 callersMethodprocessChatResponse
(res: ChatResponseModel)
client/web/angular-customer-app/src/app/services/chat.service.ts:42
↓ 1 callersMethodclear
* Clears a session from Firestore and deletes its data. * * @param sessionID The ID of the session to clear
services/cloud-run/src/firestore/sessionStore.ts:104
↓ 1 callersMethodclearChat
()
client/web/angular-customer-app/src/app/services/chat.service.ts:101
↓ 1 callersFunctionclearDataAndSession
(auth: DecodedIdToken, req: Request, res: Response)
services/cloud-run/src/utils/routeUtils.ts:30
↓ 1 callersMethodclearSession
()
client/web/angular-customer-app/src/app/services/chat.service.ts:109
↓ 1 callersMethodclearSession
* Clear the current session. * @returns True if the session was cleared successfully, false otherwise.
services/cloud-run/src/ai/agentSessionManager.ts:145
↓ 1 callersFunctioncreateErrorResponseFromMessageChatError
(message: string, error: ChatError)
services/cloud-run/src/utils/utils.ts:51
↓ 1 callersFunctioncreateTextResponse
(textMessage: string)
services/cloud-run/src/utils/utils.ts:64
↓ 1 callersMethoddisableChat
()
client/web/angular-customer-app/src/app/chatbot/chatbot.component.ts:162
↓ 1 callersMethodenableChat
()
client/web/angular-customer-app/src/app/chatbot/chatbot.component.ts:168
↓ 1 callersFunctiongenerateName
()
services/cloud-run/src/utils/submissionUtils.ts:24
↓ 1 callersMethodgetHttpOptions
()
client/web/angular-customer-app/src/app/services/login.service.ts:73
↓ 1 callersFunctionloadRecommendation
* Load the recommendation from the recommendation service. * * This demonstrates how a tool call can access external services, such as a HTTP endpo
services/cloud-run/src/ai/agents/recommendationAgent/recommendationTools.ts:60
↓ 1 callersMethodloginAnonymously
()
client/web/angular-customer-app/src/app/services/login.service.ts:88
↓ 1 callersMethodopenFinalConfirmationDialog
(message: string)
client/web/angular-customer-app/src/app/chatbot/chatbot.component.ts:138
↓ 1 callersMethodopenOrderSubmissionDialog
(order: BeverageModel[])
client/web/angular-customer-app/src/app/chatbot/chatbot.component.ts:152
↓ 1 callersMethodresumeOrderConfirmation
* Resume an interrupted 'submitOrder' tool call with a user response.
services/cloud-run/src/ai/agentSessionManager.ts:62
↓ 1 callersMethodsendChat
(message: string, media?: MediaModel)
client/web/angular-customer-app/src/app/services/chat.service.ts:81
↓ 1 callersMethodsendMessage
(request: ChatMessageModel)
client/web/angular-customer-app/src/app/services/coffee.service.ts:58
↓ 1 callersMethodsendOrderApproval
(request: OrderConfirmationMessage)
client/web/angular-customer-app/src/app/services/coffee.service.ts:71
↓ 1 callersMethodsendOrderConfirmation
(approved: boolean)
client/web/angular-customer-app/src/app/services/chat.service.ts:66
↓ 1 callersMethodsubmitOrder
* * @param name Name for the order * @param beverages List of beverages * @returns ID of the document reference that was stored in Firestore
services/cloud-run/src/firestore/submittedOrderStore.ts:58
↓ 1 callersMethoduploadMedia
(mediaFile: File)
client/web/angular-customer-app/src/app/services/mediaStorage.service.ts:32
↓ 1 callersMethoduploadPhoto
(file: string)
client/web/angular-customer-app/src/app/chatbot/chatbot.component.ts:119
FunctionapproveOrder
(req: Request<ParamsDictionary, unknown, OrderConfirmationMessage>, res: Response)
services/cloud-run/src/routes/approveOrder.ts:24
Functionchat
(req: Request<ParamsDictionary, unknown, ChatMessageModel>, res: Response)
services/cloud-run/src/routes/chat.ts:24
FunctionclearSession
(req: Request, res: Response)
services/cloud-run/src/routes/clearSession.ts:23
MethodclearSession
()
client/web/angular-customer-app/src/app/services/login.service.ts:99
MethodconfirmOrder
()
client/web/angular-customer-app/src/app/chatbot/chatbot.component.ts:134
Methodconstructor
()
client/web/angular-customer-app/src/app/chatbot/chatbot.component.ts:61
Methodconstructor
(private dialogRef: MatDialogRef<OrderDialog>)
client/web/angular-customer-app/src/app/chatbot/order-dialog/order-dialog.component.ts:41
Methodconstructor
(private http: HttpClient)
client/web/angular-customer-app/src/app/services/coffee.service.ts:37
Methodconstructor
(private http: HttpClient)
client/web/angular-customer-app/src/app/services/login.service.ts:40
Methodconstructor
(options: { text: string; suggestedResponses: string[]; readyForSubmission?: boolean; // Optional
services/cloud-run/src/types/ChatResponse.ts:29
Methodconstructor
(statusCode: number, message: string, originalCause: Error | undefined = undefined)
services/cloud-run/src/types/ChatError.ts:23
Methodconstructor
* Creates a new AgentSessionManager instance for the given user. * @param auth The authentication details for the user.
services/cloud-run/src/ai/agentSessionManager.ts:51
Methodconstructor
* Creates a new FirestoreSessionstore instance. * @constructor * @param {FirebaseFirestore.Firestore} firestore - The Firestore instance.
services/cloud-run/src/firestore/sessionStore.ts:42
Methodconstructor
(userId: string)
services/cloud-run/src/firestore/submittedOrderStore.ts:48
FunctionfromFirestoreDocumentData
(data: FirebaseFirestore.DocumentData)
services/cloud-run/src/firestore/beverageConverter.ts:32
MethodgetInProgressOrder
* * @returns The current in-progress order for the user.
services/cloud-run/src/ai/agentSessionManager.ts:164
MethodkeyPress
(event: KeyboardEvent)
client/web/angular-customer-app/src/app/chatbot/chatbot.component.ts:94
Methodsave
* Saves session data to Firestore for the given session ID. * @async * @param {string} sessionId - The ID of the session to save. * @param {S
services/cloud-run/src/firestore/sessionStore.ts:91
MethodsetFileData
(event: Event)
client/web/angular-customer-app/src/app/chatbot/chatbot.component.ts:105
MethodsubmitOrder
()
client/web/angular-customer-app/src/app/chatbot/order-dialog/order-dialog.component.ts:43
FunctiontoFirestore
(data: BeverageModel[])
services/cloud-run/src/firestore/beverageConverter.ts:26