Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to initialize the customer support agent with a knowledge base.
Agentic_ai
agent = CustomerSupportAgent(knowledge_base=[1]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
2fill in blank
mediumComplete the code to preprocess the user's message before passing it to the agent.
Agentic_ai
processed_message = preprocess([1]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
3fill in blank
hardFix the error in the code that generates the agent's reply.
Agentic_ai
reply = agent.generate_reply([1]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
4fill in blank
hardFill both blanks to update the agent's state and log the conversation.
Agentic_ai
agent.update_state([1]) logger.log_conversation([2])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
5fill in blank
hardFill all three blanks to define the main loop of the customer support agent.
Agentic_ai
while True: [1] = listen_to_user() [2] = preprocess([1]) [3] = agent.generate_reply([2]) send_to_user([3])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
