Tagged articles
27 articles
Page 1 of 1
Su San Talks Tech
Su San Talks Tech
May 18, 2026 · Artificial Intelligence

How to Guarantee Reliable Function Calling in LLM Agents

The article breaks down the reliability challenges of LLM Function Calling, categorizes five failure modes, and presents concrete engineering safeguards such as precise schema design, tool description, constraint enforcement, few‑shot calibration, structured output, validation‑feedback loops, monitoring, and risk‑aware trade‑offs.

Function CallingJSON SchemaLLM
0 likes · 17 min read
How to Guarantee Reliable Function Calling in LLM Agents
Data Party THU
Data Party THU
Apr 14, 2026 · Backend Development

10 Advanced Pydantic V2 Tricks to Harden Your FastAPI Production

Discover ten essential Pydantic V2 techniques—including strict mode, field constraints, separate create/update/response models, cross‑field validators, custom error handling, reusable types, forbidden extra fields, nested models, computed fields, and discriminated unions—to prevent subtle bugs and ensure robust, secure FastAPI APIs in production.

Backend DevelopmentFastAPIPydantic
0 likes · 17 min read
10 Advanced Pydantic V2 Tricks to Harden Your FastAPI Production
Data STUDIO
Data STUDIO
Apr 1, 2026 · Backend Development

10 Advanced Pydantic Tricks to Strengthen FastAPI Request Validation

The article shows how Pydantic’s default type coercion can silently accept malformed data—dangerous for payment APIs—and presents ten advanced techniques, including strict mode, field constraints, separate create/update/response models, cross‑field validators, custom error handling, reusable types, extra‑field forbidding, nested models, computed fields, and discriminated unions, to enforce robust FastAPI request validation.

API SecurityBackendFastAPI
0 likes · 19 min read
10 Advanced Pydantic Tricks to Strengthen FastAPI Request Validation
Test Development Learning Exchange
Test Development Learning Exchange
Mar 19, 2026 · Backend Development

Contract‑Driven API Testing with Pydantic and JSON Schema

In fast‑changing APIs, traditional assertions break when fields change, but a dual‑engine approach using JSON Schema for structural contracts and Pydantic for business rules provides a resilient, maintainable testing solution that adapts to evolution while keeping tests focused on critical data.

API testingContract-drivenJSON Schema
0 likes · 9 min read
Contract‑Driven API Testing with Pydantic and JSON Schema
Data STUDIO
Data STUDIO
Mar 16, 2026 · Backend Development

11 Essential Pydantic v2 Practices to Avoid Common Pitfalls

This article explains why rigorous data validation is crucial and presents eleven practical Pydantic v2 techniques—including strong typing, boundary validation, separating validation from conversion, composing small models, using Annotated and RootModel, enforcing immutability, handling circular references, writing clear errors, keeping business logic out of models, and validating all external data—to make Python code more robust and maintainable.

AnnotatedFastAPIModel Design
0 likes · 12 min read
11 Essential Pydantic v2 Practices to Avoid Common Pitfalls
AI Waka
AI Waka
Feb 27, 2026 · Artificial Intelligence

How to Add Persistent Long‑Term Memory to LangGraph Agents with Trustcall

This article explains how to integrate durable long‑term memory into LangGraph agents, covering memory types, their coordination, limitations of native LangGraph storage, and a step‑by‑step implementation using Trustcall’s schema‑driven extractors for both user profiles and paper collections.

AILLM agentsLangGraph
0 likes · 16 min read
How to Add Persistent Long‑Term Memory to LangGraph Agents with Trustcall
Data STUDIO
Data STUDIO
Jan 8, 2026 · Backend Development

From “Magic Building Blocks” to “Clear Contracts”: 7 Pydantic v2 Features for Rock‑Solid API Design

The article examines seven new Pydantic v2 capabilities—TypeAdapter, Annotated + Field, deterministic validators, precise serialization hooks, computed_field, RootModel, and ConfigDict—showing how each resolves common API‑validation pain points, improves contract clarity, and boosts performance with concrete code examples and a FastAPI integration.

Computed FieldFastAPIPydantic
0 likes · 26 min read
From “Magic Building Blocks” to “Clear Contracts”: 7 Pydantic v2 Features for Rock‑Solid API Design
Fighter's World
Fighter's World
Dec 16, 2025 · Artificial Intelligence

Boosting Large Language Model Domain Expertise with Claude Skills

The article analyzes why generic LLMs struggle with domain‑specific reasoning, critiques fine‑tuning, RAG and prompt engineering, and presents Claude Skills—using progressive disclosure, Pydantic validation, and state‑machine control—to encode expert constraints as executable rules, illustrated with finance compliance and legal reasoning case studies and backed by Anthropic research.

ClaudeDomain-specificLLM
0 likes · 20 min read
Boosting Large Language Model Domain Expertise with Claude Skills
Data STUDIO
Data STUDIO
Nov 24, 2025 · Backend Development

Avoid These 10 Common FastAPI Pitfalls for Beginners

This guide lists ten typical mistakes that new FastAPI developers make—such as using synchronous I/O in async endpoints, ignoring Pydantic models, mishandling database sessions, creating per‑request clients, misconfiguring CORS, monolithic code files, returning raw ORM objects, weak authentication, lacking timeouts/retries for external calls, and skipping testing—and provides concrete solutions with code examples to keep applications fast, reliable, and maintainable.

AsyncCORSFastAPI
0 likes · 14 min read
Avoid These 10 Common FastAPI Pitfalls for Beginners
Data STUDIO
Data STUDIO
Nov 20, 2025 · Backend Development

12 Must‑Try Pydantic v2 Model Patterns for Safer Python Code

This guide presents twelve practical Pydantic v2 patterns—from a base DTO and snake/camel case handling to computed fields, immutable objects, configuration management, and endpoint protection—showing concrete code examples and a complete data‑ingestion pipeline that demonstrates how each pattern improves validation, serialization, and overall robustness in Python projects.

Computed FieldConfigurationEndpoint Protection
0 likes · 17 min read
12 Must‑Try Pydantic v2 Model Patterns for Safer Python Code
BirdNest Tech Talk
BirdNest Tech Talk
Oct 8, 2025 · Artificial Intelligence

How to Turn LLM Text into Structured Data with LangChain Output Parsers

This article explains why LLMs output plain text, introduces LangChain output parsers as the bridge to structured data, details their workflow, reviews built‑in parsers, and walks through a complete Python example that builds a prompt‑model‑parser chain to generate a JSON‑based joke.

LLMLangChainOutputParser
0 likes · 10 min read
How to Turn LLM Text into Structured Data with LangChain Output Parsers
Fun with Large Models
Fun with Large Models
Sep 22, 2025 · Artificial Intelligence

Building Conditional Branch and Loop Graphs with LangGraph AI Agents

This tutorial demonstrates how to use LangGraph's low‑level API to create stateful conditional‑branch, loop, and combined graphs for AI agents, showing step‑by‑step definitions of Pydantic state models, node logic, edge configuration, compilation, and test execution with concrete code examples.

AI agentsLangGraphPydantic
0 likes · 12 min read
Building Conditional Branch and Loop Graphs with LangGraph AI Agents
Python Programming Learning Circle
Python Programming Learning Circle
Sep 5, 2025 · Fundamentals

10 Hidden Python Tricks to Supercharge Performance

This article reveals ten often‑overlooked Python performance techniques—from using enumerate and array structures to leveraging Numba, Polars, and generators—showing how careful coding, profiling, and modern libraries can turn sluggish scripts into lightning‑fast production workloads.

GeneratorsPolarsProfiling
0 likes · 9 min read
10 Hidden Python Tricks to Supercharge Performance
Code Mala Tang
Code Mala Tang
May 29, 2025 · Backend Development

From Hard‑Coded Secrets to YAML‑Powered Configs: A Backend Configuration Journey

This article walks through a step‑by‑step evolution of backend configuration management—from hard‑coded constants to modular config files, environment‑specific .env files, Pydantic‑validated models, and finally YAML‑based settings—demonstrating how to build a clean, secure, and scalable setup for FastAPI applications.

Backend DevelopmentConfiguration ManagementFastAPI
0 likes · 17 min read
From Hard‑Coded Secrets to YAML‑Powered Configs: A Backend Configuration Journey
Data STUDIO
Data STUDIO
May 12, 2025 · Fundamentals

Why Pydantic Is a Must‑Know Python Library for Data Validation

This article introduces Pydantic (v2), explains its core validation, parsing, and serialization features, compares it with plain dataclasses, demonstrates basic to advanced usage—including optional fields, default factories, nested models, custom validators, and alias handling—while warning about version differences and AI‑generated code pitfalls.

AliasCustom ValidationFastAPI
0 likes · 16 min read
Why Pydantic Is a Must‑Know Python Library for Data Validation
Code Mala Tang
Code Mala Tang
May 10, 2025 · Backend Development

Master FastAPI Request Body Validation with Pydantic Models

This guide explains how FastAPI uses Pydantic models to define, validate, and parse JSON and form request bodies, set default values and custom rules, handle nested structures, and return response models, providing a type‑safe, efficient way to build backend APIs.

Backend DevelopmentFastAPIPydantic
0 likes · 8 min read
Master FastAPI Request Body Validation with Pydantic Models
AI Algorithm Path
AI Algorithm Path
Mar 24, 2025 · Artificial Intelligence

How to Use Pydantic for Structured LLM Output

The article explains why LLM responses can be inconsistent, introduces Pydantic as a way to define custom output schemas, and walks through concrete examples—both with OpenAI and Ollama models—showing how to build a LangChain pipeline that parses responses into structured data.

LLMLangChainOllama
0 likes · 7 min read
How to Use Pydantic for Structured LLM Output
Code Mala Tang
Code Mala Tang
Mar 22, 2025 · Backend Development

Pydantic & FastAPI: Optional Fields, Nested Models, and Advanced Validation

Learn how to leverage Pydantic in FastAPI to handle optional fields, validate nested data structures, enforce complex business rules with model validators, forbid extra fields, work with polymorphic models, and validate query and path parameters, all illustrated with clear Python code examples.

Backend DevelopmentFastAPIPydantic
0 likes · 10 min read
Pydantic & FastAPI: Optional Fields, Nested Models, and Advanced Validation
Code Mala Tang
Code Mala Tang
Mar 17, 2025 · Backend Development

How to Efficiently Map Dictionaries to Python Classes: From Namedtuple to Pydantic

Mapping external data such as MongoDB query results or API responses to Python class attributes can be done manually, but this article explores several automated approaches—including namedtuple, setattr, a custom ModelBase/Type mapper, and Pydantic—detailing implementation, error handling, and performance benchmarks to guide developers in choosing the optimal solution.

Data MappingNamedtuplePydantic
0 likes · 12 min read
How to Efficiently Map Dictionaries to Python Classes: From Namedtuple to Pydantic
21CTO
21CTO
Jul 2, 2024 · Backend Development

FastAPI vs Flask: Why FastAPI Outperforms Flask for Modern APIs

This article compares FastAPI and Flask, highlighting FastAPI's speed, developer experience, and standards support, while providing practical migration guidance, code examples, configuration tips, async handling, dependency injection, testing, deployment, and documentation differences for Python web developers.

ASGIFastAPIFlask
0 likes · 25 min read
FastAPI vs Flask: Why FastAPI Outperforms Flask for Modern APIs
Python Programming Learning Circle
Python Programming Learning Circle
Jul 18, 2023 · Backend Development

Frameworks and Tools that Inspired FastAPI

This article examines the various Python web frameworks, libraries, and standards—such as Django, Flask, Django REST Framework, Requests, Swagger/OpenAPI, Marshmallow, Pydantic, Starlette, and Uvicorn—that inspired FastAPI's design, highlighting their key features and how they contributed to FastAPI's capabilities.

APIBackendPydantic
0 likes · 10 min read
Frameworks and Tools that Inspired FastAPI
Python Programming Learning Circle
Python Programming Learning Circle
Jan 17, 2022 · Fundamentals

Six Alternatives to Classes in Python

This article compares six Python alternatives to traditional classes—plain classes, tuples, dictionaries, named tuples, attrs, dataclasses, and Pydantic—examining their syntax, validation capabilities, mutability, string representation, JSON (de)serialization, memory usage, and performance to help developers choose the most suitable data‑modeling approach.

PydanticPythonalternatives
0 likes · 17 min read
Six Alternatives to Classes in Python
Python Crawling & Data Mining
Python Crawling & Data Mining
Mar 26, 2020 · Backend Development

Master FastAPI: Build High‑Performance Python APIs Quickly

This article introduces FastAPI, a modern high‑performance Python web framework, walks through installation, basic routing, async handling, query and path parameters, data modeling with Pydantic, template rendering with Jinja2, and compares its speed to Flask, providing complete code examples and screenshots.

APIBackend DevelopmentFastAPI
0 likes · 10 min read
Master FastAPI: Build High‑Performance Python APIs Quickly