Agent & Harness

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

flashcard set

Earn XP

Description and Tags

Last updated 6:40 PM on 8/2/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

12 Terms

1
New cards

What is an agent?

A model calling tools in a loop until a given task is complete.

2
New cards

What are the two options a model has after analyzing a request?

Either give a Result right away, or perform an Action via tools.

3
New cards
<p>explain this process</p>

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

4
New cards

What is an Observation in the ReAct loop?

Either trigger a new action so the loop repeats, or produce the final Result.

5
New cards

After analyzing an observation, what can the model do?

Either trigger a new action so the loop repeats, or produce the final Result.

6
New cards

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.

7
New cards

What is the job of a harness?

To get the model the right context at the right time for the given task.

8
New cards
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")

9
New cards
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")

10
New cards
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")

11
New cards
________ = 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")

12
New cards
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")