Middleware architecture overview

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

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

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

13 Terms

1
New cards

What is a middleware in the ReAct loop?

A hook into the ReAct loop — e.g. "before calling the model," "after a tool," "before responding to the user."

2
New cards

What does Code Interpreter middleware do?

The model writes code, and the code runs in an isolated environment.

3
New cards

What does Sandbox middleware do?

Provides an isolated environment so the agent can't break your system.

4
New cards

What does Filesystem middleware do?

Provides file access: reading, writing, document analysis.

5
New cards

What does Planning middleware do?

The agent builds a plan (step 1 → step 2 → step 3) and then executes it.

6
New cards

What does Subagents middleware do?

Spawns child agents for parallel work.

7
New cards

What does Human-in-the-loop middleware do?

Before an important action, the agent asks for permission.

8
New cards

What does Skills middleware provide?

Reusable skills, i.e. pre-trained patterns.

9
New cards

What does Memory middleware provide?

Long-term memory across sessions.

10
New cards

What does Summarization middleware do?

Compresses long history to fit the context window.

11
New cards

What does Context offloading do?

Offloads part of the context to external storage and loads it back as needed.

12
New cards

What does Prompt caching do?

Caches part of the prompt so it isn't recomputed every time.

13
New cards

What is an agent without middleware?

Just: request → model → response.