wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Chapter 5 - Enabling Tool Use and Planning in Agents

Total questions: 74

Worksheet time: 37mins

Name
Class
Date
1.

Which concept empowers intelligent agents to reason about their own cognitive processes and dynamically modify their behaviors?

a)

Reflection and introspection

b)

Planning algorithms

c)

Tool integration

d)

Hierarchical task networks

2.

What is a significant step forward in AI agents?

a)

Increasing memory capacity

b)

Combining how agents plan and use tools

c)

Improving hardware speed

d)

Reducing energy consumption

3.

Which of the following is NOT mentioned as a type of tool that agents can utilize?

a)

APIs

b)

Databases

c)

Software functions

d)

Physical sensors

4.

Which planning algorithms are mentioned as essential for agents?

a)

State-space search, reinforcement learning, hierarchical task network planning

b)

Genetic algorithms, neural networks, clustering

c)

Sorting algorithms, searching algorithms, hashing

d)

Linear regression, decision trees, support vector machines

5.

Integrating tool use and planning is important for intelligent agents because it (a)   .

Choose from the below words
allows agents to reason about avail
increases the speed of computation
reduces the need for human supervis
improves the graphical user interfa
6.

Imagine an agent needs to choose between several APIs to complete a task. What process, as described in the chapter, should the agent follow?

a)

Assess the suitability of each API based on goals and select the most appropriate one

b)

Randomly select an API

c)

Use the API with the shortest name

d)

Choose the API that is most expensive

7.

If you were to implement a new tool for an agent, which aspect would you need to consider to ensure efficient action sequences?

a)

How the tool integrates with planning algorithms

b)

The color of the tool's interface

c)

The popularity of the tool among users

d)

The tool's price

8.

What is the primary purpose of tool usage by intelligent agents?

a)

To augment the agent’s inherent functionality and decision-making processes by leveraging external resources

b)

To reduce the agent’s reliance on external data sources

c)

To limit the agent’s ability to perform complex tasks

d)

To replace the agent’s internal algorithms with external ones

9.

What is a limitation of an agent operating in isolation?

a)

It can only use real-time data

b)

It relies solely on its internal knowledge and algorithms

c)

It can access specialized tasks

d)

It can manage complex workflows

10.

Which of the following best describes the difference between an agent in isolation and an agent with tool access when asked about the weather?

a)

The isolated agent can provide real-time weather data, while the tool-access agent cannot

b)

The tool-access agent can provide accurate, real-time weather information, while the isolated agent cannot

c)

Both agents provide the same level of information

d)

The isolated agent can execute specialized tasks, while the tool-access agent cannot

11.

Why is tool usage important for agents?

a)

It allows agents to transcend their intrinsic limitations by harnessing external tools and systems

b)

It makes agents less efficient in decision-making

c)

It restricts agents to only using training data

d)

It prevents agents from managing complex workflows

12.

Suppose you want an agent to answer a question about current weather conditions. What would be the most effective way to ensure an accurate response?

a)

Give the agent access to a real-time weather lookup tool

b)

Rely solely on the agent’s training data

c)

Ask the agent to make up an answer

d)

Limit the agent’s access to external resources

13.

Based on Figure, what is the main difference in agent behavior when it has tool access versus when it is isolated?

a)

The agent with tool access can provide specific weather data, while the isolated agent cannot

b)

The isolated agent can access external tools, while the tool-access agent cannot

c)

Both agents provide the same answer to the user

d)

The isolated agent can manage complex workflows, while the tool-access agent cannot

14.

Which of the following best describes the main significance of tool use in agents powered by LLMs?

a)

To broaden the agent’s competencies and enable it to tackle complex, real-world challenges beyond its native problem-solving abilities.

b)

To reduce the computational power required by the agent.

c)

To limit the agent’s scope to only predefined tasks.

d)

To replace the need for any external data sources.

15.

What is the primary difference between function calling and tool calling in the context of LLMs?

a)

Function calling is for internal tasks, while tool calling is for interacting with external systems.

b)

Function calling is slower than tool calling.

c)

Tool calling is only used for database lookups.

d)

Function calling requires no parameters.

16.

When an LLM invokes a tool or function, what does it actually do?

a)

It generates a structured response indicating the tool/function, parameters, and their format.

b)

It executes the code for the tool or function directly.

c)

It ignores the request and continues processing.

d)

It randomly selects a tool or function to use.

17.

Why is understanding the distinction between tool calling and function calling important for designing AI agents?

a)

It helps in integrating internal and external systems to enhance agent functionality.

b)

It allows agents to avoid using any external APIs.

c)

It ensures agents only perform database lookups.

d)

It prevents agents from accessing real-time data.

18.

Suppose an LLM is asked about the weather in a specific city. Describe the process it follows to provide an answer using tool calling.

a)

The LLM generates a structured call specifying the weather lookup function and relevant parameters, which is then handled by an external system to retrieve the answer.

b)

The LLM directly accesses the weather database and returns the answer.

c)

The LLM ignores the request if it cannot answer directly.

d)

The LLM asks the user to look up the weather themselves.

19.

Match each item below with whether it is included or NOT included in the structured response generated by an LLM when invoking a tool or function.

a)

The expected output format of the tool/function.

1.

NOT included in the structured response.

b)

Which tool/function it wants to use.

2.

Included in the structured response.

c)

What parameters should be passed to the tool/function.

3.

Included in the structured response.

d)

How those parameters should be formatted.

4.

Included in the structured response.

20.

Which of the following models is explicitly trained for tool calling behavior?

a)

OpenAI's GPT-4

b)

BERT

c)

ResNet

d)

VGGNet

21.

What is the main purpose of using docstrings when defining tools in frameworks like CrewAI or LangGraph?

a)

To provide descriptive text about the tool's function

b)

To increase the speed of code execution

c)

To encrypt the tool's logic

d)

To reduce memory usage

22.

Which of the following is NOT typically included in a tool's docstring?

a)

The tool's purpose

b)

Required and optional arguments

c)

Expected return values

d)

The tool's graphical user interface

23.

Why might some models achieve similar tool calling functionality with aggressive prompt engineering, even if not explicitly trained for it?

a)

Because prompt engineering can guide the model's behavior

b)

Because all models have built-in tool calling capabilities

c)

Because prompt engineering increases model size

d)

Because prompt engineering disables tool calling

24.

In Python, how are docstrings typically enclosed when defining tools?

a)

Triple quotes (""")

b)

Single quotes (')

c)

Double quotes (")

d)

Curly braces ({})

25.

When defining a tool for an agent using a framework approach, the docstring should include (a)   to ensure clarity for users.

Choose from the below words
The tool's purpose, required and op
Only the tool's name
The tool's color scheme
The tool's author
26.

A developer wants to create a tool for looking up weather data using a framework like CrewAI. What is the strategic advantage of using docstrings for this purpose?

a)

It makes tool creation intuitive and follows standard programming practices

b)

It makes the tool run faster

c)

It hides the tool from users

d)

It prevents errors in the code

27.

Tools must be defined in (a)   format when working directly with LLM APIs without a framework.

Choose from the below words
XML schema format
YAML schema format
JSON schema format
CSV schema format
28.

When defining multiple tools for LLM APIs, how are they typically organized?

a)

As a single string

b)

As a list (or array) of JSON schema objects

c)

As a binary file

d)

As a spreadsheet

29.

Why is there an increase in affinity toward using libraries or frameworks such as CrewAI, LangGraph, and AutoGen for tool definitions in LLM agents?

a)

They provide more complex APIs

b)

They offer simplified ways of defining tools regardless of the LLM being used

c)

They require manual tool management

d)

They only work with OpenAI's GPT

30.

Suppose you are working on a project that uses multiple LLM models, each with different ways of defining tools. What challenge might you encounter, and how could you address it?

a)

Difficulty in training the models; use more data

b)

Cumbersome tool definition and management; use libraries or frameworks to simplify the process

c)

Slow response times; upgrade your hardware

d)

Inconsistent output formatting; use a different programming language

31.

Which type of tool serves as the primary gateway for agents to access external services and data in real time?

a)

Application programming interfaces (APIs)

b)

Database tools

c)

Utility functions

d)

Hardware interface tools

32.

What is the main function of database tools in LLM agents?

a)

Connecting different systems and services

b)

Storing, retrieving, and managing structured data

c)

Handling specialized tasks that run locally

d)

Interacting with physical devices

33.

Utility functions in agent toolkits are particularly valuable for which type of tasks?

a)

Tasks that require integration between platforms

b)

Tasks that require consistent, repeatable operations

c)

Tasks that involve physical device control

d)

Tasks that require real-time data access

34.

Integration tools are essential for (a)   agent capabilities.

Choose from the below words
Managing historical transaction rec
Orchestrating complex workflows acr
Performing mathematical calculation
Processing sensor data from IoT dev
35.

How do hardware interface tools extend the influence of agents beyond digital interactions?

a)

By enabling agents to process natural language

b)

By allowing agents to access web services

c)

By enabling agents to affect real-world changes and monitor physical environments

d)

By supporting both reading and writing operations in databases

36.

An agent needs to maintain persistent information across sessions and access domain-specific knowledge bases. It should primarily use (a)   .

Choose from the below words
Application programming interfaces
Database tools
Utility functions
Integration tools
37.

If an agent must handle calendar synchronization and file management across multiple platforms, which tool category is most appropriate?

a)

Utility functions

b)

Hardware interface tools

c)

Integration tools

d)

Application programming interfaces (APIs)

38.

Match each toolkit category to the scenario where it is most essential for agents working with robotics systems and sensor data.

a)

Database tools

1.

Storing and retrieving large amounts of sensor data efficiently

b)

Hardware interface tools

2.

Directly controlling motors, sensors, and other physical components

c)

Utility functions

3.

Performing common calculations or data transformations on sensor readings

d)

Integration tools

4.

Connecting different software systems used in robotics workflows

39.

Explain how utility functions contribute to the efficiency of agent operations. Provide an example of a task they might handle.

a)

Utility functions enable agents to connect different systems, such as calendar and file management.

b)

Utility functions handle specialized tasks locally, such as data processing or mathematical calculations, making operations consistent and repeatable.

c)

Utility functions allow agents to interact with physical devices and monitor environments.

d)

Utility functions provide standardized methods for accessing external web services.

40.

Strategically, why might an agent combine multiple tool types to perform a complex task? Illustrate with an example.

a)

To reduce the number of operations required for simple tasks

b)

To ensure all tasks are performed in real time

c)

To create powerful capabilities by leveraging the strengths of each tool type, such as integrating APIs for data access, databases for storage, and utility functions for processing

d)

To avoid interacting with physical environments

41.

Which of the following best describes "tool composition and chaining" in the context of agent systems?

a)

Combining multiple tools to accomplish complex tasks

b)

Selecting the most secure tool for a task

c)

Updating tools to the latest version

d)

Handling errors when a tool fails

42.

What is a primary consideration for agents when performing tool selection and decision-making?

a)

Choosing the tool with the most features regardless of cost

b)

Selecting the most suitable tool or combination of tools based on context and requirements

c)

Always using the newest tool available

d)

Ignoring performance and reliability factors

43.

Which strategy is most appropriate for agents to handle failures when working with tools?

a)

Implementing fallback mechanisms to switch to alternative tools or approaches

b)

Ignoring the failure and continuing the process

c)

Always restarting the entire workflow

d)

Only using tools that never fail

44.

Tool state management is important for agents because (a)   .

Choose from the below words
To ensure proper resource allocatio
To always use the same tool for eve
To avoid updating tools
To increase the number of tools use
45.

What is a key reason for agents to handle tool updates and versioning?

a)

To maintain compatibility with multiple versions and adapt to new tool interfaces

b)

To avoid using deprecated features entirely

c)

To only use the oldest version of a tool

d)

To ignore changes in tool capabilities

46.

Which of the following is a critical aspect of tool security and access control for agents?

a)

Managing authentication credentials and respecting rate limits

b)

Always sharing credentials with all users

c)

Ignoring communication channel security

d)

Using tools without any access restrictions

47.

Given a scenario where a user requests flight and hotel options for a trip within a specific budget, which agent capabilities are most likely to be involved? (Select the best answer.)

a)

Tool composition and chaining, tool selection, and error handling

b)

Only tool updates and versioning

c)

Only tool state management

d)

Only tool security and access control

48.

A key reason for the paradigm shift toward tool use in agentic systems is (a)   .

Choose from the below words
The need to encapsulate all knowled
The recognition that complex proble
The desire to reduce the number of
The focus on limiting agent capabil
49.

How can agents in healthcare benefit from using external tools?

a)

By providing personalized recommendations using medical databases and decision support systems

b)

By ignoring external resources and relying only on internal reasoning

c)

By limiting their advice to general health tips

d)

By using only basic diagnostic algorithms

50.

Which of the following is NOT mentioned as a domain where intelligent agents can use tools?

a)

Robotics and automation

b)

Manufacturing plants

c)

Physical realm

d)

Space exploration

51.

Match each statement about intelligent agents with the correct reason why utilizing external tools and resources is important.

a)

It allows agents to adapt and thrive in dynamic, complex environments

1.

Agents can respond to changing situations and solve new problems by leveraging various resources.

b)

It restricts agents to a single tool

2.

Agents are limited in their capabilities and flexibility.

c)

It makes agents less efficient

3.

Agents are unable to optimize their performance and may waste resources.

d)

It prevents agents from achieving ambitious objectives

4.

Agents are unable to reach challenging goals due to lack of support from external tools.

52.

A virtual travel agent can leverage APIs from which of the following sources to plan and book complete travel itineraries?

a)

Airlines, hotels, rental car companies, and travel review sites

b)

Only airlines

c)

Only hotels

d)

Only travel review sites

53.

How does the integration of various tools and databases enhance the capabilities of an AI travel agent?

a)

It allows the agent to provide personalized recommendations and coordinate all aspects of a trip

b)

It limits the agent to searching flights only

c)

It makes the agent slower in planning trips

d)

It prevents the agent from accessing real-time data

54.

Imagine you are designing an agent for a manufacturing plant. How would you strategically use external tools to improve the agent’s performance in handling assembly tasks?

a)

By leveraging various tools and machinery to perform intricate assembly tasks, quality inspections, or material handling operations

b)

By restricting the agent to software-based tools only

c)

By ignoring the use of physical tools and machinery

d)

By focusing only on the agent’s internal reasoning capabilities

55.

What reasoning process would an AI travel agent use to make intelligent trade-offs when booking a trip for a user?

a)

Integrating and reasoning over data from various sources to provide recommendations tailored to the user's preferences and constraints

b)

Randomly selecting travel options without considering user preferences

c)

Ignoring customer ratings and travel document requirements

d)

Focusing only on flight schedules without considering other factors

56.

Which of the following is a fundamental capability of intelligent agents that enables them to reason about their actions and devise strategies to achieve their objectives?

a)

Planning

b)

Memorization

c)

Visualization

d)

Networking

57.

What is the main challenge of using traditional planning algorithms like STRIPS and A* planning for LLM agents?

a)

They are too slow for real-time applications

b)

They struggle with handling natural language and nuanced states

c)

They require expensive hardware

d)

They cannot process binary conditions

58.

Which planning algorithms are considered most practical for LLM agents due to their alignment with language model processing?

a)

STRIPS and MCTS

b)

LLM-based planning and HTN

c)

GraphPlan and Fast Forward

d)

A* planning and Monte Carlo Tree Search

59.

STRIPS planning algorithm is most effective for which type of conditions?

a)

Nuanced language states

b)

Clear, binary conditions

c)

Probabilistic outcomes

d)

Continuous variables

60.

STRIPS is considered too rigid for language-based planning in LLM agents because it struggles with (a)   .

Choose from the below words
It cannot model true/false states
It is unable to process large state
It struggles with nuanced language
It requires manual intervention for
61.

Suppose you are designing a planning system for an LLM agent that must handle a wide variety of conversation states and knowledge contexts. Which type of planning algorithm would be most suitable?

a)

STRIPS

b)

LLM-based planning

c)

Monte Carlo Tree Search

d)

GraphPlan

62.

Given the limitations of STRIPS in handling nuanced language states, what adaptation might be necessary to make it more suitable for LLM agents?

a)

Reducing all states to binary true/false conditions

b)

Incorporating probabilistic reasoning and flexible state representations

c)

Increasing the speed of computation

d)

Limiting the number of possible actions

63.

Which fundamental challenge does the A* planning algorithm face when applied to LLM agents?

a)

Difficulty in quantifying the “distance” between conversation states

b)

Lack of computational power

c)

Inability to generate any actions

d)

Over-reliance on random sampling

64.

Why is GraphPlan considered computationally intractable for language-based planning in LLM agents?

a)

It cannot represent possible actions

b)

Language interactions do not fit into discrete layers with clear cause-and-effect relationships

c)

It requires too much memory for simple tasks

d)

It only works for numeric data

65.

What is one reason MCTS becomes impractical for LLM agents?

a)

It does not use simulations

b)

It requires actual LLM calls for each simulation, making it expensive

c)

It cannot handle numeric data

d)

It is only suitable for image processing

66.

(a)   is considered moderately practical for use with LLM agents.

Choose from the below words
A* planning
GraphPlan
FF planning
MCTS
67.

How does FF planning’s goal-oriented approach benefit LLM agents in handling language tasks?

a)

It ignores the context of the conversation

b)

It aligns with how LLMs handle task completion and provides useful approximations for complex tasks

c)

It eliminates the need for heuristic search

d)

It only works for numeric planning problems

68.

What modification is necessary for FF planning to work effectively with LLM agents?

a)

Removal of heuristic search

b)

Adaptation to handle natural language and partial state descriptions

c)

Conversion to a random sampling algorithm

d)

Restriction to numeric data only

69.

Considering the limitations of A*, GraphPlan, and MCTS, why might FF planning still be considered for LLM agents despite its own challenges?

a)

FF planning is the only algorithm available

b)

FF planning offers goal-oriented search and flexibility for partial state descriptions, which are valuable in language contexts

c)

FF planning does not require any modifications

d)

FF planning is computationally intractable

70.

Match the following planning approaches with their corresponding descriptions.

a)

LLM-based planning and HTN planning

1.

These two approaches are mentioned as most practical for LLM agents.

b)

Genetic algorithms and A* search

2.

These two approaches are commonly used in optimization and pathfinding problems.

c)

Breadth-first search and depth-first search

3.

These two approaches are classic uninformed search strategies in computer science.

d)

Monte Carlo tree search and Q-learning

4.

These two approaches are popular in reinforcement learning and game tree exploration.

71.

Which principle does LLM-based planning operate on?

a)

Language models can only recall facts

b)

Language models can understand complex goals and adapt steps based on context

c)

Language models require explicit state representations

d)

Language models cannot handle real-world scenarios

72.

What is one advantage of LLM-based planning over traditional planning algorithms?

a)

It ignores context

b)

It uses only numerical data

c)

It handles complex, real-world scenarios more flexibly

d)

It requires explicit state representations

73.

Which of the following is NOT a component integrated during the context integration phase of LLM-based planning?

a)

Domain knowledge

b)

Current state

c)

Constraints

d)

Execution planning

74.

In the LLM-based planning algorithm flow, what happens if the monitoring step determines that the plan was not successful?

a)

The process ends

b)

The plan is regenerated

c)

The final state is reached

d)

The constraints are removed