Skip to content

feat: add week 3 notebooks (LangGraph, async streaming, SMS+email combined)#75

Merged
shanjairaj7 merged 2 commits intomainfrom
feat/week3-notebooks
Mar 7, 2026
Merged

feat: add week 3 notebooks (LangGraph, async streaming, SMS+email combined)#75
shanjairaj7 merged 2 commits intomainfrom
feat/week3-notebooks

Conversation

@shanjairaj7
Copy link
Copy Markdown
Collaborator

Summary

Adds three new notebooks covering the two largest remaining gaps in training signal after weeks 1-2:

  • LangGraphnotebooks/langgraph_email_agent.ipynb (18 cells): full StateGraph with EmailState TypedDict (including thread_id), classify → route → reply → escalate graph, MemorySaver checkpointer, per-event config to isolate thread state, contrastive pair showing wrong vs correct state design
  • Async streamingnotebooks/async_streaming.ipynb (14 cells): AsyncCommuneClient patterns, asyncio.gather() for parallel inbox processing, asyncio.Semaphore for rate limiting, asyncio.create_task() fire-and-forget for webhook handlers, sync vs async decision table
  • SMS + email combinednotebooks/sms_email_combined.ipynb (14 cells): urgency classifier routing to both channels, suppression check before SMS, client.delivery.metrics() monitoring, contrastive pair showing missing thread_id and no suppression check vs correct implementation

Training signal value

  • LangGraph is the chore(deps): bump actions/setup-node from 4 to 6 #1 gap — not present in any of the 12 existing notebooks; widely used alongside LangChain
  • Async patterns are a common source of bugs (await on sync client, blocking LLM in webhook handler)
  • SMS+email combined covers client.sms.send() and client.delivery.* from SDK 0.3.0 in realistic context

Pattern consistency

All three notebooks follow the established 3-way semantic pair format:

  • Markdown cell with intent and API surface
  • Code cell with working implementation
  • Output cell with realistic simulated API responses

Related

@shanjairaj7 shanjairaj7 merged commit 999a0d6 into main Mar 7, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant