@claritylabs/cl-sdk 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +440 -55
- package/dist/index.d.ts +440 -55
- package/dist/index.js +302 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +300 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,308 @@ import { LanguageModel } from 'ai';
|
|
|
2
2
|
import { ProviderOptions } from '@ai-sdk/provider-utils';
|
|
3
3
|
import { PDFDocument } from 'pdf-lib';
|
|
4
4
|
|
|
5
|
+
/** Expanded from 11 to 22 values */
|
|
6
|
+
type PolicyType = "general_liability" | "commercial_property" | "commercial_auto" | "non_owned_auto" | "workers_comp" | "umbrella" | "excess_liability" | "professional_liability" | "cyber" | "epli" | "directors_officers" | "fiduciary_liability" | "crime_fidelity" | "inland_marine" | "builders_risk" | "environmental" | "ocean_marine" | "surety" | "product_liability" | "bop" | "management_liability_package" | "property" | "other";
|
|
7
|
+
/** All policy types as a runtime array for use in prompts */
|
|
8
|
+
declare const POLICY_TYPES: PolicyType[];
|
|
9
|
+
type EndorsementType = "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension" | "other";
|
|
10
|
+
type ConditionType = "duties_after_loss" | "notice_requirements" | "other_insurance" | "cancellation" | "nonrenewal" | "transfer_of_rights" | "liberalization" | "arbitration" | "concealment_fraud" | "examination_under_oath" | "legal_action" | "loss_payment" | "appraisal" | "mortgage_holders" | "policy_territory" | "separation_of_insureds" | "other";
|
|
11
|
+
type PolicySectionType = "declarations" | "insuring_agreement" | "policy_form" | "endorsement" | "application" | "exclusion" | "condition" | "definition" | "schedule" | "notice" | "regulatory" | "other";
|
|
12
|
+
type QuoteSectionType = "terms_summary" | "premium_indication" | "underwriting_condition" | "subjectivity" | "coverage_summary" | "exclusion" | "other";
|
|
13
|
+
type CoverageForm = "occurrence" | "claims_made" | "accident";
|
|
14
|
+
type CoverageTrigger = "occurrence" | "claims_made" | "accident";
|
|
15
|
+
type LimitType = "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled";
|
|
16
|
+
type DeductibleType = "per_occurrence" | "per_claim" | "aggregate" | "percentage" | "waiting_period";
|
|
17
|
+
type ValuationMethod = "replacement_cost" | "actual_cash_value" | "agreed_value" | "functional_replacement";
|
|
18
|
+
type DefenseCostTreatment = "inside_limits" | "outside_limits" | "supplementary";
|
|
19
|
+
type EntityType = "corporation" | "llc" | "partnership" | "sole_proprietor" | "joint_venture" | "trust" | "nonprofit" | "municipality" | "other";
|
|
20
|
+
type AdmittedStatus = "admitted" | "non_admitted" | "surplus_lines";
|
|
21
|
+
type AuditType = "annual" | "semi_annual" | "quarterly" | "monthly" | "self" | "physical" | "none";
|
|
22
|
+
type EndorsementPartyRole = "additional_insured" | "loss_payee" | "mortgage_holder" | "certificate_holder" | "notice_recipient" | "other";
|
|
23
|
+
type ClaimStatus = "open" | "closed" | "reopened";
|
|
24
|
+
type SubjectivityCategory = "pre_binding" | "post_binding" | "information";
|
|
25
|
+
type DocumentType = "policy" | "quote" | "binder" | "endorsement" | "certificate";
|
|
26
|
+
type ChunkType = "declarations" | "coverage_form" | "endorsement" | "schedule" | "conditions" | "mixed";
|
|
27
|
+
type RatingBasisType = "payroll" | "revenue" | "area" | "units" | "vehicle_count" | "employee_count" | "per_capita" | "other";
|
|
28
|
+
type VehicleCoverageType = "liability" | "collision" | "comprehensive" | "uninsured_motorist" | "underinsured_motorist" | "medical_payments" | "hired_auto" | "non_owned_auto" | "cargo" | "physical_damage";
|
|
29
|
+
|
|
30
|
+
interface Address {
|
|
31
|
+
street1: string;
|
|
32
|
+
street2?: string;
|
|
33
|
+
city: string;
|
|
34
|
+
state: string;
|
|
35
|
+
zip: string;
|
|
36
|
+
country?: string;
|
|
37
|
+
}
|
|
38
|
+
interface Contact {
|
|
39
|
+
name?: string;
|
|
40
|
+
title?: string;
|
|
41
|
+
type?: string;
|
|
42
|
+
phone?: string;
|
|
43
|
+
fax?: string;
|
|
44
|
+
email?: string;
|
|
45
|
+
address?: Address;
|
|
46
|
+
hours?: string;
|
|
47
|
+
}
|
|
48
|
+
interface FormReference {
|
|
49
|
+
formNumber: string;
|
|
50
|
+
editionDate?: string;
|
|
51
|
+
title?: string;
|
|
52
|
+
formType: "coverage" | "endorsement" | "declarations" | "application" | "notice" | "other";
|
|
53
|
+
}
|
|
54
|
+
interface TaxFeeItem {
|
|
55
|
+
name: string;
|
|
56
|
+
amount: string;
|
|
57
|
+
type?: "tax" | "fee" | "surcharge" | "assessment";
|
|
58
|
+
description?: string;
|
|
59
|
+
}
|
|
60
|
+
interface RatingBasis {
|
|
61
|
+
type: RatingBasisType;
|
|
62
|
+
amount?: string;
|
|
63
|
+
description?: string;
|
|
64
|
+
}
|
|
65
|
+
interface Sublimit {
|
|
66
|
+
name: string;
|
|
67
|
+
limit: string;
|
|
68
|
+
appliesTo?: string;
|
|
69
|
+
deductible?: string;
|
|
70
|
+
}
|
|
71
|
+
interface SharedLimit {
|
|
72
|
+
description: string;
|
|
73
|
+
limit: string;
|
|
74
|
+
coverageParts: string[];
|
|
75
|
+
}
|
|
76
|
+
interface ExtendedReportingPeriod {
|
|
77
|
+
basicDays?: number;
|
|
78
|
+
supplementalYears?: number;
|
|
79
|
+
supplementalPremium?: string;
|
|
80
|
+
}
|
|
81
|
+
interface NamedInsured {
|
|
82
|
+
name: string;
|
|
83
|
+
relationship?: string;
|
|
84
|
+
address?: Address;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
interface EnrichedCoverage {
|
|
88
|
+
name: string;
|
|
89
|
+
coverageCode?: string;
|
|
90
|
+
formNumber?: string;
|
|
91
|
+
formEditionDate?: string;
|
|
92
|
+
limit: string;
|
|
93
|
+
limitType?: LimitType;
|
|
94
|
+
deductible?: string;
|
|
95
|
+
deductibleType?: DeductibleType;
|
|
96
|
+
sir?: string;
|
|
97
|
+
sublimit?: string;
|
|
98
|
+
coinsurance?: string;
|
|
99
|
+
valuation?: ValuationMethod;
|
|
100
|
+
territory?: string;
|
|
101
|
+
trigger?: CoverageTrigger;
|
|
102
|
+
retroactiveDate?: string;
|
|
103
|
+
included: boolean;
|
|
104
|
+
premium?: string;
|
|
105
|
+
pageNumber?: number;
|
|
106
|
+
sectionRef?: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface EndorsementParty {
|
|
110
|
+
name: string;
|
|
111
|
+
role: EndorsementPartyRole;
|
|
112
|
+
address?: Address;
|
|
113
|
+
relationship?: string;
|
|
114
|
+
scope?: string;
|
|
115
|
+
}
|
|
116
|
+
interface Endorsement {
|
|
117
|
+
formNumber: string;
|
|
118
|
+
editionDate?: string;
|
|
119
|
+
title: string;
|
|
120
|
+
endorsementType: EndorsementType;
|
|
121
|
+
effectiveDate?: string;
|
|
122
|
+
affectedCoverageParts?: string[];
|
|
123
|
+
namedParties?: EndorsementParty[];
|
|
124
|
+
keyTerms?: string[];
|
|
125
|
+
premiumImpact?: string;
|
|
126
|
+
content: string;
|
|
127
|
+
pageStart: number;
|
|
128
|
+
pageEnd?: number;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
interface Exclusion {
|
|
132
|
+
name: string;
|
|
133
|
+
formNumber?: string;
|
|
134
|
+
excludedPerils?: string[];
|
|
135
|
+
isAbsolute?: boolean;
|
|
136
|
+
exceptions?: string[];
|
|
137
|
+
buybackAvailable?: boolean;
|
|
138
|
+
buybackEndorsement?: string;
|
|
139
|
+
appliesTo?: string[];
|
|
140
|
+
content: string;
|
|
141
|
+
pageNumber?: number;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
interface PolicyCondition {
|
|
145
|
+
name: string;
|
|
146
|
+
conditionType: ConditionType;
|
|
147
|
+
content: string;
|
|
148
|
+
keyValues?: Record<string, string>;
|
|
149
|
+
pageNumber?: number;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
interface EmployersLiabilityLimits {
|
|
153
|
+
eachAccident: string;
|
|
154
|
+
diseasePolicyLimit: string;
|
|
155
|
+
diseaseEachEmployee: string;
|
|
156
|
+
}
|
|
157
|
+
interface LimitSchedule {
|
|
158
|
+
perOccurrence?: string;
|
|
159
|
+
generalAggregate?: string;
|
|
160
|
+
productsCompletedOpsAggregate?: string;
|
|
161
|
+
personalAdvertisingInjury?: string;
|
|
162
|
+
eachEmployee?: string;
|
|
163
|
+
fireDamage?: string;
|
|
164
|
+
medicalExpense?: string;
|
|
165
|
+
combinedSingleLimit?: string;
|
|
166
|
+
bodilyInjuryPerPerson?: string;
|
|
167
|
+
bodilyInjuryPerAccident?: string;
|
|
168
|
+
propertyDamage?: string;
|
|
169
|
+
eachOccurrenceUmbrella?: string;
|
|
170
|
+
umbrellaAggregate?: string;
|
|
171
|
+
umbrellaRetention?: string;
|
|
172
|
+
statutory?: boolean;
|
|
173
|
+
employersLiability?: EmployersLiabilityLimits;
|
|
174
|
+
sublimits?: Sublimit[];
|
|
175
|
+
sharedLimits?: SharedLimit[];
|
|
176
|
+
defenseCostTreatment?: DefenseCostTreatment;
|
|
177
|
+
}
|
|
178
|
+
interface DeductibleSchedule {
|
|
179
|
+
perClaim?: string;
|
|
180
|
+
perOccurrence?: string;
|
|
181
|
+
aggregateDeductible?: string;
|
|
182
|
+
selfInsuredRetention?: string;
|
|
183
|
+
corridorDeductible?: string;
|
|
184
|
+
waitingPeriod?: string;
|
|
185
|
+
appliesTo?: "damages_only" | "damages_and_defense" | "defense_only";
|
|
186
|
+
}
|
|
187
|
+
interface InsuredLocation {
|
|
188
|
+
number: number;
|
|
189
|
+
address: Address;
|
|
190
|
+
description?: string;
|
|
191
|
+
buildingValue?: string;
|
|
192
|
+
contentsValue?: string;
|
|
193
|
+
businessIncomeValue?: string;
|
|
194
|
+
constructionType?: string;
|
|
195
|
+
yearBuilt?: number;
|
|
196
|
+
squareFootage?: number;
|
|
197
|
+
protectionClass?: string;
|
|
198
|
+
sprinklered?: boolean;
|
|
199
|
+
alarmType?: string;
|
|
200
|
+
occupancy?: string;
|
|
201
|
+
}
|
|
202
|
+
interface VehicleCoverage {
|
|
203
|
+
type: VehicleCoverageType;
|
|
204
|
+
limit?: string;
|
|
205
|
+
deductible?: string;
|
|
206
|
+
included: boolean;
|
|
207
|
+
}
|
|
208
|
+
interface InsuredVehicle {
|
|
209
|
+
number: number;
|
|
210
|
+
year: number;
|
|
211
|
+
make: string;
|
|
212
|
+
model: string;
|
|
213
|
+
vin: string;
|
|
214
|
+
costNew?: string;
|
|
215
|
+
statedValue?: string;
|
|
216
|
+
garageLocation?: number;
|
|
217
|
+
coverages?: VehicleCoverage[];
|
|
218
|
+
radius?: string;
|
|
219
|
+
vehicleType?: string;
|
|
220
|
+
}
|
|
221
|
+
interface ClassificationCode {
|
|
222
|
+
code: string;
|
|
223
|
+
description: string;
|
|
224
|
+
premiumBasis: string;
|
|
225
|
+
basisAmount?: string;
|
|
226
|
+
rate?: string;
|
|
227
|
+
premium?: string;
|
|
228
|
+
locationNumber?: number;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
interface InsurerInfo {
|
|
232
|
+
legalName: string;
|
|
233
|
+
naicNumber?: string;
|
|
234
|
+
amBestRating?: string;
|
|
235
|
+
amBestNumber?: string;
|
|
236
|
+
admittedStatus?: AdmittedStatus;
|
|
237
|
+
stateOfDomicile?: string;
|
|
238
|
+
}
|
|
239
|
+
interface ProducerInfo {
|
|
240
|
+
agencyName: string;
|
|
241
|
+
contactName?: string;
|
|
242
|
+
licenseNumber?: string;
|
|
243
|
+
phone?: string;
|
|
244
|
+
email?: string;
|
|
245
|
+
address?: Address;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
interface PaymentInstallment {
|
|
249
|
+
dueDate: string;
|
|
250
|
+
amount: string;
|
|
251
|
+
description?: string;
|
|
252
|
+
}
|
|
253
|
+
interface PaymentPlan {
|
|
254
|
+
installments: PaymentInstallment[];
|
|
255
|
+
financeCharge?: string;
|
|
256
|
+
}
|
|
257
|
+
interface LocationPremium {
|
|
258
|
+
locationNumber: number;
|
|
259
|
+
premium: string;
|
|
260
|
+
description?: string;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
interface ClaimRecord {
|
|
264
|
+
dateOfLoss: string;
|
|
265
|
+
claimNumber?: string;
|
|
266
|
+
description: string;
|
|
267
|
+
status: ClaimStatus;
|
|
268
|
+
paid?: string;
|
|
269
|
+
reserved?: string;
|
|
270
|
+
incurred?: string;
|
|
271
|
+
claimant?: string;
|
|
272
|
+
coverageLine?: string;
|
|
273
|
+
}
|
|
274
|
+
interface LossSummary {
|
|
275
|
+
period?: string;
|
|
276
|
+
totalClaims?: number;
|
|
277
|
+
totalIncurred?: string;
|
|
278
|
+
totalPaid?: string;
|
|
279
|
+
totalReserved?: string;
|
|
280
|
+
lossRatio?: string;
|
|
281
|
+
}
|
|
282
|
+
interface ExperienceMod {
|
|
283
|
+
factor: number;
|
|
284
|
+
effectiveDate?: string;
|
|
285
|
+
state?: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
interface EnrichedSubjectivity {
|
|
289
|
+
description: string;
|
|
290
|
+
category?: SubjectivityCategory;
|
|
291
|
+
dueDate?: string;
|
|
292
|
+
status?: "open" | "satisfied" | "waived";
|
|
293
|
+
pageNumber?: number;
|
|
294
|
+
}
|
|
295
|
+
interface EnrichedUnderwritingCondition {
|
|
296
|
+
description: string;
|
|
297
|
+
category?: string;
|
|
298
|
+
pageNumber?: number;
|
|
299
|
+
}
|
|
300
|
+
interface BindingAuthority {
|
|
301
|
+
authorizedBy?: string;
|
|
302
|
+
method?: string;
|
|
303
|
+
expiration?: string;
|
|
304
|
+
conditions?: string[];
|
|
305
|
+
}
|
|
306
|
+
|
|
5
307
|
interface Coverage {
|
|
6
308
|
name: string;
|
|
7
309
|
limit: string;
|
|
@@ -47,12 +349,122 @@ interface BaseDocument {
|
|
|
47
349
|
policyTypes?: string[];
|
|
48
350
|
coverages: Coverage[];
|
|
49
351
|
sections?: Section[];
|
|
352
|
+
/** Legal name of insurance carrier */
|
|
353
|
+
carrierLegalName?: string;
|
|
354
|
+
/** NAIC company code */
|
|
355
|
+
carrierNaicNumber?: string;
|
|
356
|
+
/** AM Best financial strength rating */
|
|
357
|
+
carrierAmBestRating?: string;
|
|
358
|
+
/** Admitted / non-admitted / surplus lines */
|
|
359
|
+
carrierAdmittedStatus?: string;
|
|
360
|
+
/** Managing General Agent */
|
|
361
|
+
mga?: string;
|
|
362
|
+
/** Named underwriter */
|
|
363
|
+
underwriter?: string;
|
|
364
|
+
/** Broker/producer agency name */
|
|
365
|
+
brokerAgency?: string;
|
|
366
|
+
/** Individual producer name */
|
|
367
|
+
brokerContactName?: string;
|
|
368
|
+
/** Producer license number */
|
|
369
|
+
brokerLicenseNumber?: string;
|
|
370
|
+
/** Prior policy number (if renewal) */
|
|
371
|
+
priorPolicyNumber?: string;
|
|
372
|
+
/** Named program */
|
|
373
|
+
programName?: string;
|
|
374
|
+
/** Whether this is a renewal */
|
|
375
|
+
isRenewal?: boolean;
|
|
376
|
+
/** Whether this is a commercial package policy */
|
|
377
|
+
isPackage?: boolean;
|
|
378
|
+
/** Primary insured DBA name */
|
|
379
|
+
insuredDba?: string;
|
|
380
|
+
/** Primary insured mailing address */
|
|
381
|
+
insuredAddress?: Address;
|
|
382
|
+
/** Legal entity type */
|
|
383
|
+
insuredEntityType?: EntityType;
|
|
384
|
+
/** Additional named insureds */
|
|
385
|
+
additionalNamedInsureds?: NamedInsured[];
|
|
386
|
+
/** SIC code */
|
|
387
|
+
insuredSicCode?: string;
|
|
388
|
+
/** NAICS code */
|
|
389
|
+
insuredNaicsCode?: string;
|
|
390
|
+
/** Federal Employer ID Number */
|
|
391
|
+
insuredFein?: string;
|
|
392
|
+
/** Enriched coverage details */
|
|
393
|
+
enrichedCoverages?: EnrichedCoverage[];
|
|
394
|
+
/** Structured endorsements */
|
|
395
|
+
endorsements?: Endorsement[];
|
|
396
|
+
/** Structured exclusions */
|
|
397
|
+
exclusions?: Exclusion[];
|
|
398
|
+
/** Structured conditions */
|
|
399
|
+
conditions?: PolicyCondition[];
|
|
400
|
+
/** Structured limits schedule */
|
|
401
|
+
limits?: LimitSchedule;
|
|
402
|
+
/** Structured deductible schedule */
|
|
403
|
+
deductibles?: DeductibleSchedule;
|
|
404
|
+
/** Insured locations/premises */
|
|
405
|
+
locations?: InsuredLocation[];
|
|
406
|
+
/** Insured vehicles */
|
|
407
|
+
vehicles?: InsuredVehicle[];
|
|
408
|
+
/** Rating classification codes */
|
|
409
|
+
classifications?: ClassificationCode[];
|
|
410
|
+
/** All form numbers in the policy */
|
|
411
|
+
formInventory?: FormReference[];
|
|
412
|
+
/** Coverage trigger type */
|
|
413
|
+
coverageForm?: CoverageForm;
|
|
414
|
+
/** Retroactive date (claims-made) */
|
|
415
|
+
retroactiveDate?: string;
|
|
416
|
+
/** Extended reporting period options */
|
|
417
|
+
extendedReportingPeriod?: ExtendedReportingPeriod;
|
|
418
|
+
/** Full insurer entity details */
|
|
419
|
+
insurer?: InsurerInfo;
|
|
420
|
+
/** Producer/broker details */
|
|
421
|
+
producer?: ProducerInfo;
|
|
422
|
+
/** Claims contact information */
|
|
423
|
+
claimsContacts?: Contact[];
|
|
424
|
+
/** Regulatory contacts */
|
|
425
|
+
regulatoryContacts?: Contact[];
|
|
426
|
+
/** Third-party administrators */
|
|
427
|
+
thirdPartyAdministrators?: Contact[];
|
|
428
|
+
/** All additional insureds across endorsements */
|
|
429
|
+
additionalInsureds?: EndorsementParty[];
|
|
430
|
+
/** All loss payees across endorsements */
|
|
431
|
+
lossPayees?: EndorsementParty[];
|
|
432
|
+
/** All mortgage holders across endorsements */
|
|
433
|
+
mortgageHolders?: EndorsementParty[];
|
|
434
|
+
/** Taxes and fees breakdown */
|
|
435
|
+
taxesAndFees?: TaxFeeItem[];
|
|
436
|
+
/** Total cost (premium + taxes + fees) */
|
|
437
|
+
totalCost?: string;
|
|
438
|
+
/** Minimum earned premium */
|
|
439
|
+
minimumPremium?: string;
|
|
440
|
+
/** Deposit premium */
|
|
441
|
+
depositPremium?: string;
|
|
442
|
+
/** Payment plan */
|
|
443
|
+
paymentPlan?: PaymentPlan;
|
|
444
|
+
/** Premium audit type */
|
|
445
|
+
auditType?: AuditType;
|
|
446
|
+
/** Rating basis */
|
|
447
|
+
ratingBasis?: RatingBasis[];
|
|
448
|
+
/** Premium allocated by location */
|
|
449
|
+
premiumByLocation?: LocationPremium[];
|
|
450
|
+
/** Loss history summary */
|
|
451
|
+
lossSummary?: LossSummary;
|
|
452
|
+
/** Individual claim records */
|
|
453
|
+
individualClaims?: ClaimRecord[];
|
|
454
|
+
/** Experience modification factor (WC) */
|
|
455
|
+
experienceMod?: ExperienceMod;
|
|
456
|
+
/** Cancellation notice days */
|
|
457
|
+
cancellationNoticeDays?: number;
|
|
458
|
+
/** Nonrenewal notice days */
|
|
459
|
+
nonrenewalNoticeDays?: number;
|
|
50
460
|
}
|
|
51
461
|
interface PolicyDocument extends BaseDocument {
|
|
52
462
|
type: "policy";
|
|
53
463
|
policyNumber: string;
|
|
54
464
|
effectiveDate: string;
|
|
55
465
|
expirationDate: string;
|
|
466
|
+
/** Time of day coverage begins */
|
|
467
|
+
effectiveTime?: string;
|
|
56
468
|
}
|
|
57
469
|
interface QuoteDocument extends BaseDocument {
|
|
58
470
|
type: "quote";
|
|
@@ -63,9 +475,27 @@ interface QuoteDocument extends BaseDocument {
|
|
|
63
475
|
subjectivities?: Subjectivity[];
|
|
64
476
|
underwritingConditions?: UnderwritingCondition[];
|
|
65
477
|
premiumBreakdown?: PremiumLine[];
|
|
478
|
+
/** Enriched subjectivities with category, due date, status */
|
|
479
|
+
enrichedSubjectivities?: EnrichedSubjectivity[];
|
|
480
|
+
/** Enriched underwriting conditions */
|
|
481
|
+
enrichedUnderwritingConditions?: EnrichedUnderwritingCondition[];
|
|
482
|
+
/** Warranty requirements */
|
|
483
|
+
warrantyRequirements?: string[];
|
|
484
|
+
/** Loss control recommendations */
|
|
485
|
+
lossControlRecommendations?: string[];
|
|
486
|
+
/** Binding authority details */
|
|
487
|
+
bindingAuthority?: BindingAuthority;
|
|
66
488
|
}
|
|
67
489
|
type InsuranceDocument = PolicyDocument | QuoteDocument;
|
|
68
490
|
|
|
491
|
+
interface ContextKeyMapping {
|
|
492
|
+
extractedField: string;
|
|
493
|
+
category: "company_info" | "operations" | "financial" | "coverage" | "loss_history" | "premises" | "vehicles" | "employees";
|
|
494
|
+
contextKey: string;
|
|
495
|
+
description: string;
|
|
496
|
+
}
|
|
497
|
+
declare const CONTEXT_KEY_MAP: ContextKeyMapping[];
|
|
498
|
+
|
|
69
499
|
type Platform = "email" | "chat" | "sms" | "slack" | "discord";
|
|
70
500
|
type CommunicationIntent = "direct" | "mediated" | "observed";
|
|
71
501
|
interface PlatformConfig {
|
|
@@ -135,7 +565,7 @@ declare function createDefaultModelConfig(): ModelConfig;
|
|
|
135
565
|
* with rawExtractionResponse reparse (older extractions may have used this format).
|
|
136
566
|
* New extractions use two-pass flow: METADATA_PROMPT (Sonnet) + buildSectionsPrompt (Haiku).
|
|
137
567
|
*/
|
|
138
|
-
declare const EXTRACTION_PROMPT = "You are an expert insurance document analyst. Extract comprehensive structured data from this insurance document. Preserve original language verbatim \u2014 do not summarize or paraphrase section content.\n\nRespond with JSON only. The JSON must follow this exact structure:\n\n{\n \"metadata\": {\n \"carrier\": \"primary insurance company name (for display purposes)\",\n \"security\": \"insurer or underwriter entity providing coverage, e.g. 'Lloyd's Underwriters' \u2014 the legal entity on risk\",\n \"underwriter\": \"named individual underwriter if listed, or null\",\n \"mga\": \"Managing General Agent or Program Administrator name if applicable (e.g. 'CFC Underwriting'), or null\",\n \"broker\": \"insurance broker name if identifiable, or null\",\n \"policyNumber\": \"policy or quote reference number\",\n \"documentType\": \"policy\" or \"quote\",\n \"policyTypes\": [\"general_liability\", \"
|
|
568
|
+
declare const EXTRACTION_PROMPT = "You are an expert insurance document analyst. Extract comprehensive structured data from this insurance document. Preserve original language verbatim \u2014 do not summarize or paraphrase section content.\n\nRespond with JSON only. The JSON must follow this exact structure:\n\n{\n \"metadata\": {\n \"carrier\": \"primary insurance company name (for display purposes)\",\n \"security\": \"insurer or underwriter entity providing coverage, e.g. 'Lloyd's Underwriters' \u2014 the legal entity on risk\",\n \"underwriter\": \"named individual underwriter if listed, or null\",\n \"mga\": \"Managing General Agent or Program Administrator name if applicable (e.g. 'CFC Underwriting'), or null\",\n \"broker\": \"insurance broker name if identifiable, or null\",\n \"policyNumber\": \"policy or quote reference number\",\n \"documentType\": \"policy\" or \"quote\",\n \"policyTypes\": [\"general_liability\", \"commercial_property\", \"commercial_auto\", \"non_owned_auto\", \"workers_comp\", \"umbrella\", \"excess_liability\", \"professional_liability\", \"cyber\", \"epli\", \"directors_officers\", \"fiduciary_liability\", \"crime_fidelity\", \"inland_marine\", \"builders_risk\", \"environmental\", \"ocean_marine\", \"surety\", \"product_liability\", \"bop\", \"management_liability_package\", \"property\", \"other\"],\n \"policyYear\": number,\n \"effectiveDate\": \"MM/DD/YYYY\",\n \"expirationDate\": \"MM/DD/YYYY\",\n \"isRenewal\": boolean,\n \"premium\": \"$X,XXX\",\n \"insuredName\": \"name of insured party\",\n \"summary\": \"1-2 sentence summary of the document\"\n },\n \"metadataSource\": {\n \"carrierPage\": number or null,\n \"policyNumberPage\": number or null,\n \"premiumPage\": number or null,\n \"effectiveDatePage\": number or null\n },\n \"coverages\": [\n {\n \"name\": \"coverage name\",\n \"limit\": \"$X,XXX,XXX\",\n \"deductible\": \"$X,XXX or null\",\n \"pageNumber\": number,\n \"sectionRef\": \"section number reference or null\"\n }\n ],\n \"document\": {\n \"sections\": [\n {\n \"title\": \"section title\",\n \"sectionNumber\": \"e.g. 'I', '1.1', 'A' \u2014 or null if unnumbered\",\n \"pageStart\": number,\n \"pageEnd\": number or null,\n \"type\": \"one of: declarations, insuring_agreement, exclusion, condition, definition, endorsement, schedule, subjectivity, warranty, notice, regulatory, other\",\n \"coverageType\": \"links to policyTypes value if section is coverage-specific, or null\",\n \"content\": \"full verbatim text of the section\",\n \"subsections\": [\n {\n \"title\": \"subsection title\",\n \"sectionNumber\": \"subsection number or null\",\n \"pageNumber\": number or null,\n \"content\": \"full verbatim text\"\n }\n ]\n }\n ],\n \"regulatoryContext\": {\n \"content\": \"all regulatory context, governing law, jurisdiction clauses \u2014 verbatim\",\n \"pageNumber\": number\n },\n \"complaintContact\": {\n \"content\": \"complaint contact information and instructions \u2014 verbatim\",\n \"pageNumber\": number\n },\n \"costsAndFees\": {\n \"content\": \"other costs, fees, surcharges, and charges \u2014 verbatim\",\n \"pageNumber\": number\n }\n },\n \"totalPages\": number\n}\n\nIMPORTANT INSTRUCTIONS:\n- policyTypes should include ALL coverage types found in the document\n- documentType should be \"quote\" if this is a quote/proposal, \"policy\" if it is a bound policy\n- For carrier, use the primary company name. For security, use the full legal entity providing coverage\n- Extract EVERY section, clause, endorsement, and schedule from the document as a separate entry in document.sections\n- Preserve the original language exactly as written in the document \u2014 do not summarize\n- Include accurate page numbers for every section and data point\n- Classify each section by type (declarations, insuring_agreement, exclusion, condition, etc.)\n- If a section relates to a specific coverage type, set coverageType to match the policyTypes value\n- For regulatoryContext, complaintContact, and costsAndFees: set to null if not found in the document\n- subsections within a section are optional \u2014 only include if the section has clearly defined subsections";
|
|
139
569
|
/**
|
|
140
570
|
* Pass 0: Document classification prompt (Haiku).
|
|
141
571
|
* Quick classification to determine if a document is a policy or a quote.
|
|
@@ -145,12 +575,12 @@ declare const CLASSIFY_DOCUMENT_PROMPT = "You are an expert insurance document a
|
|
|
145
575
|
* Chunked extraction: metadata-only prompt for the first pass on long documents.
|
|
146
576
|
* Used for both policy and quote extractions (documentType already known from pass 0).
|
|
147
577
|
*/
|
|
148
|
-
declare const METADATA_PROMPT = "You are an expert insurance document analyst. Extract
|
|
578
|
+
declare const METADATA_PROMPT = "You are an expert insurance document analyst. Extract the high-level metadata AND structured declarations data from this insurance document. Do NOT extract full section content \u2014 that will be done in a separate pass.\n\nRespond with JSON only:\n\n{\n \"metadata\": {\n \"carrier\": \"primary insurance company name\",\n \"carrierLegalName\": \"legal entity name of insurer, or null\",\n \"carrierNaicNumber\": \"NAIC company code, or null\",\n \"carrierAmBestRating\": \"AM Best rating (e.g. 'A+ XV'), or null\",\n \"carrierAdmittedStatus\": \"admitted\" or \"non_admitted\" or \"surplus_lines\" or null,\n \"security\": \"insurer or underwriter entity providing coverage, or null\",\n \"underwriter\": \"named individual underwriter, or null\",\n \"mga\": \"MGA or Program Administrator, or null\",\n \"broker\": \"insurance broker agency name, or null\",\n \"brokerContactName\": \"individual producer name, or null\",\n \"brokerLicenseNumber\": \"producer license number, or null\",\n \"policyNumber\": \"policy number\",\n \"priorPolicyNumber\": \"previous policy number if renewal, or null\",\n \"documentType\": \"policy\" or \"quote\",\n \"policyTypes\": [\"general_liability\", \"commercial_property\", \"commercial_auto\", \"non_owned_auto\", \"workers_comp\", \"umbrella\", \"excess_liability\", \"professional_liability\", \"cyber\", \"epli\", \"directors_officers\", \"fiduciary_liability\", \"crime_fidelity\", \"inland_marine\", \"builders_risk\", \"environmental\", \"ocean_marine\", \"surety\", \"product_liability\", \"bop\", \"management_liability_package\", \"property\", \"other\"],\n \"coverageForm\": \"occurrence\" or \"claims_made\" or \"accident\" or null,\n \"policyYear\": number,\n \"effectiveDate\": \"MM/DD/YYYY\",\n \"expirationDate\": \"MM/DD/YYYY\",\n \"effectiveTime\": \"e.g. 12:01 AM, or null\",\n \"retroactiveDate\": \"MM/DD/YYYY for claims-made policies, or null\",\n \"isRenewal\": boolean,\n \"isPackage\": boolean,\n \"programName\": \"named program, or null\",\n \"premium\": \"$X,XXX\",\n \"insuredName\": \"name of primary named insured\",\n \"insuredDba\": \"doing-business-as name, or null\",\n \"insuredAddress\": { \"street1\": \"\", \"city\": \"\", \"state\": \"\", \"zip\": \"\" } or null,\n \"insuredEntityType\": \"corporation\" or \"llc\" or \"partnership\" or \"sole_proprietor\" or \"joint_venture\" or \"trust\" or \"nonprofit\" or \"municipality\" or \"other\" or null,\n \"insuredFein\": \"FEIN, or null\",\n \"summary\": \"1-2 sentence summary\"\n },\n \"metadataSource\": {\n \"carrierPage\": number or null,\n \"policyNumberPage\": number or null,\n \"premiumPage\": number or null,\n \"effectiveDatePage\": number or null\n },\n \"additionalNamedInsureds\": [\n { \"name\": \"insured name\", \"relationship\": \"subsidiary, affiliate, etc., or null\" }\n ],\n \"coverages\": [\n { \"name\": \"coverage name\", \"limit\": \"$X,XXX,XXX\", \"deductible\": \"$X,XXX or null\", \"pageNumber\": number, \"sectionRef\": \"section ref or null\" }\n ],\n \"limits\": {\n \"perOccurrence\": \"$X,XXX,XXX or null\",\n \"generalAggregate\": \"$X,XXX,XXX or null\",\n \"productsCompletedOpsAggregate\": \"or null\",\n \"personalAdvertisingInjury\": \"or null\",\n \"fireDamage\": \"or null\",\n \"medicalExpense\": \"or null\",\n \"combinedSingleLimit\": \"or null\",\n \"bodilyInjuryPerPerson\": \"or null\",\n \"bodilyInjuryPerAccident\": \"or null\",\n \"propertyDamage\": \"or null\",\n \"eachOccurrenceUmbrella\": \"or null\",\n \"umbrellaAggregate\": \"or null\",\n \"umbrellaRetention\": \"or null\",\n \"statutory\": boolean or null,\n \"employersLiability\": { \"eachAccident\": \"\", \"diseasePolicyLimit\": \"\", \"diseaseEachEmployee\": \"\" } or null,\n \"defenseCostTreatment\": \"inside_limits\" or \"outside_limits\" or \"supplementary\" or null\n },\n \"deductibles\": {\n \"perClaim\": \"or null\",\n \"perOccurrence\": \"or null\",\n \"selfInsuredRetention\": \"or null\",\n \"waitingPeriod\": \"or null\"\n },\n \"locations\": [\n { \"number\": 1, \"address\": { \"street1\": \"\", \"city\": \"\", \"state\": \"\", \"zip\": \"\" }, \"description\": \"or null\", \"buildingValue\": \"or null\", \"contentsValue\": \"or null\" }\n ],\n \"vehicles\": [\n { \"number\": 1, \"year\": 2024, \"make\": \"\", \"model\": \"\", \"vin\": \"\", \"vehicleType\": \"or null\" }\n ],\n \"classifications\": [\n { \"code\": \"12345\", \"description\": \"class description\", \"premiumBasis\": \"payroll or revenue or area\", \"basisAmount\": \"or null\", \"rate\": \"or null\", \"premium\": \"or null\" }\n ],\n \"formInventory\": [\n { \"formNumber\": \"CG 00 01\", \"editionDate\": \"04 13\", \"title\": \"or null\", \"formType\": \"coverage or endorsement or declarations or application or notice or other\" }\n ],\n \"taxesAndFees\": [\n { \"name\": \"fee name\", \"amount\": \"$X,XXX\", \"type\": \"tax or fee or surcharge or assessment or null\" }\n ],\n \"totalPages\": number,\n \"tableOfContents\": [\n { \"title\": \"section title\", \"pageStart\": number, \"pageEnd\": number }\n ]\n}\n\nIMPORTANT:\n- policyTypes should include ALL coverage types found in the document\n- coverageForm is the primary trigger type: \"occurrence\" for occurrence-based, \"claims_made\" for claims-made, \"accident\" for auto/WC\n- isPackage is true if this is a Commercial Package Policy (CPP) with multiple coverage parts\n- Extract locations ONLY if a location/premises schedule is visible on the declarations\n- Extract vehicles ONLY if a vehicle schedule is visible\n- Extract classifications ONLY if a classification/rating schedule is visible\n- formInventory: list ALL form numbers found in any forms schedule or endorsement schedule\n- For limits, extract the standard limit fields that appear on the declarations page\n- For deductibles, extract from the declarations or deductible schedule";
|
|
149
579
|
/**
|
|
150
580
|
* Quote-specific metadata prompt (Sonnet).
|
|
151
581
|
* Extracts quote-specific fields like subjectivities, underwriting conditions, premium breakdown.
|
|
152
582
|
*/
|
|
153
|
-
declare const QUOTE_METADATA_PROMPT = "You are an expert insurance document analyst. Extract
|
|
583
|
+
declare const QUOTE_METADATA_PROMPT = "You are an expert insurance document analyst. Extract the high-level metadata AND structured data from this insurance QUOTE or PROPOSAL. Do NOT extract full section content \u2014 that will be done in a separate pass.\n\nRespond with JSON only:\n\n{\n \"metadata\": {\n \"carrier\": \"primary insurance company name\",\n \"carrierLegalName\": \"legal entity name, or null\",\n \"carrierNaicNumber\": \"NAIC code, or null\",\n \"carrierAdmittedStatus\": \"admitted or non_admitted or surplus_lines, or null\",\n \"security\": \"insurer or underwriter entity, or null\",\n \"underwriter\": \"named individual underwriter, or null\",\n \"mga\": \"MGA or Program Administrator, or null\",\n \"broker\": \"insurance broker, or null\",\n \"brokerContactName\": \"individual producer, or null\",\n \"quoteNumber\": \"quote or proposal reference number\",\n \"policyTypes\": [\"general_liability\", \"commercial_property\", \"commercial_auto\", \"non_owned_auto\", \"workers_comp\", \"umbrella\", \"excess_liability\", \"professional_liability\", \"cyber\", \"epli\", \"directors_officers\", \"fiduciary_liability\", \"crime_fidelity\", \"inland_marine\", \"builders_risk\", \"environmental\", \"ocean_marine\", \"surety\", \"product_liability\", \"bop\", \"management_liability_package\", \"property\", \"other\"],\n \"coverageForm\": \"occurrence or claims_made or accident, or null\",\n \"quoteYear\": number,\n \"proposedEffectiveDate\": \"MM/DD/YYYY or null\",\n \"proposedExpirationDate\": \"MM/DD/YYYY or null\",\n \"quoteExpirationDate\": \"MM/DD/YYYY \u2014 when this quote offer expires, or null\",\n \"retroactiveDate\": \"MM/DD/YYYY for claims-made, or null\",\n \"isRenewal\": boolean,\n \"premium\": \"$X,XXX \u2014 total proposed premium\",\n \"insuredName\": \"name of insured party\",\n \"insuredAddress\": { \"street1\": \"\", \"city\": \"\", \"state\": \"\", \"zip\": \"\" } or null,\n \"summary\": \"1-2 sentence summary of the quote\"\n },\n \"metadataSource\": {\n \"carrierPage\": number or null,\n \"quoteNumberPage\": number or null,\n \"premiumPage\": number or null,\n \"effectiveDatePage\": number or null\n },\n \"coverages\": [\n { \"name\": \"coverage name\", \"proposedLimit\": \"$X,XXX,XXX\", \"proposedDeductible\": \"$X,XXX or null\", \"pageNumber\": number, \"sectionRef\": \"or null\" }\n ],\n \"limits\": {\n \"perOccurrence\": \"or null\",\n \"generalAggregate\": \"or null\",\n \"defenseCostTreatment\": \"inside_limits or outside_limits or supplementary, or null\"\n },\n \"deductibles\": {\n \"perClaim\": \"or null\",\n \"perOccurrence\": \"or null\",\n \"selfInsuredRetention\": \"or null\",\n \"waitingPeriod\": \"or null\"\n },\n \"premiumBreakdown\": [\n { \"line\": \"coverage line name\", \"amount\": \"$X,XXX\" }\n ],\n \"subjectivities\": [\n { \"description\": \"subjectivity description\", \"category\": \"pre_binding or post_binding or information, or null\", \"dueDate\": \"or null\", \"pageNumber\": number or null }\n ],\n \"underwritingConditions\": [\n { \"description\": \"condition description\", \"category\": \"or null\", \"pageNumber\": number or null }\n ],\n \"warrantyRequirements\": [\"warranty text\"],\n \"taxesAndFees\": [\n { \"name\": \"fee name\", \"amount\": \"$X,XXX\", \"type\": \"tax or fee or surcharge, or null\" }\n ],\n \"totalPages\": number,\n \"tableOfContents\": [\n { \"title\": \"section title\", \"pageStart\": number, \"pageEnd\": number }\n ]\n}\n\nIMPORTANT:\n- quoteExpirationDate is when the quote offer itself expires (not the proposed policy period)\n- subjectivities are conditions that must be met before or after binding\n- premiumBreakdown should list each coverage line's individual premium if available\n- warrantyRequirements: extract any warranty provisions required for coverage\n- For limits and deductibles, extract the proposed structure from the quote";
|
|
154
584
|
/**
|
|
155
585
|
* Chunked extraction: sections prompt for a specific page range (policies).
|
|
156
586
|
*/
|
|
@@ -357,8 +787,8 @@ declare const AGENT_TOOLS: ToolDefinition[];
|
|
|
357
787
|
* Defaults to Anthropic models via `createDefaultModelConfig()`.
|
|
358
788
|
*/
|
|
359
789
|
|
|
360
|
-
declare const SONNET_MODEL = "claude-sonnet-4
|
|
361
|
-
declare const HAIKU_MODEL = "claude-haiku-4
|
|
790
|
+
declare const SONNET_MODEL = "claude-sonnet-4.6";
|
|
791
|
+
declare const HAIKU_MODEL = "claude-haiku-4.5.20251001";
|
|
362
792
|
type LogFn = (message: string) => Promise<void>;
|
|
363
793
|
/** Strip markdown code fences from AI response text. */
|
|
364
794
|
declare function stripFences(text: string): string;
|
|
@@ -371,28 +801,7 @@ declare function stripFences(text: string): string;
|
|
|
371
801
|
*/
|
|
372
802
|
declare function sanitizeNulls<T>(obj: T): T;
|
|
373
803
|
/** Map raw Claude extraction JSON to mutation-compatible fields. */
|
|
374
|
-
declare function applyExtracted(extracted: any):
|
|
375
|
-
carrier: any;
|
|
376
|
-
security: any;
|
|
377
|
-
underwriter: any;
|
|
378
|
-
mga: any;
|
|
379
|
-
broker: any;
|
|
380
|
-
policyNumber: any;
|
|
381
|
-
policyTypes: any;
|
|
382
|
-
documentType: "policy" | "quote";
|
|
383
|
-
policyYear: any;
|
|
384
|
-
effectiveDate: any;
|
|
385
|
-
expirationDate: any;
|
|
386
|
-
isRenewal: any;
|
|
387
|
-
coverages: any;
|
|
388
|
-
premium: any;
|
|
389
|
-
insuredName: any;
|
|
390
|
-
summary: any;
|
|
391
|
-
metadataSource: any;
|
|
392
|
-
document: any;
|
|
393
|
-
extractionStatus: "complete";
|
|
394
|
-
extractionError: string;
|
|
395
|
-
};
|
|
804
|
+
declare function applyExtracted(extracted: any): any;
|
|
396
805
|
/**
|
|
397
806
|
* Merge document sections from chunked extraction passes.
|
|
398
807
|
*
|
|
@@ -423,31 +832,7 @@ declare function classifyDocumentType(pdfBase64: string, options?: ClassifyOptio
|
|
|
423
832
|
signals: string[];
|
|
424
833
|
}>;
|
|
425
834
|
/** Map raw Claude quote extraction JSON to mutation-compatible fields. */
|
|
426
|
-
declare function applyExtractedQuote(extracted: any):
|
|
427
|
-
carrier: any;
|
|
428
|
-
security: any;
|
|
429
|
-
underwriter: any;
|
|
430
|
-
mga: any;
|
|
431
|
-
broker: any;
|
|
432
|
-
quoteNumber: any;
|
|
433
|
-
policyTypes: any;
|
|
434
|
-
quoteYear: any;
|
|
435
|
-
proposedEffectiveDate: any;
|
|
436
|
-
proposedExpirationDate: any;
|
|
437
|
-
quoteExpirationDate: any;
|
|
438
|
-
isRenewal: any;
|
|
439
|
-
coverages: any;
|
|
440
|
-
premium: any;
|
|
441
|
-
premiumBreakdown: any;
|
|
442
|
-
insuredName: any;
|
|
443
|
-
summary: any;
|
|
444
|
-
subjectivities: any;
|
|
445
|
-
underwritingConditions: any;
|
|
446
|
-
metadataSource: any;
|
|
447
|
-
document: any;
|
|
448
|
-
extractionStatus: "complete";
|
|
449
|
-
extractionError: string;
|
|
450
|
-
};
|
|
835
|
+
declare function applyExtractedQuote(extracted: any): any;
|
|
451
836
|
/**
|
|
452
837
|
* Merge document sections from chunked quote extraction passes.
|
|
453
838
|
*
|
|
@@ -475,7 +860,7 @@ interface ExtractOptions {
|
|
|
475
860
|
onTokenUsage?: (usage: TokenUsage) => void;
|
|
476
861
|
}
|
|
477
862
|
/**
|
|
478
|
-
* Full extraction pipeline for policy documents (passes 1
|
|
863
|
+
* Full extraction pipeline for policy documents (passes 1 through 3).
|
|
479
864
|
*
|
|
480
865
|
* - **Pass 1**: Metadata model extracts metadata, coverages, and page count.
|
|
481
866
|
* - **Pass 2**: Sections model extracts sections in chunks (with adaptive retry and fallback).
|
|
@@ -508,7 +893,7 @@ declare function extractSectionsOnly(pdfBase64: string, metadataRaw: string, opt
|
|
|
508
893
|
extracted: any;
|
|
509
894
|
}>;
|
|
510
895
|
/**
|
|
511
|
-
* Full extraction pipeline for quote documents (passes 1
|
|
896
|
+
* Full extraction pipeline for quote documents (passes 1 through 2).
|
|
512
897
|
*
|
|
513
898
|
* - **Pass 1**: Metadata model extracts quote-specific metadata (proposed dates,
|
|
514
899
|
* subjectivities, premium breakdown).
|
|
@@ -562,4 +947,4 @@ interface TextOverlay {
|
|
|
562
947
|
/** Overlay text on a flat PDF at specified coordinates. */
|
|
563
948
|
declare function overlayTextOnPdf(pdfBytes: Uint8Array, overlays: TextOverlay[]): Promise<Uint8Array>;
|
|
564
949
|
|
|
565
|
-
export { AGENT_TOOLS, APPLICATION_CLASSIFY_PROMPT, type AcroFormFieldInfo, type AgentContext, type BaseDocument, CLASSIFY_DOCUMENT_PROMPT, CLASSIFY_EMAIL_PROMPT, COI_GENERATION_TOOL, COVERAGE_COMPARISON_TOOL, type ClassifyOptions, type CommunicationIntent, type Coverage, DOCUMENT_LOOKUP_TOOL, EXTRACTION_PROMPT, type ExtractOptions, type ExtractSectionsOptions, type FieldMapping, HAIKU_MODEL, type InsuranceDocument, type LogFn, METADATA_PROMPT, MODEL_TOKEN_LIMITS, type ModelConfig, PLATFORM_CONFIGS, type Platform, type PlatformConfig, type PolicyDocument, type PremiumLine, type PromptBuilder, QUOTE_METADATA_PROMPT, type QuoteDocument, SONNET_MODEL, type Section, type Subjectivity, type Subsection, type TextOverlay, type TokenUsage, type ToolDefinition, type UnderwritingCondition, applyExtracted, applyExtractedQuote, buildAcroFormMappingPrompt, buildAgentSystemPrompt, buildAnswerParsingPrompt, buildAutoFillPrompt, buildBatchEmailGenerationPrompt, buildClassifyMessagePrompt, buildCoiRoutingPrompt, buildConfirmationSummaryPrompt, buildConversationMemoryContext, buildConversationMemoryGuidance, buildCoverageGapPrompt, buildDocumentContext, buildFieldExplanationPrompt, buildFieldExtractionPrompt, buildFlatPdfMappingPrompt, buildFormattingPrompt, buildIdentityPrompt, buildIntentPrompt, buildLookupFillPrompt, buildPolicyContext, buildPolicySectionsPrompt, buildQuestionBatchPrompt, buildQuoteSectionsPrompt, buildQuotesPoliciesPrompt, buildReplyIntentClassificationPrompt, buildSafetyPrompt, buildSectionsPrompt, buildSupplementaryEnrichmentPrompt, buildSystemPrompt, classifyDocumentType, createDefaultModelConfig, createUniformModelConfig, enrichSupplementaryFields, extractFromPdf, extractPageRange, extractQuoteFromPdf, extractSectionsOnly, fillAcroForm, getAcroFormFields, getPageChunks, getPdfPageCount, mergeChunkedQuoteSections, mergeChunkedSections, overlayTextOnPdf, sanitizeNulls, stripFences };
|
|
950
|
+
export { AGENT_TOOLS, APPLICATION_CLASSIFY_PROMPT, type AcroFormFieldInfo, type Address, type AdmittedStatus, type AgentContext, type AuditType, type BaseDocument, type BindingAuthority, CLASSIFY_DOCUMENT_PROMPT, CLASSIFY_EMAIL_PROMPT, COI_GENERATION_TOOL, CONTEXT_KEY_MAP, COVERAGE_COMPARISON_TOOL, type ChunkType, type ClaimRecord, type ClaimStatus, type ClassificationCode, type ClassifyOptions, type CommunicationIntent, type ConditionType, type Contact, type ContextKeyMapping, type Coverage, type CoverageForm, type CoverageTrigger, DOCUMENT_LOOKUP_TOOL, type DeductibleSchedule, type DeductibleType, type DefenseCostTreatment, type DocumentType, EXTRACTION_PROMPT, type EmployersLiabilityLimits, type Endorsement, type EndorsementParty, type EndorsementPartyRole, type EndorsementType, type EnrichedCoverage, type EnrichedSubjectivity, type EnrichedUnderwritingCondition, type EntityType, type Exclusion, type ExperienceMod, type ExtendedReportingPeriod, type ExtractOptions, type ExtractSectionsOptions, type FieldMapping, type FormReference, HAIKU_MODEL, type InsuranceDocument, type InsuredLocation, type InsuredVehicle, type InsurerInfo, type LimitSchedule, type LimitType, type LocationPremium, type LogFn, type LossSummary, METADATA_PROMPT, MODEL_TOKEN_LIMITS, type ModelConfig, type NamedInsured, PLATFORM_CONFIGS, POLICY_TYPES, type PaymentInstallment, type PaymentPlan, type Platform, type PlatformConfig, type PolicyCondition, type PolicyDocument, type PolicySectionType, type PolicyType, type PremiumLine, type ProducerInfo, type PromptBuilder, QUOTE_METADATA_PROMPT, type QuoteDocument, type QuoteSectionType, type RatingBasis, type RatingBasisType, SONNET_MODEL, type Section, type SharedLimit, type Subjectivity, type SubjectivityCategory, type Sublimit, type Subsection, type TaxFeeItem, type TextOverlay, type TokenUsage, type ToolDefinition, type UnderwritingCondition, type ValuationMethod, type VehicleCoverage, type VehicleCoverageType, applyExtracted, applyExtractedQuote, buildAcroFormMappingPrompt, buildAgentSystemPrompt, buildAnswerParsingPrompt, buildAutoFillPrompt, buildBatchEmailGenerationPrompt, buildClassifyMessagePrompt, buildCoiRoutingPrompt, buildConfirmationSummaryPrompt, buildConversationMemoryContext, buildConversationMemoryGuidance, buildCoverageGapPrompt, buildDocumentContext, buildFieldExplanationPrompt, buildFieldExtractionPrompt, buildFlatPdfMappingPrompt, buildFormattingPrompt, buildIdentityPrompt, buildIntentPrompt, buildLookupFillPrompt, buildPolicyContext, buildPolicySectionsPrompt, buildQuestionBatchPrompt, buildQuoteSectionsPrompt, buildQuotesPoliciesPrompt, buildReplyIntentClassificationPrompt, buildSafetyPrompt, buildSectionsPrompt, buildSupplementaryEnrichmentPrompt, buildSystemPrompt, classifyDocumentType, createDefaultModelConfig, createUniformModelConfig, enrichSupplementaryFields, extractFromPdf, extractPageRange, extractQuoteFromPdf, extractSectionsOnly, fillAcroForm, getAcroFormFields, getPageChunks, getPdfPageCount, mergeChunkedQuoteSections, mergeChunkedSections, overlayTextOnPdf, sanitizeNulls, stripFences };
|