Ontologies as Guardrails for Agents — Frank Coyle, UC Berkeley
Episode details
Episode description
An agent can produce a valid tool call and still violate the rules of your domain. Frank Coyle shows how ontologies add logical constraints around probabilistic LLMs, using an agent loop to locate checks before and after tool execution. He connects shared definitions and reusable vocabularies to knowledge graphs, Claude Code hooks, and validation with Pydantic, SHACL and SPARQL. Speaker info: - https://www.frank-coyle.ai/ - https://dev.to/frank_coyle_969c2658e185c - https://www.codesupreme.ai/ Timestamps: 0:00 - Introduction 1:45 - Agentic AI meets ontologies 3:23 - Why language models need guardrails 5:41 - Loops and computability 7:27 - Inside an agent tool loop 9:09 - Where guardrails fit 11:31 - Claude Code hooks 13:27 - Defining terms before building an ontology 16:21 - Reusing existing ontologies 18:33 - OntoExplorer 20:28 - RDFS and OWL reasoning 24:16 - Validation, policy and provenance