Skip to main content
Search

Results for “Pydantic”

8 matches across blog posts, projects, case studies and series.

8 results

Blog posts

Feb 22, 2026

Structured JSON Output from LLMs: Schema Injection, Pydantic and Retry Loops

Get reliable JSON from an LLM: put the schema in the prompt, use structured outputs with a Pydantic model, and add a retry loop that sends errors back.

Feb 22, 2026

Beyond Built-ins: Architecting Custom Tools in LangChain

Build custom LangChain tools two ways, the @tool decorator and a BaseTool subclass with a Pydantic schema, then handle tool errors so the agent can fix its own…

Oct 20, 2026

Calling an LLM From Apex: Where Python Still Wins

Apex makes the HTTP call to an LLM in about twenty lines. Everything that decides whether the feature survives — validation, retrieval, evals, cost — is the pa…

Oct 9, 2026

Day 3/15 — MCP Fundamentals: Client, Server, Tools & Resources

The Model Context Protocol behind Salesforce Headless 360 (AIforce): hosts, clients, servers, tools, the stateless 2026-07-28 lifecycle, and a local MCP server…

Oct 4, 2026

ChatGPT for Developers: A Practical Guide to Building Better Workflows

How developers can use ChatGPT and the OpenAI API in daily work: prompt patterns that hold up, the Responses API in Python, structured outputs, a repeatable pi…

Aug 25, 2026

Graph Engineering For AI Agents: My Production Playbook

Model your agent as a graph: an execution graph in LangGraph for control flow and failure paths, and a knowledge graph for memory you can trace, with a runnabl…

Feb 22, 2026

Building Your First LLM Chain: A Developer's Guide to Sequential Logic

Build a two-step LLM chain in Python with LangChain's pipe syntax: one prompt picks an angle, the next writes the post. Tested with a fake model, no real API k…

Feb 22, 2026

Architecting Autonomous Agents: A Builder’s Guide to Complex Workflows

How an AI agent loops through thought, tool call and observation, how to build one with LangChain's create agent, and the guardrails that stop loops, bad argum…