Oğuz Erol Full-Page Visual System Explainers
03 / 10 All Explainers (10) oguzerol.com Türkçe

Bounded Classifier, Open-Ended LLM & Agent

How bounded typed classifiers (Choice · Score · Boolean Gate) and open-ended LLMs divide work on the exact same ticket.

Bounded Decision Model

Closed Answer Space
Input
Parallel Typed Evaluation
Urgent?
Yes0.94
No0.06
Owner?
Logistics0.91
Other0.09
Risk?
High0.88
Low0.12
Missing?
Photo0.93
None0.07
Typed answers with probability distributions; zero free-text parsing ambiguity.
Same Input / Context
Ticket #4812 + Customer Message + Policy
Same input · Different interface · Different job

Open-Ended LLM

Open-Ended Generation
Input
Token-by-token generation
Text / JSON output
Schema validation (JSON Schema)
Decision in app code
Example Output (JSON)
{
  "urgent": true,
  "owner": "logistics",
  "risk": "high",
  "draft": "Damage report..."
}
Generates natural language, explanations, and multi-step reasoning; cost scales with output tokens. Modern LLM APIs do support JSON Schema, parallel calls, and logprobs, though at higher overhead for high-volume gating.

3 Decision Primitives

Define the question structure; get typed decisions instead of prose.

Choice

Pick one known option

Logistics
0.91
Billing
0.06
Sales
0.02
Support
0.01

Score

Place on an ordered scale

What is the risk level?
Low Medium High (0.88)

Boolean Gate

Test condition: Is this action irreversible?

Yes0.96
No0.04
Note: TypeSafe AI's commercial JEV model calls this binary gate "Noul"; in general architecture it is a boolean gate.

5 Real Judgment Points Inside an Agent

RouteWhich team or sub-agent should handle this?
GateIs this safe, or is human approval needed?
RerankWhich retrieved passage is most relevant?
VerifyDoes the output satisfy policy & schema rules?
JudgeIs the generated reply faithful to evidence?
Calibration warning: A raw 0.90 score does not mean 90% real-world accuracy without calibration.

When to Use a Bounded Classifier

  • The answer space is a known, closed set of options
  • Routing and gating decisions must run at low latency
  • Application code needs a typed enum, score, or boolean flag
  • You control risk with calibrated thresholds (e.g. escalate < 0.80)
  • Thousands of repeated triage or rerank checks happen per minute
  • You want predictable flat cost without prose parsing overhead

When to Use an Open-Ended LLM & Agent

  • Customers or staff need fluent natural language responses
  • Complex documents require synthesis, comparison, and explanation
  • Code, SQL queries, or rich multi-field drafts must be generated
  • The answer space is open-ended and cannot be enumerated upfront
  • Multiple reasoning steps depend dynamically on earlier findings
  • The task requires creating an artifact rather than picking a label