SDK
SDK
Librerie client ufficiali per la Laddro Career API. Tutti gli SDK coprono gli stessi 18 endpoint API e supportano lo streaming SSE.
SDK Disponibili
| Linguaggio | Pacchetto | Registry |
|---|---|---|
| TypeScript | @laddro/career-sdk | npm |
| Python | laddro-career | PyPI |
| Go | github.com/laddro-app/laddro-career-sdk-go | Go modules |
| Rust | laddro-career | crates.io |
| Java | com.laddro:career-sdk | Maven Central |
| PHP | laddro/career-sdk | Packagist |
| Ruby | laddro-career | RubyGems |
| .NET | Laddro.Career | NuGet |
Pattern Comuni
Tutti gli SDK seguono gli stessi pattern:
Inizializzazione
Ogni SDK viene inizializzato con la tua chiave API:
// TypeScript
import { Laddro } from '@laddro/career-sdk'
const client = new Laddro({ apiKey: 'YOUR_API_KEY' })# Python
from laddro_career import Laddro
client = Laddro(api_key="YOUR_API_KEY")// Go
client := laddro.New("YOUR_API_KEY")Metodi delle Risorse
Tutti gli SDK espongono gli stessi metodi:
client.templates.list()client.templates.get(id)client.resumes.list()client.resumes.get(id)client.resumes.parse(file)client.resumes.render(id, options)client.tailor.create(options)client.tailor.stream(options)client.export(options)client.coverLetters.list()client.coverLetters.get(id)client.coverLetters.create(options)client.coverLetters.generate(options)client.coverLetters.render(id, options)client.settings.get()client.settings.setModel(options)client.settings.resetModel()
Streaming
Gli endpoint AI (tailor, coverLetters.generate) supportano lo streaming tramite pattern nativi del linguaggio:
// TypeScript
const stream = client.tailor.stream({
resumeId: 'res_abc123',
positionName: 'Senior Engineer',
jobDescription: '...'
})
for await (const event of stream) {
console.log(event.section, event.content)
}# Python (async)
stream = await client.tailor.stream(
resume_id="res_abc123",
position_name="Senior Engineer",
job_description="..."
)
async for event in stream:
print(event.section, event.content)// Go (channels)
ch, err := client.Tailor.Stream(ctx, &laddro.TailorParams{
ResumeID: "res_abc123",
PositionName: "Senior Engineer",
JobDescription: "...",
})
for event := range ch {
fmt.Println(event.Section, event.Content)
}Codice Sorgente
Tutti gli SDK sono open source nell'organizzazione GitHub laddro-app.