Skip to content

parseExtractionResponse

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/doc-automation/src/v2/services/business-context-extractor.ts

Parse the AI response into a BusinessContext object. Handles JSON extraction from various response formats (raw, code blocks, wrapped).

Signature

ts
function parseExtractionResponse(response: string, sources: ContextSource[], rawText: string): BusinessContext

Parameters

NameType
responsestring
sourcesContextSource[]
rawTextstring

Returns: BusinessContext

Was this page helpful?

Download as PDF