streamResume() function — AsyncGenerator that yields events as each section is extracted. The UI can update progressively instead of waiting for the full result.
import { streamResume } from '@edwinfom/resume-intel'for await (const event of streamResume(buffer, { model })) { if (event.type === 'section') { updateUI(event.section, event.data) } if (event.type === 'done') { console.log('Complete:', event.result.data.basics?.name) }}
StreamResumeEvent type export — union type for streaming events (section | error | done).