Build around
the work.
Start with model access, agent workflows or knowledge. Choose the integration path that fits your application.
In short:엔터프라이즈급 AI 애플리케이션을 구축하기 위한 가장 강력한 SDK. 타입 안전성, 완전한 문서화, 프로덕션 준비 완료.
application → model access → response
Model access
Connect your application to model access. Start by reviewing routing, authentication and usage requirements.
Explore ConnectFollow the published reference.
Read the SDK examples and integration guidance alongside the product you intend to use.
Open the developer referenceBefore your first integration
Agree the credential boundary, test inputs, failure handling and the usage you need to observe.
Discuss an integration대화형 API 플레이그라운드
라이브 코드 예제와 즉각적인 결과로 실시간 API 호출을 테스트하세요.
import { Swfte } from '@swfte/sdk';
// Initialize the client
const swfte = new Swfte({
apiKey: process.env.SWFTE_API_KEY,
});
// Create an intelligent agent
const response = await swfte.agents.run({
task: 'sentiment-analysis',
data: {
message: "Your product transformed our workflow!"
}
});
console.log(response.sentiment); // "positive"
console.log(response.score); // 0.95가이드된 통합 경로
단계별 통합 가이드로 몇 분 안에 시작하세요.
npm install @swfte/sdkSDK 설치
npm을 통해 Swfte SDK를 설치하여 시작하세요.
import { Swfte } from '@swfte/sdk';
const swfte = new Swfte({
apiKey: process.env.SWFTE_API_KEY,
});클라이언트 초기화
API 자격 증명으로 Swfte 클라이언트를 설정하세요.
const response = await swfte.agents.run({
task: 'analyze',
data: { text: 'Hello, world!' }
});
console.log(response.result);구축 시작
SDK를 사용하여 에이전트를 실행하고 AI 기반 기능을 구축하세요.
자주 묻는 질문
TypeScript/JavaScript, Python, Go, Ruby 및 Java용 네이티브 SDK를 제공합니다. REST API는 HTTP 요청을 할 수 있는 모든 언어와 함께 작동합니다.
환경 변수에 저장되거나 SDK에 직접 전달되는 API 키를 사용하세요. 엔터프라이즈 SSO 통합을 위해 OAuth2를 지원하고 안전한 키 회전을 제공합니다.
무료 계층: 분당 100개 요청. Pro: 분당 1,000개 요청. 엔터프라이즈: 전용 용량 및 버스트 처리가 포함된 사용자 지정 제한.
SDK는 자세한 메시지가 포함된 형식화된 오류 클래스를 제공합니다. 모든 오류에는 디버깅 및 지원을 위한 요청 ID가 포함됩니다. 지수 백오프로 자동 재시도도 제공합니다.
예! 모든 SDK는 실시간 스트리밍을 위해 Server-Sent Events(SSE)를 지원합니다. 반응형 UI를 위해 생성되는 토큰을 수신할 수 있습니다.