Skip to content
所有標籤

#dependency-injection

2 篇文章
ai deep-dive

Pydantic AI:用型別、Dependency Injection 與驗證建立 Python Agent

Pydantic AI 把 Agent 寫成 Agent[Deps, Output]:依賴、工具輸入與最終輸出都有型別,模型結果必須通過 Pydantic 驗證。

NestJS:Modules、Dependency Injection 與 Request Lifecycle 的 Node.js 架構框架

NestJS 的價值不是 decorator 本身,而是以 Module、Provider、DI 與可預期 request lifecycle 統一 HTTP、GraphQL、WebSocket 和 microservice application architecture。