Session
When Prompts Fail: Enforcing Rules in Agents
You put business rules in the system prompt. The LLM finds ways around them. "Never confirm without payment" becomes "I'll make an exception this time." Prompts optimize for helpfulness, not compliance.
The fix is input validation, like in web apps: check before execution. Python hooks intercept every tool call and validate against rules defined as dataclasses. First you block violations the LLM cannot override. Then you steer: the hook guides the agent to fix its call, 15 guests becomes 10.
Outline:
• The Prompt Engineering Failure
• Neurosymbolic Architecture
• Live Implementation: Blocking
• From Blocking to Steering
• Production Patterns and Q&A
Elizabeth Fuentes Leone
Developer Advocate
San Francisco, California, United States
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top