1.1 What Is an AI Agent?

Meet your first Research Agent.

4 min read
Friendly blue-and-ivory AI agent mascot waving hello.

Introduction

A language model can answer questions, explain concepts, analyze information, and generate content. But how do we turn those capabilities into an AI agent that can carry out a specific task?

We’ll begin with a simple agent built using the OpenAI Agents SDK. It combines a language model with instructions that define its task and guide its behavior. The application runs the agent and handles its results.

Later, we’ll give our agent tools to retrieve information and perform actions. We’ll also explore how agents can work through multiple steps, using earlier results to decide what to do next.

1. Language Model vs. AI Agent

A language model is the underlying AI system. It processes input and generates a response based on patterns learned during training and the information available in its current context.

We begin with the simplest kind of AI agent: an Agent component in the OpenAI Agents SDK, configured to use a language model to perform tasks according to defined instructions. The surrounding application manages how the agent is run and how its results are used.

Language model AI agent
Generates responses from supplied input Uses a model to carry out a configured task
Receives instructions as part of its input Has standing instructions that guide its behavior across tasks
Has no inherent access to external tools or systems Can be configured with tools and external capabilities
Produces model-generated output Operates within an application that manages execution and results

Application

Provides the task and manages execution.

Agent

Holds the configuration and instructions that guide its behavior.

Language model

Generates a response using the instructions and task.

Result

Returned to the application.

How an application uses an agent.

The application gives a task to the agent. The agent holds the configuration and instructions that guide its behavior, and passes them with the task to the language model. The model generates a response, and the result is returned to the application.

The distinction is not that an agent is necessarily more intelligent than a model.

Configuring a model with instructions is our starting point. Later, we’ll add tools and multi-step execution to our agent.

The model provides the intelligence. The agent configuration and application determine how that intelligence is directed and used.

2. What Makes an Agent Useful?

Agent instructions help establish a consistent approach to a particular type of task.

For example, instead of repeatedly asking a general-purpose model to analyze a business hypothesis, we can configure a Research Agent with instructions describing:

  • Purpose: What kind of work the agent is intended to perform.
  • Approach: How it should investigate a question and organize its analysis.
  • Behavioral rules: What it should avoid, such as presenting unverified claims as established facts.
  • Output style: How its findings should be communicated.

We can then give that agent different research questions without redefining its general instructions each time.

These instructions guide the model’s behavior, but they do not guarantee that every response will comply. Stronger validation and enforcement mechanisms will be introduced later in the course.

3. Our First Research Agent

In Lab 1, we’ll build a Research Agent to examine a product strategy question: Could AI coding tools change the role of product managers?

Some product managers may continue to focus primarily on strategy and organizational decisions. Others may take a more hands-on role in building software with AI coding tools.

Our agent will examine these possibilities, identify assumptions, consider arguments for and against them, and suggest questions for further research.

However, our first agent has an important limitation:

It does not have access to live research tools or external information sources.

It can analyze the hypothesis using the model’s existing capabilities, but it cannot independently discover current evidence or verify its conclusions.

In later modules, we’ll add tools and research workflows that let agents gather evidence, building toward a more complete research application.

4. Agents, Autonomy, and Limitations

Not every agent is autonomous.

Our first Research Agent receives a task, generates an analysis, and returns a result. It does not independently search for information or take actions in external systems.

More capable agents may select tools, examine intermediate results, and decide what step to take next within the boundaries established by their application.

The degree of autonomy depends on the agent’s configuration, available tools, and execution controls.

It is also important to distinguish reasoning about evidence from gathering and verifying evidence.

A model can produce a convincing analysis without having access to reliable or current sources. A well-structured response is not, by itself, proof that the conclusions are correct.

This distinction will remain important as our Research Agent becomes more capable.

Key Takeaways

  • A language model provides the underlying capability to process information and generate responses.
  • An AI agent uses that model with instructions that establish its purpose and expected behavior.
  • The application manages the agent’s execution and handles its results.
  • Agents may use tools and perform multi-step tasks, but those capabilities are not automatic.
  • Agent instructions guide behavior; they do not guarantee factual accuracy or compliance.
  • Our first Research Agent performs hypothesis analysis, not independent research.

Reflection

If our Research Agent can analyze a hypothesis but cannot retrieve external evidence, what can we reasonably trust it to do, and what still requires verification?

Consider the difference between identifying plausible arguments, generating research questions, and establishing whether a claim is supported by reliable evidence.

Test Your UnderstandingOptional · 3 questions

Question 1 of 3

What is the main difference between a language model and an AI agent?