技能 编程开发 Lindy SDK 模式集

Lindy SDK 模式集

v20260311
lindy-sdk-patterns
围绕 Lindy AI SDK 的客户端单例、Agent 工厂、重试策略与流式响应等模式,帮助开发者优化接口使用并构建稳健的智能体功能。
获取技能
366 次下载
概览

Lindy SDK Patterns

Overview

Essential SDK patterns and best practices for Lindy AI agent development.

Prerequisites

  • Completed lindy-install-auth setup
  • Basic understanding of async/await
  • Familiarity with TypeScript

Instructions

Pattern 1: Client Singleton

Pattern 2: Agent Factory

Pattern 3: Retry with Backoff

Pattern 4: Streaming Responses

  1. For detailed implementation code and configurations, load the reference guide:
  2. Read(${CLAUDE_SKILL_DIR}/references/implementation-guide.md)

Output

  • Reusable client singleton pattern
  • Agent factory for consistent creation
  • Robust error handling with retries
  • Streaming support for real-time output

Error Handling

Pattern Use Case Benefit
Singleton Connection reuse Reduced overhead
Factory Agent creation Consistency
Retry Rate limits Reliability
Streaming Long responses Better UX

Examples

Complete Agent Service

Resources

Next Steps

Proceed to lindy-core-workflow-a for agent creation workflows.

信息
Category 编程开发
Name lindy-sdk-patterns
版本 v20260311
大小 2.47KB
更新时间 2026-03-12
语言