Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to initialize the content creation agent with a prompt.
Agentic_ai
agent = ContentCreationAgent(prompt=[1]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
2fill in blank
mediumComplete the code to run the agent and get the generated content.
Agentic_ai
result = agent.[1]() Drag options to blanks, or click blank then click option'
Attempts:
3 left
3fill in blank
hardFix the error in the code to set the agent's content type correctly.
Agentic_ai
agent.content_type = [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
4fill in blank
hardFill both blanks to create a dictionary with content and metadata keys.
Agentic_ai
output = {"content": [1], "metadata": [2] Drag options to blanks, or click blank then click option'
Attempts:
3 left
5fill in blank
hardFill all three blanks to define a function that runs the agent and returns output.
Agentic_ai
def create_content(): [1] = ContentCreationAgent(prompt="Generate summary") [2] = agent.[3]() return [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
