#beginner
Every post tagged "beginner".
42 posts · showing 31–40
-
Why Turn 20 Costs More Than Turn 2
A six-turn run whose final context is 12,000 tokens sends 42,000. That gap is agent economics — and it makes an early oversized tool result the most expensive thing in your run.
-
Your First Agent: Build the Smallest Useful One
Three read-only tools, sixty lines of loop, and the raw array printed every turn. Then break it on purpose — a failing tool teaches more in five minutes than a week of building the complicated version.
-
Few-Shot Examples: When They Help an Agent and When They Hurt
Two or three similar examples is the worst case — enough to teach a template, not enough to convey the range. And the example nobody includes is the one where the right answer is to decline.
-
Tool Calls or Structured Output? Two Mechanisms, Two Jobs
Both emit schema-conforming JSON, which makes them look interchangeable. One expects a result back and one ends the turn — and that single difference decides every other question.
-
What a System Prompt Should and Shouldn't Contain
Five things belong in a system prompt. Most of what accumulates there — tool instructions, deterministic rules, incident patches, data — belongs somewhere it would actually work.
-
Why Two Identical Runs Give Different Answers
Same input, different result. Four things cause it, only one is a bug — and the most common culprit is that the input wasn't actually identical.
-
Format Tool Output for a Model, Not for a Log File
A bare empty array means "none exist" and "we couldn't check" at the same time, and the agent will pick the confident reading. Six changes to what your handlers return, in order of payoff.
-
Chatbot, Workflow, or Agent? Pick the Simplest Thing That Works
Six weeks building an agent for a task with three fixed steps. One question — can you draw the flowchart before seeing the input? — separates the three architectures and saves most of that time.
-
Reading Your First Agent Trace: Wrong Tool, Wrong Argument, or Wrong Plan?
Four buckets, checked in order, and most agent failures resolve before you get to the interesting one. The trick is finding the first wrong turn and reading the raw array — not the pretty rendering.
-
Prompt, Tool, or Code? Where Each Piece of Logic Belongs
A rule the agent keeps breaking usually isn't a prompting failure — it's deterministic logic filed under "advice." Two questions place any behavior in the right one of three homes.