~/talk

Secure "Human in the Loop" Interactions for AI Agents

Talkat PyCon DE & PyData 2025 · on Wednesday, 2025-04-23· at 17:10· Europium2· [security, ai-assisted-development]
slides:none on file

Argues that human oversight must sit between planning and execution for stateful AI agents and shows a working pattern using LangChain interrupts, persisted state and resume logic. Demonstrates a stock-trading demo that pauses to ask approval before buying 10 shares of SECO at $15, implements the pause by raising an InterruptException, and stores execution context (messages plus variables like destination and price) so the workflow persists state to Redis and resumes without re-running earlier steps. Travel-booking example shows why auto-execution without review fails.

AI-written summary · about

  1. 0:00Secure human in the loop intro
  2. 1:09From chatbots to AI agents
  3. 3:37Why AI needs human oversight
  4. 7:11Risks of autonomous AI
  5. 8:39Human in the loop workflows
  6. 14:57Human review pauses AI
  7. 17:09Demo: human approval trading
  8. 18:35Code for human in the loop
  9. 21:21All for GenAI security
  10. 22:44Q&A: LangChain
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.