1/11
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
What is an agent?
A model calling tools in a loop until a given task is complete.
What are the two options a model has after analyzing a request?
Either give a Result right away, or perform an Action via tools.

explain this process
This diagram illustrates an AI agent loop where a model receives a request, executes an action by invoking external tools, incorporates the resulting observation back into its process, and ultimately produces a final result
What is an Observation in the ReAct loop?
Either trigger a new action so the loop repeats, or produce the final Result.
After analyzing an observation, what can the model do?
Either trigger a new action so the loop repeats, or produce the final Result.
What is a Harness?
Everything that wraps the ReAct loop and controls it from outside: the prompt, the tools, and any middleware that shapes the model's behavior.
What is the job of a harness?
To get the model the right context at the right time for the given task.
agent = _______(model="openai:gpt-4o-mini", tools=[search], ________="You are helpful assistant")Python
from langchain.agents import create_agent
agent = create_agent(model="openai:gpt-4o-mini", tools=[search], system_prompt="You are helpful assistant")
agent = create_agent(________="openai:gpt-4o-mini", tools=[search], system_prompt=________)agent = create_agent(model="openai:gpt-4o-mini", tools=[search], system_prompt="You are helpful assistant")agent = create_agent(model="openai:gpt-4o-mini", ________=[search], system_prompt="You are helpful assistant")agent = create_agent(model="openai:gpt-4o-mini", tools=[search], system_prompt="You are helpful assistant")________ = create_agent(model="openai:gpt-4o-mini", tools=[________], system_prompt="You are helpful assistant")agent = create_agent(model="openai:gpt-4o-mini", tools=[search], system_prompt="You are helpful assistant")agent = create_agent(model=________, tools=[search], system_prompt="You are helpful assistant")agent = create_agent(model="openai:gpt-4o-mini", tools=[search], system_prompt="You are helpful assistant")