How the Code Works
Within the ExampleAIRisk project → Pages folder when the project is first run, index.razor indexes the login url to navigate to the correct url where the project will be hosted.
Then the callback.razor page will query the code by requesting an access token, then once given the access token it navigates to the users.razor page that is the first initial page seen once project is run.
On the Users.razor page it lists out all the different users than you can login as, that once you select the user you want to login as it then logs you in as that user and navigates to the page where you choose the agent you want to chat with.
Once choosing the agent you want to chat with you are redirected to the Chat.razor page where a conversation is created with the agent and there exists a stream of asks The AIRiskModels Project under the models page exists the AIRiskAPIService.cs where here all the code that is responsible for the token, Getting Client, Login URL, Ask Stream, Get Users, List Agents, and Create Conversation exists.
Within the ExampleAIRisk project go to pages folder when the project is first run. Index.razor directs the login URL to the appropriate address where the project will be hosted.
Then the callback.razor page will query the code by requesting an access token. After receiving the access token, it redirects to the users.razor page, which is the first page displayed when the project is launched.
The Users.razor page displays a list of available users for login. After selecting a user, the system logs in as that user and redirects to the page where an agent can be selected for chat.
After selecting the agent for the chat, the system redirects to the Chat.razor page, where a conversation is initiated with the agent, and there exists a stream of asks. The AIRiskModels Project under the model's page exists the AIRiskAPIService.cs. Here all the code that is responsible for the token, Getting Client, Login URL, Ask Stream, Get Users, List Agents, and Create Conversation exists.
Last updated