@claritylabs/cl-sdk 0.11.0 → 0.13.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/README.md +49 -1
- package/dist/index.d.mts +198 -11
- package/dist/index.d.ts +198 -11
- package/dist/index.js +316 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +311 -17
- package/dist/index.mjs.map +1 -1
- package/dist/storage-sqlite.d.mts +56 -0
- package/dist/storage-sqlite.d.ts +56 -0
- package/package.json +2 -6
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm install @claritylabs/cl-sdk pdf-lib zod
|
|
|
13
13
|
## What It Does
|
|
14
14
|
|
|
15
15
|
- **Document Extraction** — Agentic pipeline with 11 focused extractors that turns insurance PDFs into structured data with page-level provenance, quality gates, and automatic declarations-to-schema promotion (limits, deductibles, locations, broker, loss payees, summary)
|
|
16
|
-
- **Query Agent** — Citation-backed question answering over stored documents with sub-question decomposition and grounding verification
|
|
16
|
+
- **Query Agent** — Citation-backed question answering over stored documents and inbound photos/PDFs/text with sub-question decomposition and grounding verification
|
|
17
17
|
- **Application Processing** — Eight focused agents handle intake — field extraction, auto-fill from prior answers, topic-based question batching, and PDF mapping
|
|
18
18
|
- **Agent System** — Composable prompt modules for building insurance-aware conversational agents across email, chat, SMS, Slack, and Discord
|
|
19
19
|
- **Storage** — DocumentStore and MemoryStore interfaces with SQLite reference implementation
|
|
@@ -43,6 +43,54 @@ console.log(result.reviewReport); // Quality gate results
|
|
|
43
43
|
|
|
44
44
|
See the [full documentation](https://cl-sdk.claritylabs.inc/docs) for architecture, provider setup, API reference, and more.
|
|
45
45
|
|
|
46
|
+
## Multimodal Querying
|
|
47
|
+
|
|
48
|
+
`createQueryAgent()` now accepts user-supplied attachments on each query. This is meant for flows like:
|
|
49
|
+
|
|
50
|
+
- an SMS user texting a photo of apartment damage
|
|
51
|
+
- a broker or insured emailing a COI or other PDF for context
|
|
52
|
+
- a caller pasting text from an email thread alongside a question
|
|
53
|
+
|
|
54
|
+
```typescript
|
|
55
|
+
import { createQueryAgent } from "@claritylabs/cl-sdk";
|
|
56
|
+
|
|
57
|
+
const agent = createQueryAgent({
|
|
58
|
+
generateText,
|
|
59
|
+
generateObject,
|
|
60
|
+
documentStore,
|
|
61
|
+
memoryStore,
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
const result = await agent.query({
|
|
65
|
+
question: "What details do we still need, and does this relate to the stored policy?",
|
|
66
|
+
conversationId: "conv-123",
|
|
67
|
+
attachments: [
|
|
68
|
+
{
|
|
69
|
+
kind: "image",
|
|
70
|
+
name: "damage.jpg",
|
|
71
|
+
mimeType: "image/jpeg",
|
|
72
|
+
base64: damagePhotoBase64,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
kind: "pdf",
|
|
76
|
+
name: "coi.pdf",
|
|
77
|
+
mimeType: "application/pdf",
|
|
78
|
+
base64: coiPdfBase64,
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
});
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
The query pipeline first interprets each attachment into structured evidence, then combines that with retrieved chunks, document lookups, and conversation history before answering.
|
|
85
|
+
|
|
86
|
+
Important: your `generateObject` callback must actually forward multimodal payloads from `providerOptions` to the model request:
|
|
87
|
+
|
|
88
|
+
- `providerOptions.attachments` for generic image/pdf/text inputs
|
|
89
|
+
- `providerOptions.pdfBase64` for PDF inputs
|
|
90
|
+
- `providerOptions.images` for image inputs
|
|
91
|
+
|
|
92
|
+
If your callback ignores those fields, the model will only see the text prompt.
|
|
93
|
+
|
|
46
94
|
## Development
|
|
47
95
|
|
|
48
96
|
```bash
|
package/dist/index.d.mts
CHANGED
|
@@ -15,9 +15,11 @@ type GenerateText = (params: {
|
|
|
15
15
|
/**
|
|
16
16
|
* Callback to generate a typed object from a prompt + Zod schema. Provider-agnostic.
|
|
17
17
|
*
|
|
18
|
-
* The extraction
|
|
18
|
+
* The extraction and query pipelines may pass document content via `providerOptions`:
|
|
19
19
|
* - `providerOptions.pdfBase64` — base64-encoded PDF to include as document context
|
|
20
20
|
* - `providerOptions.images` — `Array<{ imageBase64: string; mimeType: string }>` page images
|
|
21
|
+
* - `providerOptions.attachments` — generic multimodal attachments such as
|
|
22
|
+
* `Array<{ kind: "image" | "pdf" | "text"; name?: string; mimeType?: string; base64?: string; text?: string; description?: string }>`
|
|
21
23
|
*
|
|
22
24
|
* Your callback should check for these fields and include them as multi-part
|
|
23
25
|
* message content (e.g. file/image parts) when calling your AI provider.
|
|
@@ -6242,6 +6244,23 @@ declare const PremiumLineSchema: z.ZodObject<{
|
|
|
6242
6244
|
line: string;
|
|
6243
6245
|
}>;
|
|
6244
6246
|
type PremiumLine = z.infer<typeof PremiumLineSchema>;
|
|
6247
|
+
declare const AuxiliaryFactSchema: z.ZodObject<{
|
|
6248
|
+
key: z.ZodString;
|
|
6249
|
+
value: z.ZodString;
|
|
6250
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
6251
|
+
context: z.ZodOptional<z.ZodString>;
|
|
6252
|
+
}, "strip", z.ZodTypeAny, {
|
|
6253
|
+
key: string;
|
|
6254
|
+
value: string;
|
|
6255
|
+
subject?: string | undefined;
|
|
6256
|
+
context?: string | undefined;
|
|
6257
|
+
}, {
|
|
6258
|
+
key: string;
|
|
6259
|
+
value: string;
|
|
6260
|
+
subject?: string | undefined;
|
|
6261
|
+
context?: string | undefined;
|
|
6262
|
+
}>;
|
|
6263
|
+
type AuxiliaryFact = z.infer<typeof AuxiliaryFactSchema>;
|
|
6245
6264
|
declare const PolicyDocumentSchema: z.ZodObject<{
|
|
6246
6265
|
type: z.ZodLiteral<"policy">;
|
|
6247
6266
|
policyNumber: z.ZodString;
|
|
@@ -9763,6 +9782,22 @@ declare const PolicyDocumentSchema: z.ZodObject<{
|
|
|
9763
9782
|
}>>;
|
|
9764
9783
|
cancellationNoticeDays: z.ZodOptional<z.ZodNumber>;
|
|
9765
9784
|
nonrenewalNoticeDays: z.ZodOptional<z.ZodNumber>;
|
|
9785
|
+
supplementaryFacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9786
|
+
key: z.ZodString;
|
|
9787
|
+
value: z.ZodString;
|
|
9788
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
9789
|
+
context: z.ZodOptional<z.ZodString>;
|
|
9790
|
+
}, "strip", z.ZodTypeAny, {
|
|
9791
|
+
key: string;
|
|
9792
|
+
value: string;
|
|
9793
|
+
subject?: string | undefined;
|
|
9794
|
+
context?: string | undefined;
|
|
9795
|
+
}, {
|
|
9796
|
+
key: string;
|
|
9797
|
+
value: string;
|
|
9798
|
+
subject?: string | undefined;
|
|
9799
|
+
context?: string | undefined;
|
|
9800
|
+
}>, "many">>;
|
|
9766
9801
|
}, "strip", z.ZodTypeAny, {
|
|
9767
9802
|
type: "policy";
|
|
9768
9803
|
effectiveDate: string;
|
|
@@ -10688,6 +10723,12 @@ declare const PolicyDocumentSchema: z.ZodObject<{
|
|
|
10688
10723
|
}[] | undefined;
|
|
10689
10724
|
cancellationNoticeDays?: number | undefined;
|
|
10690
10725
|
nonrenewalNoticeDays?: number | undefined;
|
|
10726
|
+
supplementaryFacts?: {
|
|
10727
|
+
key: string;
|
|
10728
|
+
value: string;
|
|
10729
|
+
subject?: string | undefined;
|
|
10730
|
+
context?: string | undefined;
|
|
10731
|
+
}[] | undefined;
|
|
10691
10732
|
}, {
|
|
10692
10733
|
type: "policy";
|
|
10693
10734
|
effectiveDate: string;
|
|
@@ -11613,6 +11654,12 @@ declare const PolicyDocumentSchema: z.ZodObject<{
|
|
|
11613
11654
|
}[] | undefined;
|
|
11614
11655
|
cancellationNoticeDays?: number | undefined;
|
|
11615
11656
|
nonrenewalNoticeDays?: number | undefined;
|
|
11657
|
+
supplementaryFacts?: {
|
|
11658
|
+
key: string;
|
|
11659
|
+
value: string;
|
|
11660
|
+
subject?: string | undefined;
|
|
11661
|
+
context?: string | undefined;
|
|
11662
|
+
}[] | undefined;
|
|
11616
11663
|
}>;
|
|
11617
11664
|
type PolicyDocument = z.infer<typeof PolicyDocumentSchema>;
|
|
11618
11665
|
declare const QuoteDocumentSchema: z.ZodObject<{
|
|
@@ -15211,6 +15258,22 @@ declare const QuoteDocumentSchema: z.ZodObject<{
|
|
|
15211
15258
|
}>>;
|
|
15212
15259
|
cancellationNoticeDays: z.ZodOptional<z.ZodNumber>;
|
|
15213
15260
|
nonrenewalNoticeDays: z.ZodOptional<z.ZodNumber>;
|
|
15261
|
+
supplementaryFacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15262
|
+
key: z.ZodString;
|
|
15263
|
+
value: z.ZodString;
|
|
15264
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
15265
|
+
context: z.ZodOptional<z.ZodString>;
|
|
15266
|
+
}, "strip", z.ZodTypeAny, {
|
|
15267
|
+
key: string;
|
|
15268
|
+
value: string;
|
|
15269
|
+
subject?: string | undefined;
|
|
15270
|
+
context?: string | undefined;
|
|
15271
|
+
}, {
|
|
15272
|
+
key: string;
|
|
15273
|
+
value: string;
|
|
15274
|
+
subject?: string | undefined;
|
|
15275
|
+
context?: string | undefined;
|
|
15276
|
+
}>, "many">>;
|
|
15214
15277
|
}, "strip", z.ZodTypeAny, {
|
|
15215
15278
|
type: "quote";
|
|
15216
15279
|
coverages: {
|
|
@@ -16131,6 +16194,12 @@ declare const QuoteDocumentSchema: z.ZodObject<{
|
|
|
16131
16194
|
}[] | undefined;
|
|
16132
16195
|
cancellationNoticeDays?: number | undefined;
|
|
16133
16196
|
nonrenewalNoticeDays?: number | undefined;
|
|
16197
|
+
supplementaryFacts?: {
|
|
16198
|
+
key: string;
|
|
16199
|
+
value: string;
|
|
16200
|
+
subject?: string | undefined;
|
|
16201
|
+
context?: string | undefined;
|
|
16202
|
+
}[] | undefined;
|
|
16134
16203
|
proposedEffectiveDate?: string | undefined;
|
|
16135
16204
|
proposedExpirationDate?: string | undefined;
|
|
16136
16205
|
quoteExpirationDate?: string | undefined;
|
|
@@ -17085,6 +17154,12 @@ declare const QuoteDocumentSchema: z.ZodObject<{
|
|
|
17085
17154
|
}[] | undefined;
|
|
17086
17155
|
cancellationNoticeDays?: number | undefined;
|
|
17087
17156
|
nonrenewalNoticeDays?: number | undefined;
|
|
17157
|
+
supplementaryFacts?: {
|
|
17158
|
+
key: string;
|
|
17159
|
+
value: string;
|
|
17160
|
+
subject?: string | undefined;
|
|
17161
|
+
context?: string | undefined;
|
|
17162
|
+
}[] | undefined;
|
|
17088
17163
|
proposedEffectiveDate?: string | undefined;
|
|
17089
17164
|
proposedExpirationDate?: string | undefined;
|
|
17090
17165
|
quoteExpirationDate?: string | undefined;
|
|
@@ -20642,6 +20717,22 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
20642
20717
|
}>>;
|
|
20643
20718
|
cancellationNoticeDays: z.ZodOptional<z.ZodNumber>;
|
|
20644
20719
|
nonrenewalNoticeDays: z.ZodOptional<z.ZodNumber>;
|
|
20720
|
+
supplementaryFacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20721
|
+
key: z.ZodString;
|
|
20722
|
+
value: z.ZodString;
|
|
20723
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
20724
|
+
context: z.ZodOptional<z.ZodString>;
|
|
20725
|
+
}, "strip", z.ZodTypeAny, {
|
|
20726
|
+
key: string;
|
|
20727
|
+
value: string;
|
|
20728
|
+
subject?: string | undefined;
|
|
20729
|
+
context?: string | undefined;
|
|
20730
|
+
}, {
|
|
20731
|
+
key: string;
|
|
20732
|
+
value: string;
|
|
20733
|
+
subject?: string | undefined;
|
|
20734
|
+
context?: string | undefined;
|
|
20735
|
+
}>, "many">>;
|
|
20645
20736
|
}, "strip", z.ZodTypeAny, {
|
|
20646
20737
|
type: "policy";
|
|
20647
20738
|
effectiveDate: string;
|
|
@@ -21567,6 +21658,12 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
21567
21658
|
}[] | undefined;
|
|
21568
21659
|
cancellationNoticeDays?: number | undefined;
|
|
21569
21660
|
nonrenewalNoticeDays?: number | undefined;
|
|
21661
|
+
supplementaryFacts?: {
|
|
21662
|
+
key: string;
|
|
21663
|
+
value: string;
|
|
21664
|
+
subject?: string | undefined;
|
|
21665
|
+
context?: string | undefined;
|
|
21666
|
+
}[] | undefined;
|
|
21570
21667
|
}, {
|
|
21571
21668
|
type: "policy";
|
|
21572
21669
|
effectiveDate: string;
|
|
@@ -22492,6 +22589,12 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
22492
22589
|
}[] | undefined;
|
|
22493
22590
|
cancellationNoticeDays?: number | undefined;
|
|
22494
22591
|
nonrenewalNoticeDays?: number | undefined;
|
|
22592
|
+
supplementaryFacts?: {
|
|
22593
|
+
key: string;
|
|
22594
|
+
value: string;
|
|
22595
|
+
subject?: string | undefined;
|
|
22596
|
+
context?: string | undefined;
|
|
22597
|
+
}[] | undefined;
|
|
22495
22598
|
}>, z.ZodObject<{
|
|
22496
22599
|
type: z.ZodLiteral<"quote">;
|
|
22497
22600
|
quoteNumber: z.ZodString;
|
|
@@ -26088,6 +26191,22 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
26088
26191
|
}>>;
|
|
26089
26192
|
cancellationNoticeDays: z.ZodOptional<z.ZodNumber>;
|
|
26090
26193
|
nonrenewalNoticeDays: z.ZodOptional<z.ZodNumber>;
|
|
26194
|
+
supplementaryFacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26195
|
+
key: z.ZodString;
|
|
26196
|
+
value: z.ZodString;
|
|
26197
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
26198
|
+
context: z.ZodOptional<z.ZodString>;
|
|
26199
|
+
}, "strip", z.ZodTypeAny, {
|
|
26200
|
+
key: string;
|
|
26201
|
+
value: string;
|
|
26202
|
+
subject?: string | undefined;
|
|
26203
|
+
context?: string | undefined;
|
|
26204
|
+
}, {
|
|
26205
|
+
key: string;
|
|
26206
|
+
value: string;
|
|
26207
|
+
subject?: string | undefined;
|
|
26208
|
+
context?: string | undefined;
|
|
26209
|
+
}>, "many">>;
|
|
26091
26210
|
}, "strip", z.ZodTypeAny, {
|
|
26092
26211
|
type: "quote";
|
|
26093
26212
|
coverages: {
|
|
@@ -27008,6 +27127,12 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
27008
27127
|
}[] | undefined;
|
|
27009
27128
|
cancellationNoticeDays?: number | undefined;
|
|
27010
27129
|
nonrenewalNoticeDays?: number | undefined;
|
|
27130
|
+
supplementaryFacts?: {
|
|
27131
|
+
key: string;
|
|
27132
|
+
value: string;
|
|
27133
|
+
subject?: string | undefined;
|
|
27134
|
+
context?: string | undefined;
|
|
27135
|
+
}[] | undefined;
|
|
27011
27136
|
proposedEffectiveDate?: string | undefined;
|
|
27012
27137
|
proposedExpirationDate?: string | undefined;
|
|
27013
27138
|
quoteExpirationDate?: string | undefined;
|
|
@@ -27962,6 +28087,12 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
27962
28087
|
}[] | undefined;
|
|
27963
28088
|
cancellationNoticeDays?: number | undefined;
|
|
27964
28089
|
nonrenewalNoticeDays?: number | undefined;
|
|
28090
|
+
supplementaryFacts?: {
|
|
28091
|
+
key: string;
|
|
28092
|
+
value: string;
|
|
28093
|
+
subject?: string | undefined;
|
|
28094
|
+
context?: string | undefined;
|
|
28095
|
+
}[] | undefined;
|
|
27965
28096
|
proposedEffectiveDate?: string | undefined;
|
|
27966
28097
|
proposedExpirationDate?: string | undefined;
|
|
27967
28098
|
quoteExpirationDate?: string | undefined;
|
|
@@ -29591,6 +29722,34 @@ declare function buildLookupFillPrompt(requests: {
|
|
|
29591
29722
|
|
|
29592
29723
|
declare const QueryIntentSchema: z.ZodEnum<["policy_question", "coverage_comparison", "document_search", "claims_inquiry", "general_knowledge"]>;
|
|
29593
29724
|
type QueryIntent = z.infer<typeof QueryIntentSchema>;
|
|
29725
|
+
declare const QueryAttachmentKindSchema: z.ZodEnum<["image", "pdf", "text"]>;
|
|
29726
|
+
type QueryAttachmentKind = z.infer<typeof QueryAttachmentKindSchema>;
|
|
29727
|
+
declare const QueryAttachmentSchema: z.ZodObject<{
|
|
29728
|
+
id: z.ZodOptional<z.ZodString>;
|
|
29729
|
+
kind: z.ZodEnum<["image", "pdf", "text"]>;
|
|
29730
|
+
name: z.ZodOptional<z.ZodString>;
|
|
29731
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
29732
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
29733
|
+
text: z.ZodOptional<z.ZodString>;
|
|
29734
|
+
description: z.ZodOptional<z.ZodString>;
|
|
29735
|
+
}, "strip", z.ZodTypeAny, {
|
|
29736
|
+
kind: "text" | "image" | "pdf";
|
|
29737
|
+
name?: string | undefined;
|
|
29738
|
+
description?: string | undefined;
|
|
29739
|
+
id?: string | undefined;
|
|
29740
|
+
base64?: string | undefined;
|
|
29741
|
+
text?: string | undefined;
|
|
29742
|
+
mimeType?: string | undefined;
|
|
29743
|
+
}, {
|
|
29744
|
+
kind: "text" | "image" | "pdf";
|
|
29745
|
+
name?: string | undefined;
|
|
29746
|
+
description?: string | undefined;
|
|
29747
|
+
id?: string | undefined;
|
|
29748
|
+
base64?: string | undefined;
|
|
29749
|
+
text?: string | undefined;
|
|
29750
|
+
mimeType?: string | undefined;
|
|
29751
|
+
}>;
|
|
29752
|
+
type QueryAttachment = z.infer<typeof QueryAttachmentSchema>;
|
|
29594
29753
|
declare const SubQuestionSchema: z.ZodObject<{
|
|
29595
29754
|
question: z.ZodString;
|
|
29596
29755
|
intent: z.ZodEnum<["policy_question", "coverage_comparison", "document_search", "claims_inquiry", "general_knowledge"]>;
|
|
@@ -29726,10 +29885,11 @@ declare const QueryClassifyResultSchema: z.ZodObject<{
|
|
|
29726
29885
|
}>;
|
|
29727
29886
|
type QueryClassifyResult = z.infer<typeof QueryClassifyResultSchema>;
|
|
29728
29887
|
declare const EvidenceItemSchema: z.ZodObject<{
|
|
29729
|
-
source: z.ZodEnum<["chunk", "document", "conversation"]>;
|
|
29888
|
+
source: z.ZodEnum<["chunk", "document", "conversation", "attachment"]>;
|
|
29730
29889
|
chunkId: z.ZodOptional<z.ZodString>;
|
|
29731
29890
|
documentId: z.ZodOptional<z.ZodString>;
|
|
29732
29891
|
turnId: z.ZodOptional<z.ZodString>;
|
|
29892
|
+
attachmentId: z.ZodOptional<z.ZodString>;
|
|
29733
29893
|
text: z.ZodString;
|
|
29734
29894
|
relevance: z.ZodNumber;
|
|
29735
29895
|
metadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -29744,35 +29904,55 @@ declare const EvidenceItemSchema: z.ZodObject<{
|
|
|
29744
29904
|
}>, "many">>;
|
|
29745
29905
|
}, "strip", z.ZodTypeAny, {
|
|
29746
29906
|
text: string;
|
|
29747
|
-
source: "document" | "chunk" | "conversation";
|
|
29907
|
+
source: "document" | "chunk" | "conversation" | "attachment";
|
|
29748
29908
|
relevance: number;
|
|
29749
29909
|
chunkId?: string | undefined;
|
|
29750
29910
|
documentId?: string | undefined;
|
|
29751
29911
|
turnId?: string | undefined;
|
|
29912
|
+
attachmentId?: string | undefined;
|
|
29752
29913
|
metadata?: {
|
|
29753
29914
|
key: string;
|
|
29754
29915
|
value: string;
|
|
29755
29916
|
}[] | undefined;
|
|
29756
29917
|
}, {
|
|
29757
29918
|
text: string;
|
|
29758
|
-
source: "document" | "chunk" | "conversation";
|
|
29919
|
+
source: "document" | "chunk" | "conversation" | "attachment";
|
|
29759
29920
|
relevance: number;
|
|
29760
29921
|
chunkId?: string | undefined;
|
|
29761
29922
|
documentId?: string | undefined;
|
|
29762
29923
|
turnId?: string | undefined;
|
|
29924
|
+
attachmentId?: string | undefined;
|
|
29763
29925
|
metadata?: {
|
|
29764
29926
|
key: string;
|
|
29765
29927
|
value: string;
|
|
29766
29928
|
}[] | undefined;
|
|
29767
29929
|
}>;
|
|
29768
29930
|
type EvidenceItem = z.infer<typeof EvidenceItemSchema>;
|
|
29931
|
+
declare const AttachmentInterpretationSchema: z.ZodObject<{
|
|
29932
|
+
summary: z.ZodString;
|
|
29933
|
+
extractedFacts: z.ZodArray<z.ZodString, "many">;
|
|
29934
|
+
recommendedFocus: z.ZodArray<z.ZodString, "many">;
|
|
29935
|
+
confidence: z.ZodNumber;
|
|
29936
|
+
}, "strip", z.ZodTypeAny, {
|
|
29937
|
+
summary: string;
|
|
29938
|
+
confidence: number;
|
|
29939
|
+
extractedFacts: string[];
|
|
29940
|
+
recommendedFocus: string[];
|
|
29941
|
+
}, {
|
|
29942
|
+
summary: string;
|
|
29943
|
+
confidence: number;
|
|
29944
|
+
extractedFacts: string[];
|
|
29945
|
+
recommendedFocus: string[];
|
|
29946
|
+
}>;
|
|
29947
|
+
type AttachmentInterpretation = z.infer<typeof AttachmentInterpretationSchema>;
|
|
29769
29948
|
declare const RetrievalResultSchema: z.ZodObject<{
|
|
29770
29949
|
subQuestion: z.ZodString;
|
|
29771
29950
|
evidence: z.ZodArray<z.ZodObject<{
|
|
29772
|
-
source: z.ZodEnum<["chunk", "document", "conversation"]>;
|
|
29951
|
+
source: z.ZodEnum<["chunk", "document", "conversation", "attachment"]>;
|
|
29773
29952
|
chunkId: z.ZodOptional<z.ZodString>;
|
|
29774
29953
|
documentId: z.ZodOptional<z.ZodString>;
|
|
29775
29954
|
turnId: z.ZodOptional<z.ZodString>;
|
|
29955
|
+
attachmentId: z.ZodOptional<z.ZodString>;
|
|
29776
29956
|
text: z.ZodString;
|
|
29777
29957
|
relevance: z.ZodNumber;
|
|
29778
29958
|
metadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -29787,22 +29967,24 @@ declare const RetrievalResultSchema: z.ZodObject<{
|
|
|
29787
29967
|
}>, "many">>;
|
|
29788
29968
|
}, "strip", z.ZodTypeAny, {
|
|
29789
29969
|
text: string;
|
|
29790
|
-
source: "document" | "chunk" | "conversation";
|
|
29970
|
+
source: "document" | "chunk" | "conversation" | "attachment";
|
|
29791
29971
|
relevance: number;
|
|
29792
29972
|
chunkId?: string | undefined;
|
|
29793
29973
|
documentId?: string | undefined;
|
|
29794
29974
|
turnId?: string | undefined;
|
|
29975
|
+
attachmentId?: string | undefined;
|
|
29795
29976
|
metadata?: {
|
|
29796
29977
|
key: string;
|
|
29797
29978
|
value: string;
|
|
29798
29979
|
}[] | undefined;
|
|
29799
29980
|
}, {
|
|
29800
29981
|
text: string;
|
|
29801
|
-
source: "document" | "chunk" | "conversation";
|
|
29982
|
+
source: "document" | "chunk" | "conversation" | "attachment";
|
|
29802
29983
|
relevance: number;
|
|
29803
29984
|
chunkId?: string | undefined;
|
|
29804
29985
|
documentId?: string | undefined;
|
|
29805
29986
|
turnId?: string | undefined;
|
|
29987
|
+
attachmentId?: string | undefined;
|
|
29806
29988
|
metadata?: {
|
|
29807
29989
|
key: string;
|
|
29808
29990
|
value: string;
|
|
@@ -29812,11 +29994,12 @@ declare const RetrievalResultSchema: z.ZodObject<{
|
|
|
29812
29994
|
subQuestion: string;
|
|
29813
29995
|
evidence: {
|
|
29814
29996
|
text: string;
|
|
29815
|
-
source: "document" | "chunk" | "conversation";
|
|
29997
|
+
source: "document" | "chunk" | "conversation" | "attachment";
|
|
29816
29998
|
relevance: number;
|
|
29817
29999
|
chunkId?: string | undefined;
|
|
29818
30000
|
documentId?: string | undefined;
|
|
29819
30001
|
turnId?: string | undefined;
|
|
30002
|
+
attachmentId?: string | undefined;
|
|
29820
30003
|
metadata?: {
|
|
29821
30004
|
key: string;
|
|
29822
30005
|
value: string;
|
|
@@ -29826,11 +30009,12 @@ declare const RetrievalResultSchema: z.ZodObject<{
|
|
|
29826
30009
|
subQuestion: string;
|
|
29827
30010
|
evidence: {
|
|
29828
30011
|
text: string;
|
|
29829
|
-
source: "document" | "chunk" | "conversation";
|
|
30012
|
+
source: "document" | "chunk" | "conversation" | "attachment";
|
|
29830
30013
|
relevance: number;
|
|
29831
30014
|
chunkId?: string | undefined;
|
|
29832
30015
|
documentId?: string | undefined;
|
|
29833
30016
|
turnId?: string | undefined;
|
|
30017
|
+
attachmentId?: string | undefined;
|
|
29834
30018
|
metadata?: {
|
|
29835
30019
|
key: string;
|
|
29836
30020
|
value: string;
|
|
@@ -30034,6 +30218,7 @@ interface QueryInput {
|
|
|
30034
30218
|
question: string;
|
|
30035
30219
|
conversationId?: string;
|
|
30036
30220
|
context?: AgentContext;
|
|
30221
|
+
attachments?: QueryAttachment[];
|
|
30037
30222
|
}
|
|
30038
30223
|
interface QueryOutput extends QueryResult {
|
|
30039
30224
|
tokenUsage: TokenUsage;
|
|
@@ -30048,7 +30233,9 @@ declare function createQueryAgent(config: QueryConfig): {
|
|
|
30048
30233
|
* Query classification prompt — determines intent and decomposes complex
|
|
30049
30234
|
* questions into atomic sub-questions for parallel retrieval + reasoning.
|
|
30050
30235
|
*/
|
|
30051
|
-
declare function buildQueryClassifyPrompt(question: string, conversationContext?: string): string;
|
|
30236
|
+
declare function buildQueryClassifyPrompt(question: string, conversationContext?: string, attachmentContext?: string): string;
|
|
30237
|
+
|
|
30238
|
+
declare function buildInterpretAttachmentPrompt(question: string, attachment: QueryAttachment): string;
|
|
30052
30239
|
|
|
30053
30240
|
/**
|
|
30054
30241
|
* Reasoning prompts — per-intent prompts that instruct the reasoner agent
|
|
@@ -30107,4 +30294,4 @@ interface DocumentTemplate {
|
|
|
30107
30294
|
}
|
|
30108
30295
|
declare function getTemplate(policyType: string): DocumentTemplate;
|
|
30109
30296
|
|
|
30110
|
-
export { ADMITTED_STATUSES, AGENT_TOOLS, APPLICATION_CLASSIFY_PROMPT, AUDIT_TYPES, type AcroFormFieldInfo, type AcroFormMapping, AcroFormMappingSchema, type Address, AddressSchema, type AdmittedStatus, AdmittedStatusSchema, type AgentContext, type AnswerParsingResult, AnswerParsingResultSchema, type ApplicationClassifyResult, ApplicationClassifyResultSchema, ApplicationEmailReviewSchema, type ApplicationField, ApplicationFieldSchema, type ApplicationListFilters, type ApplicationPipelineConfig, ApplicationQualityArtifactSchema, ApplicationQualityIssueSchema, ApplicationQualityReportSchema, ApplicationQualityRoundSchema, type ApplicationState, ApplicationStateSchema, type ApplicationStore, type AuditType, AuditTypeSchema, type AutoFillMatch, AutoFillMatchSchema, type AutoFillResult, AutoFillResultSchema, BOAT_TYPES, type BackfillProvider, type BindingAuthority, BindingAuthoritySchema, type BoatType, BoatTypeSchema, CHUNK_TYPES, CLAIM_STATUSES, COI_GENERATION_TOOL, CONDITION_TYPES, CONSTRUCTION_TYPES, CONTEXT_KEY_MAP, COVERAGE_COMPARISON_TOOL, COVERAGE_FORMS, COVERAGE_TRIGGERS, type ChunkFilter, type ChunkType, ChunkTypeSchema, type Citation, CitationSchema, type ClaimRecord, ClaimRecordSchema, type ClaimStatus, ClaimStatusSchema, type ClassificationCode, ClassificationCodeSchema, type CommercialAutoDeclarations, CommercialAutoDeclarationsSchema, type CommercialPropertyDeclarations, CommercialPropertyDeclarationsSchema, type CommunicationIntent, CommunicationIntentSchema, ConditionKeyValueSchema, type ConditionType, ConditionTypeSchema, type ConstructionType, ConstructionTypeSchema, type Contact, ContactSchema, type ContextKeyMapping, type ConversationTurn, type ConvertPdfToImagesFn, type Coverage, type CoverageForm, CoverageFormSchema, CoverageSchema, type CoverageTrigger, CoverageTriggerSchema, type CoverageValueType, CoverageValueTypeSchema, type CrimeDeclarations, CrimeDeclarationsSchema, type CyberDeclarations, CyberDeclarationsSchema, DEDUCTIBLE_TYPES, DEFENSE_COST_TREATMENTS, DOCUMENT_LOOKUP_TOOL, DOCUMENT_TYPES, type DODeclarations, DODeclarationsSchema, DWELLING_FIRE_FORM_TYPES, type Declarations, DeclarationsSchema, type DeductibleSchedule, DeductibleScheduleSchema, type DeductibleType, DeductibleTypeSchema, type DefenseCostTreatment, DefenseCostTreatmentSchema, type DocumentChunk, type DocumentFilters, type DocumentStore, type DocumentTemplate, type DocumentType, DocumentTypeSchema, type DriverRecord, DriverRecordSchema, type DwellingDetails, DwellingDetailsSchema, type DwellingFireDeclarations, DwellingFireDeclarationsSchema, type DwellingFireFormType, DwellingFireFormTypeSchema, ENDORSEMENT_PARTY_ROLES, ENDORSEMENT_TYPES, ENTITY_TYPES, type EarthquakeDeclarations, EarthquakeDeclarationsSchema, type EmbedText, type EmployersLiabilityLimits, EmployersLiabilityLimitsSchema, type Endorsement, type EndorsementParty, type EndorsementPartyRole, EndorsementPartyRoleSchema, EndorsementPartySchema, EndorsementSchema, type EndorsementType, EndorsementTypeSchema, type EnrichedCoverage, EnrichedCoverageSchema, type EnrichedSubjectivity, EnrichedSubjectivitySchema, type EnrichedUnderwritingCondition, EnrichedUnderwritingConditionSchema, type EntityType, EntityTypeSchema, type EvidenceItem, EvidenceItemSchema, type Exclusion, ExclusionSchema, type ExperienceMod, ExperienceModSchema, type ExtendedReportingPeriod, ExtendedReportingPeriodSchema, type ExtractOptions, type ExtractionResult, type ExtractionState, type ExtractorConfig, type ExtractorDef, FLOOD_ZONES, FOUNDATION_TYPES, type FarmRanchDeclarations, FarmRanchDeclarationsSchema, type FieldExtractionResult, FieldExtractionResultSchema, type FieldMapping, type FieldType, FieldTypeSchema, type FlatPdfPlacement, FlatPdfPlacementSchema, type FloodDeclarations, FloodDeclarationsSchema, type FloodZone, FloodZoneSchema, type FormReference, FormReferenceSchema, type FoundationType, FoundationTypeSchema, type GLDeclarations, GLDeclarationsSchema, type GenerateObject, type GenerateText, HOMEOWNERS_FORM_TYPES, type HomeownersDeclarations, HomeownersDeclarationsSchema, type HomeownersFormType, HomeownersFormTypeSchema, type IdentityTheftDeclarations, IdentityTheftDeclarationsSchema, type InsuranceDocument, InsuranceDocumentSchema, type InsuredLocation, InsuredLocationSchema, type InsuredVehicle, InsuredVehicleSchema, type InsurerInfo, InsurerInfoSchema, LIMIT_TYPES, LOSS_SETTLEMENTS, type LimitSchedule, LimitScheduleSchema, type LimitType, LimitTypeSchema, type LocationPremium, LocationPremiumSchema, type LogFn, type LookupFill, type LookupFillResult, LookupFillResultSchema, LookupFillSchema, type LookupRequest, LookupRequestSchema, type LossSettlement, LossSettlementSchema, type LossSummary, LossSummarySchema, type MemoryStore, type NamedInsured, NamedInsuredSchema, PERSONAL_AUTO_USAGES, PET_SPECIES, PLATFORM_CONFIGS, POLICY_SECTION_TYPES, POLICY_TERM_TYPES, POLICY_TYPES, type ParsedAnswer, ParsedAnswerSchema, type PaymentInstallment, PaymentInstallmentSchema, type PaymentPlan, PaymentPlanSchema, type PersonalArticlesDeclarations, PersonalArticlesDeclarationsSchema, type PersonalAutoDeclarations, PersonalAutoDeclarationsSchema, type PersonalAutoUsage, PersonalAutoUsageSchema, type PersonalUmbrellaDeclarations, PersonalUmbrellaDeclarationsSchema, type PersonalVehicleDetails, PersonalVehicleDetailsSchema, type PetDeclarations, PetDeclarationsSchema, type PetSpecies, PetSpeciesSchema, type PipelineCheckpoint, type PipelineContext, type PipelineContextOptions, type Platform, type PlatformConfig, PlatformSchema, type PolicyCondition, PolicyConditionSchema, type PolicyDocument, PolicyDocumentSchema, type PolicySectionType, PolicySectionTypeSchema, type PolicyTermType, PolicyTermTypeSchema, type PolicyType, PolicyTypeSchema, type PremiumLine, PremiumLineSchema, type PriorAnswer, type ProcessApplicationInput, type ProcessApplicationResult, type ProcessReplyInput, type ProcessReplyResult, type ProducerInfo, ProducerInfoSchema, type ProfessionalLiabilityDeclarations, ProfessionalLiabilityDeclarationsSchema, QUOTE_SECTION_TYPES, type QueryClassifyResult, QueryClassifyResultSchema, type QueryConfig, type QueryInput, type QueryIntent, QueryIntentSchema, type QueryOutput, type QueryResult, QueryResultSchema, type QuestionBatchResult, QuestionBatchResultSchema, type QuoteDocument, QuoteDocumentSchema, type QuoteSectionType, QuoteSectionTypeSchema, RATING_BASIS_TYPES, ROOF_TYPES, type RVType, RVTypeSchema, RV_TYPES, type RatingBasis, RatingBasisSchema, type RatingBasisType, RatingBasisTypeSchema, type RecreationalVehicleDeclarations, RecreationalVehicleDeclarationsSchema, type ReplyIntent, ReplyIntentSchema, type RetrievalResult, RetrievalResultSchema, type RoofType, RoofTypeSchema, SCHEDULED_ITEM_CATEGORIES, SUBJECTIVITY_CATEGORIES, type SafeGenerateOptions, type SafeGenerateParams, type ScheduledItemCategory, ScheduledItemCategorySchema, type Section, SectionSchema, type SharedLimit, SharedLimitSchema, type SubAnswer, SubAnswerSchema, type SubQuestion, SubQuestionSchema, type Subjectivity, type SubjectivityCategory, SubjectivityCategorySchema, SubjectivitySchema, type Sublimit, SublimitSchema, type Subsection, SubsectionSchema, TITLE_POLICY_TYPES, type TaxFeeItem, TaxFeeItemSchema, type TextOverlay, type TitleDeclarations, TitleDeclarationsSchema, type TitlePolicyType, TitlePolicyTypeSchema, type TokenUsage, type ToolDefinition, type TravelDeclarations, TravelDeclarationsSchema, type UmbrellaExcessDeclarations, UmbrellaExcessDeclarationsSchema, type UnderwritingCondition, UnderwritingConditionSchema, VALUATION_METHODS, VEHICLE_COVERAGE_TYPES, type ValuationMethod, ValuationMethodSchema, type VehicleCoverage, VehicleCoverageSchema, type VehicleCoverageType, VehicleCoverageTypeSchema, type VerifyResult, VerifyResultSchema, type WatercraftDeclarations, WatercraftDeclarationsSchema, type WorkersCompDeclarations, WorkersCompDeclarationsSchema, buildAcroFormMappingPrompt, buildAgentSystemPrompt, buildAnswerParsingPrompt, buildAutoFillPrompt, buildBatchEmailGenerationPrompt, buildClassifyMessagePrompt, buildCoiRoutingPrompt, buildConfirmationSummaryPrompt, buildConversationMemoryGuidance, buildCoverageGapPrompt, buildFieldExplanationPrompt, buildFieldExtractionPrompt, buildFlatPdfMappingPrompt, buildFormattingPrompt, buildIdentityPrompt, buildIntentPrompt, buildLookupFillPrompt, buildQueryClassifyPrompt, buildQuestionBatchPrompt, buildQuotesPoliciesPrompt, buildReasonPrompt, buildReplyIntentClassificationPrompt, buildRespondPrompt, buildSafetyPrompt, buildVerifyPrompt, chunkDocument, createApplicationPipeline, createExtractor, createPipelineContext, createQueryAgent, extractPageRange, fillAcroForm, getAcroFormFields, getExtractor, getPdfPageCount, getTemplate, overlayTextOnPdf, pLimit, safeGenerateObject, sanitizeNulls, stripFences, toStrictSchema, withRetry };
|
|
30297
|
+
export { ADMITTED_STATUSES, AGENT_TOOLS, APPLICATION_CLASSIFY_PROMPT, AUDIT_TYPES, type AcroFormFieldInfo, type AcroFormMapping, AcroFormMappingSchema, type Address, AddressSchema, type AdmittedStatus, AdmittedStatusSchema, type AgentContext, type AnswerParsingResult, AnswerParsingResultSchema, type ApplicationClassifyResult, ApplicationClassifyResultSchema, ApplicationEmailReviewSchema, type ApplicationField, ApplicationFieldSchema, type ApplicationListFilters, type ApplicationPipelineConfig, ApplicationQualityArtifactSchema, ApplicationQualityIssueSchema, ApplicationQualityReportSchema, ApplicationQualityRoundSchema, type ApplicationState, ApplicationStateSchema, type ApplicationStore, type AttachmentInterpretation, AttachmentInterpretationSchema, type AuditType, AuditTypeSchema, type AutoFillMatch, AutoFillMatchSchema, type AutoFillResult, AutoFillResultSchema, type AuxiliaryFact, AuxiliaryFactSchema, BOAT_TYPES, type BackfillProvider, type BindingAuthority, BindingAuthoritySchema, type BoatType, BoatTypeSchema, CHUNK_TYPES, CLAIM_STATUSES, COI_GENERATION_TOOL, CONDITION_TYPES, CONSTRUCTION_TYPES, CONTEXT_KEY_MAP, COVERAGE_COMPARISON_TOOL, COVERAGE_FORMS, COVERAGE_TRIGGERS, type ChunkFilter, type ChunkType, ChunkTypeSchema, type Citation, CitationSchema, type ClaimRecord, ClaimRecordSchema, type ClaimStatus, ClaimStatusSchema, type ClassificationCode, ClassificationCodeSchema, type CommercialAutoDeclarations, CommercialAutoDeclarationsSchema, type CommercialPropertyDeclarations, CommercialPropertyDeclarationsSchema, type CommunicationIntent, CommunicationIntentSchema, ConditionKeyValueSchema, type ConditionType, ConditionTypeSchema, type ConstructionType, ConstructionTypeSchema, type Contact, ContactSchema, type ContextKeyMapping, type ConversationTurn, type ConvertPdfToImagesFn, type Coverage, type CoverageForm, CoverageFormSchema, CoverageSchema, type CoverageTrigger, CoverageTriggerSchema, type CoverageValueType, CoverageValueTypeSchema, type CrimeDeclarations, CrimeDeclarationsSchema, type CyberDeclarations, CyberDeclarationsSchema, DEDUCTIBLE_TYPES, DEFENSE_COST_TREATMENTS, DOCUMENT_LOOKUP_TOOL, DOCUMENT_TYPES, type DODeclarations, DODeclarationsSchema, DWELLING_FIRE_FORM_TYPES, type Declarations, DeclarationsSchema, type DeductibleSchedule, DeductibleScheduleSchema, type DeductibleType, DeductibleTypeSchema, type DefenseCostTreatment, DefenseCostTreatmentSchema, type DocumentChunk, type DocumentFilters, type DocumentStore, type DocumentTemplate, type DocumentType, DocumentTypeSchema, type DriverRecord, DriverRecordSchema, type DwellingDetails, DwellingDetailsSchema, type DwellingFireDeclarations, DwellingFireDeclarationsSchema, type DwellingFireFormType, DwellingFireFormTypeSchema, ENDORSEMENT_PARTY_ROLES, ENDORSEMENT_TYPES, ENTITY_TYPES, type EarthquakeDeclarations, EarthquakeDeclarationsSchema, type EmbedText, type EmployersLiabilityLimits, EmployersLiabilityLimitsSchema, type Endorsement, type EndorsementParty, type EndorsementPartyRole, EndorsementPartyRoleSchema, EndorsementPartySchema, EndorsementSchema, type EndorsementType, EndorsementTypeSchema, type EnrichedCoverage, EnrichedCoverageSchema, type EnrichedSubjectivity, EnrichedSubjectivitySchema, type EnrichedUnderwritingCondition, EnrichedUnderwritingConditionSchema, type EntityType, EntityTypeSchema, type EvidenceItem, EvidenceItemSchema, type Exclusion, ExclusionSchema, type ExperienceMod, ExperienceModSchema, type ExtendedReportingPeriod, ExtendedReportingPeriodSchema, type ExtractOptions, type ExtractionResult, type ExtractionState, type ExtractorConfig, type ExtractorDef, FLOOD_ZONES, FOUNDATION_TYPES, type FarmRanchDeclarations, FarmRanchDeclarationsSchema, type FieldExtractionResult, FieldExtractionResultSchema, type FieldMapping, type FieldType, FieldTypeSchema, type FlatPdfPlacement, FlatPdfPlacementSchema, type FloodDeclarations, FloodDeclarationsSchema, type FloodZone, FloodZoneSchema, type FormReference, FormReferenceSchema, type FoundationType, FoundationTypeSchema, type GLDeclarations, GLDeclarationsSchema, type GenerateObject, type GenerateText, HOMEOWNERS_FORM_TYPES, type HomeownersDeclarations, HomeownersDeclarationsSchema, type HomeownersFormType, HomeownersFormTypeSchema, type IdentityTheftDeclarations, IdentityTheftDeclarationsSchema, type InsuranceDocument, InsuranceDocumentSchema, type InsuredLocation, InsuredLocationSchema, type InsuredVehicle, InsuredVehicleSchema, type InsurerInfo, InsurerInfoSchema, LIMIT_TYPES, LOSS_SETTLEMENTS, type LimitSchedule, LimitScheduleSchema, type LimitType, LimitTypeSchema, type LocationPremium, LocationPremiumSchema, type LogFn, type LookupFill, type LookupFillResult, LookupFillResultSchema, LookupFillSchema, type LookupRequest, LookupRequestSchema, type LossSettlement, LossSettlementSchema, type LossSummary, LossSummarySchema, type MemoryStore, type NamedInsured, NamedInsuredSchema, PERSONAL_AUTO_USAGES, PET_SPECIES, PLATFORM_CONFIGS, POLICY_SECTION_TYPES, POLICY_TERM_TYPES, POLICY_TYPES, type ParsedAnswer, ParsedAnswerSchema, type PaymentInstallment, PaymentInstallmentSchema, type PaymentPlan, PaymentPlanSchema, type PersonalArticlesDeclarations, PersonalArticlesDeclarationsSchema, type PersonalAutoDeclarations, PersonalAutoDeclarationsSchema, type PersonalAutoUsage, PersonalAutoUsageSchema, type PersonalUmbrellaDeclarations, PersonalUmbrellaDeclarationsSchema, type PersonalVehicleDetails, PersonalVehicleDetailsSchema, type PetDeclarations, PetDeclarationsSchema, type PetSpecies, PetSpeciesSchema, type PipelineCheckpoint, type PipelineContext, type PipelineContextOptions, type Platform, type PlatformConfig, PlatformSchema, type PolicyCondition, PolicyConditionSchema, type PolicyDocument, PolicyDocumentSchema, type PolicySectionType, PolicySectionTypeSchema, type PolicyTermType, PolicyTermTypeSchema, type PolicyType, PolicyTypeSchema, type PremiumLine, PremiumLineSchema, type PriorAnswer, type ProcessApplicationInput, type ProcessApplicationResult, type ProcessReplyInput, type ProcessReplyResult, type ProducerInfo, ProducerInfoSchema, type ProfessionalLiabilityDeclarations, ProfessionalLiabilityDeclarationsSchema, QUOTE_SECTION_TYPES, type QueryAttachment, type QueryAttachmentKind, QueryAttachmentKindSchema, QueryAttachmentSchema, type QueryClassifyResult, QueryClassifyResultSchema, type QueryConfig, type QueryInput, type QueryIntent, QueryIntentSchema, type QueryOutput, type QueryResult, QueryResultSchema, type QuestionBatchResult, QuestionBatchResultSchema, type QuoteDocument, QuoteDocumentSchema, type QuoteSectionType, QuoteSectionTypeSchema, RATING_BASIS_TYPES, ROOF_TYPES, type RVType, RVTypeSchema, RV_TYPES, type RatingBasis, RatingBasisSchema, type RatingBasisType, RatingBasisTypeSchema, type RecreationalVehicleDeclarations, RecreationalVehicleDeclarationsSchema, type ReplyIntent, ReplyIntentSchema, type RetrievalResult, RetrievalResultSchema, type RoofType, RoofTypeSchema, SCHEDULED_ITEM_CATEGORIES, SUBJECTIVITY_CATEGORIES, type SafeGenerateOptions, type SafeGenerateParams, type ScheduledItemCategory, ScheduledItemCategorySchema, type Section, SectionSchema, type SharedLimit, SharedLimitSchema, type SubAnswer, SubAnswerSchema, type SubQuestion, SubQuestionSchema, type Subjectivity, type SubjectivityCategory, SubjectivityCategorySchema, SubjectivitySchema, type Sublimit, SublimitSchema, type Subsection, SubsectionSchema, TITLE_POLICY_TYPES, type TaxFeeItem, TaxFeeItemSchema, type TextOverlay, type TitleDeclarations, TitleDeclarationsSchema, type TitlePolicyType, TitlePolicyTypeSchema, type TokenUsage, type ToolDefinition, type TravelDeclarations, TravelDeclarationsSchema, type UmbrellaExcessDeclarations, UmbrellaExcessDeclarationsSchema, type UnderwritingCondition, UnderwritingConditionSchema, VALUATION_METHODS, VEHICLE_COVERAGE_TYPES, type ValuationMethod, ValuationMethodSchema, type VehicleCoverage, VehicleCoverageSchema, type VehicleCoverageType, VehicleCoverageTypeSchema, type VerifyResult, VerifyResultSchema, type WatercraftDeclarations, WatercraftDeclarationsSchema, type WorkersCompDeclarations, WorkersCompDeclarationsSchema, buildAcroFormMappingPrompt, buildAgentSystemPrompt, buildAnswerParsingPrompt, buildAutoFillPrompt, buildBatchEmailGenerationPrompt, buildClassifyMessagePrompt, buildCoiRoutingPrompt, buildConfirmationSummaryPrompt, buildConversationMemoryGuidance, buildCoverageGapPrompt, buildFieldExplanationPrompt, buildFieldExtractionPrompt, buildFlatPdfMappingPrompt, buildFormattingPrompt, buildIdentityPrompt, buildIntentPrompt, buildInterpretAttachmentPrompt, buildLookupFillPrompt, buildQueryClassifyPrompt, buildQuestionBatchPrompt, buildQuotesPoliciesPrompt, buildReasonPrompt, buildReplyIntentClassificationPrompt, buildRespondPrompt, buildSafetyPrompt, buildVerifyPrompt, chunkDocument, createApplicationPipeline, createExtractor, createPipelineContext, createQueryAgent, extractPageRange, fillAcroForm, getAcroFormFields, getExtractor, getPdfPageCount, getTemplate, overlayTextOnPdf, pLimit, safeGenerateObject, sanitizeNulls, stripFences, toStrictSchema, withRetry };
|