0
0
Agentic_aiml~10 mins

Agent API design patterns 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 create an agent that uses a single tool.

Agentic_ai
agent = Agent(tools=[[1]])
Drag options to blanks, or click blank then click option'
Atools
Btoolset
Ctool_list
Dtool
Attempts:
3 left
2fill in blank
medium

Complete the code to initialize an agent with a memory component.

Agentic_ai
agent = Agent(memory=[1])
Drag options to blanks, or click blank then click option'
Amemory_buffer
BMemoryBuffer()
CMemory
DbufferMemory
Attempts:
3 left
3fill in blank
hard

Fix the error in the agent's run method call to pass the input correctly.

Agentic_ai
result = agent.run([1]="What is the weather today?")
Drag options to blanks, or click blank then click option'
Ainput
Bquery
Cprompt
Dtext
Attempts:
3 left
4fill in blank
hard

Fill both blanks to create a tool that wraps a function and add it to the agent.

Agentic_ai
tool = Tool(name=[1], func=[2])
agent = Agent(tools=[tool])
Drag options to blanks, or click blank then click option'
A"calculator"
Bcalculate
Dcalc
Attempts:
3 left
5fill in blank
hard

Fill all three blanks to define an agent with tools, memory, and a callback manager.

Agentic_ai
agent = Agent(
    tools=[[1]],
    memory=[2],
    callback_manager=[3]
)
Drag options to blanks, or click blank then click option'
Atool
BMemoryBuffer()
CCallbackManager()
Dtools
Attempts:
3 left