Skip to content
DenseChip
Learn
PracticeCode labInterview

DenseChip

Navigate

Menu

LearnPracticeCode labInterview

Tools

All toolsSV editorCode repoResume
DenseChip

Practice, courses, and chip-design tools in one focused workspace.

LearnPracticeCode labInterviewToolsLearning paths

© 2026 DenseChip

AboutContactPrivacyTerms
Skip to lesson

Course contents

  • Getting Started with AI for VLSI Engineers5
  • Just Enough AI: Models and Context15
  • Prompting13
  • Trust and Verification14
  • Using AI for Engineering Work17
  • Engineering Walkthroughs7
  • Practical Foundations for AI Workflows4
  • Engineering Data5
  • Retrieval-Augmented Generation6
  • Agents and Tool Use18
    • What an Agent Is
      • Prompts, Scripts, and Agents
      • The Agent Loop Step by Step
      • Agent Components
      • Agent Loop Simulator
      • When a Script Wins
    • Tool Use and Structured Output
    • Planning, Memory and Stopping
    • Multi-Agent Patterns and When Not to Use Agents
  • Agent Design8
  • MCP and Skills6
  • Multi-Agent Design6
  • Practical Capstone6
  • Tokens, Cost and Latency12
  • Agentic Workflows for Chip Teams18
  • Interview and Judgment10
  • AI Skills: Full Course Index
  • Working with AI Glossary
  • Working with AI Cheatsheet
Loading lesson

‹What an Agent Is
  1. Topics
  2. AI Skills for VLSI Engineers
  3. Agents and Tool Use
  4. What an Agent Is
  5. Prompts, Scripts, and Agents

Tools, Workflows and Agents · Beginner to Intermediate

Prompts, Scripts, and Agents

One prompt, one script, and one loop: how the three approaches differ.

On this page

    One prompt, one answer

    A single prompt sends one input and returns one answer. Any follow-up is a fresh request unless the caller re-attaches the history.

    Prompts are stateless between calls. Whatever the model is not shown again, it no longer knows.

    A fixed script repeats exact steps

    A workflow script runs steps in a fixed order. It may call a model at fixed points, but results never change which step runs next.

    Scripts are predictable and cheap to reason about. A new case needs a new branch written by the author.

    An agent chooses each step

    An agent reads the goal and the current state, then picks the next action. Tool results update the state, so the path differs per run.

    That freedom is the whole difference. A script encodes the path; an agent discovers it one choice at a time.

    Approach

    What varies at run time

    Where it breaks

    Single prompt

    Nothing beyond the wording of the answer.

    Multi-step tasks need several calls with memory.

    Fixed script

    Data values, not step order.

    A case the author never coded takes the wrong branch.

    Agent loop

    The step sequence itself.

    A wrong early choice compounds into later steps.

    Common mistakes

    Common pitfall

    Calling any program that touches a model an agent. If no model output ever changes a later step, the system is a script with a model inside, not an agent.

    Interview

    Likely probes: the one test that separates scripts from agents.

    • Ask whether a tool result can change which step runs next.

    • If yes, there is an agent loop; if no, it is a script.

    • A model inside a fixed stage does not make the system an agent.

    Check yourself A script calls a model to draft text, then always runs spell-check and publish in that order. Agent or script?

    Script. The step order is fixed and no result changes it; the model is a fixed stage, not a chooser.

    Check yourself What single test separates an agent from a fixed script?

    Ask whether a tool result can change which step runs next. If yes, there is an agent loop; if no, it is a script.

    Related topics

    • The agent loop step by step

    • Tool use and structured output

    Previous

    87 / 173

    Next: The Agent Loop Step by Step

    Up next

    Up nextThe Agent Loop Step by Step

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • Agent Components
    • Agent Loop Simulator
    • When a Script Wins