{"podcast":{"title":"Talk Python To Me","slug":"talk-python-to-me","podcast_index_feed_id":742305,"rss_url":"https://talkpython.fm/episodes/rss","website_url":"https://talkpython.fm/","image_url":"https://cdn-podcast.talkpython.fm/static/img/talk-python-3000.jpg","author":"Michael Kennedy","episode_count":546,"summary":"Talk Python to Me is a weekly podcast hosted by developer and entrepreneur Michael Kennedy. We dive deep into the popular packages and software developers, data scientists, and incredible hobbyists doing amazing things with Python. If you're new to Python, you'll quickly learn the ins and outs of the community by hearing from the leaders. And if you've been Pythoning for years, you'll learn about your favorite packages and the hot new ones coming out of open source.","last_synced_at":null,"page_url":"https://stenobird.com/podcast/talk-python-to-me"},"episode":{"title":"#543: Deep Agents: LangChain's SDK for Agents That Plan and Delegate","slug":"543-deep-agents-langchain-s-sdk-for-agents-that-plan-and-delegate","published_at":"2026-04-01T17:20:51+00:00","page_url":"https://stenobird.com/podcast/talk-python-to-me/543-deep-agents-langchain-s-sdk-for-agents-that-plan-and-delegate","show_page_url":"https://stenobird.com/podcast/talk-python-to-me","url":"https://talkpython.fm/episodes/show/543/deep-agents-langchains-sdk-for-agents-that-plan-and-delegate","audio_url":"https://talkpython.fm/episodes/download/543/deep-agents-langchains-sdk-for-agents-that-plan-and-delegate.mp3","summary":"Move beyond simple LLM prompts to build sophisticated, autonomous agents that can plan, iterate, and recover from errors. This episode explores LangChain's Deep Agents SDK, a framework for creating 'deep' agents with advanced capabilities like file system access and sub-agent delegation.","meta_description":"Learn how to build autonomous AI agents that plan and delegate using LangChain's new Deep Agents SDK, featuring MCP support and Python-native tools.","key_points":["Main idea: Deep agents differ from shallow agents by using an 'agent harness' to enable planning, testing, and error recovery","Practical takeaway: You can define custom agent tools using standard Python functions and integrate external capabilities via MCP servers","Technical pattern: Use middleware hooks to standardize common agent behaviors like retry logic and task lists","Failure mode: Avoid building complex agent logic manually; leverage frameworks that provide structured context management and sub-agent orchestration","Practical takeaway: Improving agent performance relies heavily on analyzing traces to identify failures and optimize the agent's harness"],"chapters":[{"start_ms":345000,"title":"Shallow vs. Deep Agents","summary":"Distinguishing between simple tool-calling loops and complex agents capable of multi-step planning and iteration."},{"start_ms":1215000,"title":"The Agent Harness","summary":"Understanding the role of the harness, including skills, toolchains, and focused system prompts."},{"start_ms":1525000,"title":"Sub-agents and Context Management","summary":"How to implement parallel execution and manage context when delegating tasks to specialized sub-agents."},{"start_ms":2090000,"title":"Defining Tools with Python","summary":"The simplicity of turning any Python function or API call into a functional tool for an agent."},{"start_ms":2375000,"title":"MCP Integration","summary":"Leveraging the Model Context Protocol (MCP) to fetch and use tools from external MCP servers."},{"start_ms":2940000,"title":"Middleware and Standardization","summary":"Using middleware to implement common patterns like retry logic and task tracking in agent workflows."},{"start_ms":3245000,"title":"Agentic Data Analysis","summary":"Applying agentic patterns to complex tasks like converting natural language into SQL queries for data analysis."}],"topics":["LangChain","Deep Agents","AI Agents","Python","MCP","LLM Orchestration","Agentic Workflows","Software Engineering"],"duration_seconds":3833,"processing_state":"processed","actions":[{"name":"request_transcript","method":"POST","url":"https://stenobird.com/v1/public/podcasts/talk-python-to-me/episodes/543-deep-agents-langchain-s-sdk-for-agents-that-plan-and-delegate/transcription-requests","description":"Idempotently request low-priority transcript generation for this episode."},{"name":"read_markdown","method":"GET","url":"https://stenobird.com/podcast/talk-python-to-me/543-deep-agents-langchain-s-sdk-for-agents-that-plan-and-delegate.md","description":"Read the agent-friendly Markdown representation of this episode resource."}]}}