Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Filter by Categories
About Article
Analyze Data
Archive
Best Practices
Better Outputs
Blog
Code Optimization
Code Quality
Command Line
Course
Daily tips
Dashboard
Data Analysis & Manipulation
Data Engineer
Data Visualization
DataFrame
Delta Lake
DevOps
DuckDB
Environment Management
Feature Engineer
Git
Jupyter Notebook
LLM
LLM Tools
Machine Learning
Machine Learning & AI
Machine Learning Tools
Manage Data
MLOps
Natural Language Processing
Newsletter Archive
NumPy
Pandas
Polars
PySpark
Python Helpers
Python Tips
Python Utilities
Scrape Data
SQL
Testing
Time Series
Tools
Visualization
Visualization & Reporting
Workflow & Automation
Workflow Automation

Newsletter #238: Build Human-in-the-Loop AI Agents with LangChain

Newsletter #238: Build Human-in-the-Loop AI Agents with LangChain


๐Ÿ“… Today’s Picks

Generate Time-Sortable IDs with Python 3.14’s UUID v7

Code example: Generate Time-Sortable IDs with Python 3.14's UUID v7

Problem

UUID4 generates purely random identifiers that lack chronological ordering.

Without embedded timestamps, you need separate timestamp fields and custom sorting logic to organize records by creation time.

Solution

Python 3.14 introduces UUID version 7 with built-in timestamp ordering.

Key features:

  • Determine creation order by comparing two UUIDs directly
  • Retrieve exact creation time by extracting the embedded timestamp

Build Human-in-the-Loop AI Agents with LangChain

Code example: Build Human-in-the-Loop AI Agents with LangChain

Problem

Without human oversight, AI agents can make irreversible mistakes by executing risky operations like database deletions.

Solution

LangChain v1.0’s interrupt() function pauses agent execution at critical decision points for human review.

How it works:

  • interrupt() pauses tool execution for human review
  • MemorySaver checkpointer enables pause/resume functionality
  • Human reviews proposed action and approves or rejects
  • Command(resume=…) continues execution after approval

This gives you full control over critical AI decisions before they execute.


โ˜•๏ธ Weekly Finds

formulas [Data Processing] – Excel formulas interpreter in Python that parses and compiles Excel formula expressions and workbooks

MindsDB [ML] – Open-source AI development platform that allows users to build, train and deploy machine learning models using SQL queries

TimescaleDB [Data Engineer] – PostgreSQL extension for high-performance real-time analytics on time-series and event data

Looking for a specific tool? Explore 70+ Python tools โ†’

Stay Current with CodeCut

Actionable Python tips, curated for busy data pros. Skim in under 2 minutes, three times a week.

Leave a Comment

Your email address will not be published. Required fields are marked *

0
    0
    Your Cart
    Your cart is empty
    Scroll to Top

    Work with Khuyen Tran

    Work with Khuyen Tran