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. Agent Components

Tools, Workflows and Agents · Beginner to Intermediate

Agent Components

Model, tools, memory, goal, and stopping rule: what each part owns.

On this page

    The five components

    Five parts make the loop. The model chooses, tools act, state remembers, the goal defines done, and the stopping rule ends the run.

    Component

    Owns

    Example in a lint-triage loop

    Model

    Choosing the next action from the state.

    Picks reading the lint log before running a check.

    Tools

    Real effects with typed inputs and outputs.

    A file reader and a check runner.

    Memory and state

    Goal, history, and tool results.

    The transcript the loop re-reads each turn.

    Goal

    What counts as done.

    Every finding is explained or the budget is spent.

    Stopping rule

    When the loop must end.

    Answer reached, budget spent, or repeat detected.

    State is what the loop remembers

    State holds the goal, the actions so far, and every tool result. Each choice reads the whole state, so state size grows with steps.

    Token counts below are stated example parameters. Real counts are approximate and tokenizer-dependent.

    plaintext
    1
    2
    3
    4
    stated example: goal 200 tokens plus 150 tokens per past step
    after 4 steps: 200 + 4 x 150 = 200 + 600 = 800 tokens
    after 10 steps: 200 + 10 x 150 = 200 + 1500 = 1700 tokens
    growth per step is constant here because each result has the same size

    Stopping rules end the loop

    A loop needs at least one rule that can fire on every run. Goal reached alone is not enough, since some runs never reach it.

    • Goal reached: the answer satisfies the goal test.

    • Budget spent: the step count hits its maximum.

    • Repeat detected: the same action recurs with no new result.

    • Tool failure: a call reports an error the loop cannot handle.

    Common mistakes

    Common pitfall

    Giving the loop tools with no typed outputs. If results come back as free text, the next choice parses prose instead of reading fields.

    Interview

    Likely probes: who owns what among the five parts.

    • The model chooses; it never acts directly, tools do.

    • State is the only memory; nothing outside it reaches the next choice.

    • The stopping rule must fire even on runs that never reach the goal.

    Check yourself The loop re-reads the same file six times and never finishes. Which component is missing or broken?

    The stopping rule. A repeat detector or a tighter step budget would end the loop.

    Check yourself Where does the goal live during a run?

    In state. The loop re-reads it each turn alongside the history and tool results.

    Related topics

    • Agent loop simulator

    • Planning, memory and stopping

    Previous

    89 / 173

    Next: Agent Loop Simulator

    Up next

    Up nextAgent Loop Simulator

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • Prompts, Scripts, and Agents
    • When a Script Wins