Passer au contenu principal
Bluvy Tube
Appuyez sur Échap pour quitter le plein écran
Volume m
/
i
Mode Cinéma t
f
/
The model said "searching", my code checked for "search", and the request fell into the else with no error. The fix: make the agent's output type the routing table. #Python #AIagents #LangGraph

Raccourcis clavier

Espace K
Lecture / pause
← →
Reculer / avancer de 5 s
J L
Reculer / avancer de 10 s
0–9
Aller à 0 %–90 % de la vidéo
Home End
Début / fin
, .
Image précédente / suivante (en pause)
< >
Ralentir / accélérer
↑ ↓
Volume
M
Couper / rétablir le son
C
Sous-titres
F
Plein écran
I
Image dans l’image
T
Mode cinéma
?
Afficher cette aide

The model said "searching", my code checked for "search", and the request fell into the else with no error. The fix: make the agent's output type the routing table. #Python #AIagents #LangGraph

0 vue Publié le 14/11/2026 03:31 1:01
#aiagents #python #langgraph
The model said "searching", my code checked for "search", and the request fell into the else with no error. The fix: make the agent's output type the routing table. #Python #AIagents #LangGraph
3 commentaires
?
Same trap with a dict of handlers: a missing key falls through silently. I'm building Tokenade, and I'd make the routing an enum, so the type checker lists every case the model may return.
The Tabby Dev @thetabby.dev · 17/11/2026 07:05
Same idea here. I went with a union of typed decisions instead of an enum, so each choice carries its own fields, like the search query. The type checker part is the real win either way.
Classic drift between what the model says and what you coded — the type system is your real guardrail. What I automated on Threads is pinned on my profile.
Voir le post d'origine sur Bluesky
Lien copié dans le presse-papier

Connexion

Il est temps de faire une pause

Ça fait 30 minutes que vous enchaînez les vidéos : accordez-vous 5 minutes loin de l'écran. Levez-vous, étirez-vous, buvez un verre d'eau… Les vidéos vous attendront ici.