0
0
Agentic_aiml~10 mins

Content creation agent workflow in Agentic Ai - Interactive Code Practice

Choose your learning style8 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete 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'
ANone
B12345
CTrue
D"Write a blog post about AI"
Attempts:
3 left
2fill in blank
medium

Complete 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'
Atrain
Bsave
Crun
Dload
Attempts:
3 left
3fill in blank
hard

Fix 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'
A"text"
BContentType.TEXT
Ctext
Dcontent_type.text
Attempts:
3 left
4fill in blank
hard

Fill 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'
Aresult
Bagent
C{}
DNone
Attempts:
3 left
5fill in blank
hard

Fill 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'
Aagent
Bresult
Crun
Dcontent
Attempts:
3 left