Hands-On Agent Series 2: OpenAI Swarm Framework Source Code Analysis and Practical Cases

Hands-On Agent Series 2: OpenAI Swarm Framework Source Code Analysis and Practical Cases

OpenAI open-sourced an educational multi-agent collaboration framework called Swarm in October 2024. This article starts from the source code of Swarm, gradually introducing how to write a similar multi-agent framework and illustrating how agents can enhance business quality and efficiency through six application cases. Table of Contents: Agent Class Response Class Result Class Swarm Class … Read more

Practical Guide to Rapid IoT Platform Development with Cursor

Practical Guide to Rapid IoT Platform Development with Cursor

In the court, a young concubine is worried about writing the IoT platform. “Your Majesty, I recently received a task to develop an IoT platform, but I always feel that writing code is too slow. Is there any magical tool that can help me improve my efficiency?” “Do not worry, my dear. Today I will … Read more

Mastering LangGraph – State Management – 01

Mastering LangGraph - State Management - 01

Using Pydantic model as state Previously, we might have used TypedDict the most, but Pydantic model is also a great choice. Let’s see how this type can serve as the graph state. Input Validation from langgraph.graph import StateGraph, START, END from typing_extensions import TypedDict from pydantic import BaseModel # Overall state of the graph (this … Read more