Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete 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'
Attempts:
3 left
2fill in blank
mediumComplete 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'
Attempts:
3 left
3fill in blank
hardFix 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'
Attempts:
3 left
4fill in blank
hardFill 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'
Attempts:
3 left
5fill in blank
hardFill 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'
Attempts:
3 left
