Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to initialize the research assistant agent with a knowledge base.
Agentic_ai
agent = ResearchAssistantAgent(knowledge_base=[1]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
2fill in blank
mediumComplete the code to make the agent search for a topic.
Agentic_ai
results = agent.[1]('machine learning basics')
Drag options to blanks, or click blank then click option'
Attempts:
3 left
3fill in blank
hardFix the error in the code to generate a summary from search results.
Agentic_ai
summary = agent.[1](results) Drag options to blanks, or click blank then click option'
Attempts:
3 left
4fill in blank
hardFill both blanks to train the agent and then make a prediction.
Agentic_ai
agent.[1](training_data) prediction = agent.[2](new_input)
Drag options to blanks, or click blank then click option'
Attempts:
3 left
5fill in blank
hardFill all three blanks to create a report dictionary from keys, values, and a filter condition.
Agentic_ai
report = [1]: [2] for [3], [2] in data.items() if [2] > 0
Drag options to blanks, or click blank then click option'
Attempts:
3 left
