@triplef/agent 0.1.24 → 0.1.26
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/{format-zod-shape.helper-C2PB6Sb2.d.ts → format-zod-shape.helper-BQtOJfG6.d.ts} +7 -7
- package/dist/prompts/index.d.ts +25 -10
- package/dist/prompts/index.mjs +167 -58
- package/dist/schemas/index.d.ts +25 -2
- package/dist/schemas/index.mjs +194 -14
- package/dist/tools/index.d.ts +59 -3
- package/dist/tools/index.mjs +91 -9
- package/package.json +2 -2
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export { E as EncyclopediaDocumentInput, a as EncyclopediaDocumentResult, b as EncyclopediaSearchHit, c as EncyclopediaSearchInput } from '../encyclopedia-search.model-oFW8_rUT.js';
|
|
3
|
-
export { B as BROWSER_TOOL_NAMES, D as DEFAULT_VARIANT_ID, E as ENCYCLOPEDIA_TOOL_NAMES, F as FormatZodShapeOptions, a as IMAGE_TASK_TEMPLATES, b as ImageTaskTemplate, I as IntentResult, c as IntentSchema, M as MEMORY_TOOL_NAMES, P as ProviderConfig, d as TOOL_DESCRIPTIONS, e as TOOL_NAMES, T as TemplateName, f as ToolName, g as VARIANT_NAMES, V as VariantName, h as formatZodShape, i as isImageTaskTemplate } from '../format-zod-shape.helper-
|
|
3
|
+
export { B as BROWSER_TOOL_NAMES, D as DEFAULT_VARIANT_ID, E as ENCYCLOPEDIA_TOOL_NAMES, F as FormatZodShapeOptions, a as IMAGE_TASK_TEMPLATES, b as ImageTaskTemplate, I as IntentResult, c as IntentSchema, M as MEMORY_TOOL_NAMES, P as ProviderConfig, d as TOOL_DESCRIPTIONS, e as TOOL_NAMES, T as TemplateName, f as ToolName, g as VARIANT_NAMES, V as VariantName, h as formatZodShape, i as isImageTaskTemplate } from '../format-zod-shape.helper-BQtOJfG6.js';
|
|
4
4
|
|
|
5
5
|
declare const BLOCKED_IMAGE_HOSTS: Set<string>;
|
|
6
6
|
|
|
@@ -15,7 +15,9 @@ declare const NON_PAGE_EXTENSIONS: RegExp;
|
|
|
15
15
|
|
|
16
16
|
declare const EncyclopediaClassifySchema: z.ZodObject<{
|
|
17
17
|
category: z.ZodString;
|
|
18
|
+
community: z.ZodOptional<z.ZodString>;
|
|
18
19
|
topic: z.ZodString;
|
|
20
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
19
21
|
}, z.core.$strip>;
|
|
20
22
|
type EncyclopediaClassification = z.infer<typeof EncyclopediaClassifySchema>;
|
|
21
23
|
|
|
@@ -120,6 +122,7 @@ declare const ExtractedFactSchema: z.ZodObject<{
|
|
|
120
122
|
text: z.ZodString;
|
|
121
123
|
subject: z.ZodOptional<z.ZodString>;
|
|
122
124
|
category: z.ZodOptional<z.ZodString>;
|
|
125
|
+
community: z.ZodOptional<z.ZodString>;
|
|
123
126
|
kind: z.ZodEnum<{
|
|
124
127
|
preference: "preference";
|
|
125
128
|
decision: "decision";
|
|
@@ -141,6 +144,7 @@ declare const ExtractionSchema: z.ZodObject<{
|
|
|
141
144
|
text: z.ZodString;
|
|
142
145
|
subject: z.ZodOptional<z.ZodString>;
|
|
143
146
|
category: z.ZodOptional<z.ZodString>;
|
|
147
|
+
community: z.ZodOptional<z.ZodString>;
|
|
144
148
|
kind: z.ZodEnum<{
|
|
145
149
|
preference: "preference";
|
|
146
150
|
decision: "decision";
|
|
@@ -158,6 +162,7 @@ declare const ExtractionSchema: z.ZodObject<{
|
|
|
158
162
|
}, z.core.$strip>>;
|
|
159
163
|
tags: z.ZodArray<z.ZodString>;
|
|
160
164
|
category: z.ZodOptional<z.ZodString>;
|
|
165
|
+
community: z.ZodOptional<z.ZodString>;
|
|
161
166
|
}, z.core.$strip>;
|
|
162
167
|
type MemoryExtraction = z.infer<typeof ExtractionSchema>;
|
|
163
168
|
|
|
@@ -272,6 +277,12 @@ interface MergedCognitionProfile {
|
|
|
272
277
|
}
|
|
273
278
|
declare function mergeCognitionProfiles(current: MemoryCognitionProfile | undefined, patch: MemoryCognitionProfile): MergedCognitionProfile;
|
|
274
279
|
|
|
280
|
+
interface PruneProfileTopicOutcome {
|
|
281
|
+
profile: MemoryCognitionProfile;
|
|
282
|
+
removed?: string;
|
|
283
|
+
}
|
|
284
|
+
declare function pruneProfileTopic(profile: MemoryCognitionProfile, path: string): PruneProfileTopicOutcome;
|
|
285
|
+
|
|
275
286
|
declare const ResearchFrictionQueryDecisionSchema: z.ZodObject<{
|
|
276
287
|
id: z.ZodString;
|
|
277
288
|
checkable: z.ZodBoolean;
|
|
@@ -304,6 +315,18 @@ declare const ResearchTriageSchema: z.ZodObject<{
|
|
|
304
315
|
type ResearchTriageDecision = z.infer<typeof ResearchTriageDecisionSchema>;
|
|
305
316
|
type ResearchTriage = z.infer<typeof ResearchTriageSchema>;
|
|
306
317
|
|
|
318
|
+
declare const TAXONOMY_ICON_ALLOWLIST: readonly ["activity", "plane", "anchor", "apple", "archive", "atom", "banknote", "bike", "bird", "bitcoin", "book", "book-open", "bot", "brain", "briefcase", "brush", "bug", "building", "cake", "calculator", "calendar", "camera", "car", "cat", "chart-line", "chef-hat", "clapperboard", "cloud", "code", "coffee", "cog", "coins", "compass", "contact", "cpu", "credit-card", "dumbbell", "factory", "file-text", "film", "fish", "flag", "flask-conical", "flower-2", "volleyball", "gamepad-2", "gem", "gift", "globe", "graduation-cap", "guitar", "hammer", "handshake", "headphones", "heart-pulse", "house", "hospital", "key", "landmark", "laptop", "leaf", "lightbulb", "map-pin", "medal", "mic", "microscope", "mountain", "music", "newspaper", "package", "palette", "paw-print", "phone", "piggy-bank", "rocket", "scale", "server", "shield", "ship", "shirt", "shopping-bag", "sprout", "star", "stethoscope", "sun", "trophy", "truck", "tv", "umbrella", "utensils", "wallet", "wifi", "wrench", "zap"];
|
|
319
|
+
type TaxonomyIconName = (typeof TAXONOMY_ICON_ALLOWLIST)[number];
|
|
320
|
+
|
|
321
|
+
declare const TaxonomyPairVerdictSchema: z.ZodObject<{
|
|
322
|
+
verdict: z.ZodEnum<{
|
|
323
|
+
same: "same";
|
|
324
|
+
distinct: "distinct";
|
|
325
|
+
}>;
|
|
326
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
type TaxonomyPairVerdict = z.infer<typeof TaxonomyPairVerdictSchema>;
|
|
329
|
+
|
|
307
330
|
declare const cardSchema: z.ZodObject<{
|
|
308
331
|
url: z.ZodString;
|
|
309
332
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -910,4 +933,4 @@ declare const videolistSchema: z.ZodObject<{
|
|
|
910
933
|
}, z.core.$strip>>>;
|
|
911
934
|
}, z.core.$strip>;
|
|
912
935
|
|
|
913
|
-
export { BLOCKED_IMAGE_HOSTS, BLOCKED_URL_HOSTS, COGNITION_LIMIT_DEFAULT, COGNITION_LIMIT_MAX, COGNITION_LIMIT_MIN, COGNITION_PURGE_BATCH, CONVICTION_TAGS, CONVICTION_TEXT_LIMIT, type ConsolidationVerdict, ConsolidationVerdictSchema, DEFAULT_MEDIA_COUNT, EMBEDDABLE_VIDEO_PROVIDER_CLAUSE, EMBEDDABLE_VIDEO_PROVIDER_LABELS, EPISODE_PROBE_LIMIT_DEFAULT, EPISODE_PROBE_LIMIT_MIN, EPISODE_RECENCY_MIDPOINT_DEFAULT, EPISODE_RECENCY_MIDPOINT_MAX, EPISODE_RECENCY_MIDPOINT_MIN, EPISODE_RECENCY_SCALE_SECONDS_DEFAULT, EPISODE_RECENCY_SCALE_SECONDS_MAX, EPISODE_RECENCY_SCALE_SECONDS_MIN, EPISODE_RECENCY_WEIGHT_DEFAULT, EPISODE_RECENCY_WEIGHT_MAX, EPISODE_RECENCY_WEIGHT_MIN, EPISODE_SCORE_THRESHOLD_DEFAULT, EPISODE_SCORE_THRESHOLD_MAX, EPISODE_SCORE_THRESHOLD_MIN, EPISODE_TAGS, EPISODE_TEXT_LIMIT, type EncyclopediaClassification, EncyclopediaClassifySchema, type EncyclopediaSearchResult, type EncyclopediaSelectInput, type EncyclopediaSelectResult, type EncyclopediaSelectedChunk, type EncyclopediaSourceDocument, type ExtractedFact, ExtractedFactSchema, ExtractionSchema, FACT_KINDS, FACT_STABILITIES, HERO_VIDEO_TITLE_ISSUE, INSIGHTS_MAX_PER_TURN, INSIGHT_TAGS, INSIGHT_TEXT_LIMIT, MORE_MEDIA_COUNT, type MemoryClusterSummary, MemoryClusterSummarySchema, type MemoryCognitionProfile, type MemoryEnrichment, MemoryEnrichmentSchema, type MemoryExtraction, type MemoryProfileInsight, type MemoryProfileResponse, type MergedCognitionProfile, NON_PAGE_EXTENSIONS, type ResearchFrictionQuery, type ResearchFrictionQueryDecision, ResearchFrictionQueryDecisionSchema, ResearchFrictionQuerySchema, type ResearchTriage, type ResearchTriageDecision, ResearchTriageDecisionSchema, ResearchTriageSchema, cardSchema, categorizeTools, clampCognitionLimit, clampEpisodeProbeLimit, clampEpisodeRecencyMidpoint, clampEpisodeRecencyScaleSeconds, clampEpisodeRecencyWeight, clampEpisodeScoreThreshold, compareSchema, createTextItemSchema, deriveSchemaKeys, describeSchema, discardedReferenceSchema, formatZodIssues, galleryItemSchema, hasBlockedImageHost, heroVideoHasTitle, imagelistSchema, internationalCoverageSchema, isAllFieldsNullWipe, isPrivateOrLocalhost, isTrustedImageUrl, isTrustedUrl, markerSchema, memoryProfileResponseSchema, mergeCognitionProfiles, normalizeInsightPath, ocrSchema, parseStoredProfile, productSchema, referenceGalleryItemSchema, referenceLineSchema, relatedStorySchema, safeMediaUrl, safeMediaUrlOrEmpty, safeUrl, safeVideoUrl, safeVideoUrlOrEmpty, shoplistSchema, sourceSchema, stockmarketItemSchema, stockmarketListSchema, summarySchema, videoGalleryItemSchema, videolistSchema };
|
|
936
|
+
export { BLOCKED_IMAGE_HOSTS, BLOCKED_URL_HOSTS, COGNITION_LIMIT_DEFAULT, COGNITION_LIMIT_MAX, COGNITION_LIMIT_MIN, COGNITION_PURGE_BATCH, CONVICTION_TAGS, CONVICTION_TEXT_LIMIT, type ConsolidationVerdict, ConsolidationVerdictSchema, DEFAULT_MEDIA_COUNT, EMBEDDABLE_VIDEO_PROVIDER_CLAUSE, EMBEDDABLE_VIDEO_PROVIDER_LABELS, EPISODE_PROBE_LIMIT_DEFAULT, EPISODE_PROBE_LIMIT_MIN, EPISODE_RECENCY_MIDPOINT_DEFAULT, EPISODE_RECENCY_MIDPOINT_MAX, EPISODE_RECENCY_MIDPOINT_MIN, EPISODE_RECENCY_SCALE_SECONDS_DEFAULT, EPISODE_RECENCY_SCALE_SECONDS_MAX, EPISODE_RECENCY_SCALE_SECONDS_MIN, EPISODE_RECENCY_WEIGHT_DEFAULT, EPISODE_RECENCY_WEIGHT_MAX, EPISODE_RECENCY_WEIGHT_MIN, EPISODE_SCORE_THRESHOLD_DEFAULT, EPISODE_SCORE_THRESHOLD_MAX, EPISODE_SCORE_THRESHOLD_MIN, EPISODE_TAGS, EPISODE_TEXT_LIMIT, type EncyclopediaClassification, EncyclopediaClassifySchema, type EncyclopediaSearchResult, type EncyclopediaSelectInput, type EncyclopediaSelectResult, type EncyclopediaSelectedChunk, type EncyclopediaSourceDocument, type ExtractedFact, ExtractedFactSchema, ExtractionSchema, FACT_KINDS, FACT_STABILITIES, HERO_VIDEO_TITLE_ISSUE, INSIGHTS_MAX_PER_TURN, INSIGHT_TAGS, INSIGHT_TEXT_LIMIT, MORE_MEDIA_COUNT, type MemoryClusterSummary, MemoryClusterSummarySchema, type MemoryCognitionProfile, type MemoryEnrichment, MemoryEnrichmentSchema, type MemoryExtraction, type MemoryProfileInsight, type MemoryProfileResponse, type MergedCognitionProfile, NON_PAGE_EXTENSIONS, type PruneProfileTopicOutcome, type ResearchFrictionQuery, type ResearchFrictionQueryDecision, ResearchFrictionQueryDecisionSchema, ResearchFrictionQuerySchema, type ResearchTriage, type ResearchTriageDecision, ResearchTriageDecisionSchema, ResearchTriageSchema, TAXONOMY_ICON_ALLOWLIST, type TaxonomyIconName, type TaxonomyPairVerdict, TaxonomyPairVerdictSchema, cardSchema, categorizeTools, clampCognitionLimit, clampEpisodeProbeLimit, clampEpisodeRecencyMidpoint, clampEpisodeRecencyScaleSeconds, clampEpisodeRecencyWeight, clampEpisodeScoreThreshold, compareSchema, createTextItemSchema, deriveSchemaKeys, describeSchema, discardedReferenceSchema, formatZodIssues, galleryItemSchema, hasBlockedImageHost, heroVideoHasTitle, imagelistSchema, internationalCoverageSchema, isAllFieldsNullWipe, isPrivateOrLocalhost, isTrustedImageUrl, isTrustedUrl, markerSchema, memoryProfileResponseSchema, mergeCognitionProfiles, normalizeInsightPath, ocrSchema, parseStoredProfile, productSchema, pruneProfileTopic, referenceGalleryItemSchema, referenceLineSchema, relatedStorySchema, safeMediaUrl, safeMediaUrlOrEmpty, safeUrl, safeVideoUrl, safeVideoUrlOrEmpty, shoplistSchema, sourceSchema, stockmarketItemSchema, stockmarketListSchema, summarySchema, videoGalleryItemSchema, videolistSchema };
|
package/dist/schemas/index.mjs
CHANGED
|
@@ -71,16 +71,30 @@ var NON_PAGE_EXTENSIONS = /\.(js|css|json|xml|svg|png|jpg|jpeg|gif|webp|ico|mp4|
|
|
|
71
71
|
var EncyclopediaClassifySchema = z.object({
|
|
72
72
|
/**
|
|
73
73
|
* One broad lowercase PLURAL family label for the document (e.g. `games`,
|
|
74
|
-
* `work`, `health`) — the constellation's
|
|
74
|
+
* `work`, `health`) — the constellation's CLUSTER tier. Never a specific
|
|
75
75
|
* entity, product, company, or title.
|
|
76
76
|
*/
|
|
77
77
|
category: z.string(),
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
80
|
-
* `
|
|
81
|
-
*
|
|
79
|
+
* One lowercase PLURAL sub-family label narrowing the category (e.g.
|
|
80
|
+
* `survival-games` under `games`) — the constellation's COMMUNITY tier, one
|
|
81
|
+
* level below the cluster. Optional: omit when no sub-family applies. Never
|
|
82
|
+
* a specific entity, product, company, or title.
|
|
82
83
|
*/
|
|
83
|
-
|
|
84
|
+
community: z.string().optional(),
|
|
85
|
+
/**
|
|
86
|
+
* The narrow SINGULAR subject entity the document is about (e.g.
|
|
87
|
+
* `wuthering waves`, `q3 budget`) — the constellation's HUB tier. A short,
|
|
88
|
+
* specific, reusable label, not a sentence and not a URL.
|
|
89
|
+
*/
|
|
90
|
+
topic: z.string(),
|
|
91
|
+
/**
|
|
92
|
+
* Lucide icon name for a label this classification CREATES (attached to
|
|
93
|
+
* the deepest NEW label: topic first, then community, then category).
|
|
94
|
+
* Only from the curated taxonomy icon set; omit when adopting existing
|
|
95
|
+
* labels or no icon fits.
|
|
96
|
+
*/
|
|
97
|
+
icon: z.string().optional()
|
|
84
98
|
});
|
|
85
99
|
|
|
86
100
|
// src/schemas/helpers/tools/categorize-tools.helper.ts
|
|
@@ -152,10 +166,11 @@ var TOOL_DESCRIPTIONS = {
|
|
|
152
166
|
requestDenoised: "Request a denoised (blurred) version of the images. Use when the original has noise, grain, or artifacts that hide details.",
|
|
153
167
|
requestSharpened: "Request a sharpened version of the images. Use when edges or fine details are blurry.",
|
|
154
168
|
requestClahe: "Request a CLAHE (contrast-enhanced) version of the images. Use when details are hidden in shadows or highlights.",
|
|
155
|
-
"memory-partition-remember": `Store into the user's fact partition (memory-partition): notable facts about subjects they care about (
|
|
169
|
+
"memory-partition-remember": `Store into the user's fact partition (memory-partition) \u2014 OBJECTIVE facts only: notable external-world facts about subjects they care about (projects, followed stocks, people, past topics), objective details they state (contact info, decisions, constraints), and objective facts they explicitly ask you to remember. Subjective user data (preferences, interests, traits, internal states) belongs to memory-cognition-remember, never here. Storing gathered knowledge is expected \u2014 do not wait for an explicit "remember" instruction.`,
|
|
156
170
|
"memory-partition-recall": "Retrieve from the user's fact partition (memory-partition) \u2014 things they told you in past conversations or asked you to remember. These are trusted user statements, not public facts; attribute them to the user and prefer them over web results for anything personal. Check this tool whenever a request touches a subject this user has cared about before.",
|
|
157
171
|
"memory-partition-delete": "Delete one exact fact record from the user's fact partition (memory-partition), quoted verbatim from a memory-partition-recall result. Never delete on a guess: recall first, delete the verbatim statement. Needs memory-partition-recall alongside it.",
|
|
158
|
-
"memory-cognition-remember": "Store one
|
|
172
|
+
"memory-cognition-remember": "Store one insight into your cognition space (memory-cognition) \u2014 the exclusive store for subjective user data: preferences and interests the user states, inferred traits, standing interests, working nuances, connections between facts. Objective facts (contact info, decisions, project details, events) belong in memory-partition-remember.",
|
|
173
|
+
"memory-cognition-delete": 'Delete one targeted piece of your cognition space (memory-cognition): a verbatim stored insight (quoted from your cognition context) and/or one standing profile topic by its path ("likes.jazz"). The per-item forget for subjective user data; memory-cognition-forget is the whole-space wipe.',
|
|
159
174
|
"memory-cognition-forget": "Wipe your entire cognition space (memory-cognition) of the user \u2014 the structured profile AND every derived insight \u2014 only when the user asks you to forget your learned understanding of them or to start over. Fact records in the partition are untouched."
|
|
160
175
|
};
|
|
161
176
|
var BROWSER_TOOL_NAMES = [
|
|
@@ -180,6 +195,7 @@ var MEMORY_TOOL_NAMES = [
|
|
|
180
195
|
"memory-partition-recall",
|
|
181
196
|
"memory-partition-delete",
|
|
182
197
|
"memory-cognition-remember",
|
|
198
|
+
"memory-cognition-delete",
|
|
183
199
|
"memory-cognition-forget"
|
|
184
200
|
];
|
|
185
201
|
var ENCYCLOPEDIA_TOOL_NAMES = ["encyclopedia-search", "encyclopedia-read"];
|
|
@@ -533,16 +549,26 @@ var ExtractedFactSchema = z.object({
|
|
|
533
549
|
text: z.string(),
|
|
534
550
|
/**
|
|
535
551
|
* The lowercase entity the fact is about (default `user`; a person,
|
|
536
|
-
* product, or project name)
|
|
552
|
+
* product, or project name) — the constellation's HUB tier: singular,
|
|
553
|
+
* specific, stable. Maintenance adjudication only ever compares
|
|
537
554
|
* facts about the SAME subject.
|
|
538
555
|
*/
|
|
539
556
|
subject: z.string().optional(),
|
|
540
557
|
/**
|
|
541
558
|
* One broad lowercase PLURAL family label for THIS fact (e.g. `stocks`,
|
|
542
|
-
* `pets`, `games`) —
|
|
559
|
+
* `pets`, `games`) — the constellation's CLUSTER tier. Inherits the
|
|
560
|
+
* turn-side category when omitted. Never
|
|
543
561
|
* a specific entity, product, company, or game title.
|
|
544
562
|
*/
|
|
545
563
|
category: z.string().optional(),
|
|
564
|
+
/**
|
|
565
|
+
* One lowercase PLURAL sub-family label narrowing THIS fact's category
|
|
566
|
+
* (e.g. `survival-games` under `games`) — the constellation's COMMUNITY
|
|
567
|
+
* tier, one level below the cluster. Inherits the turn-side community when
|
|
568
|
+
* omitted; omit when no sub-family applies. Never a specific entity,
|
|
569
|
+
* product, or title.
|
|
570
|
+
*/
|
|
571
|
+
community: z.string().optional(),
|
|
546
572
|
/** What kind of durable thing this is (see FACT_KINDS). */
|
|
547
573
|
kind: z.enum(FACT_KINDS),
|
|
548
574
|
/** Whether a newer statement is expected to replace this one (see FACT_STABILITIES). */
|
|
@@ -565,14 +591,23 @@ var ExtractionSchema = z.object({
|
|
|
565
591
|
tags: z.array(z.string()),
|
|
566
592
|
/**
|
|
567
593
|
* One broad lowercase PLURAL family label for the whole turn-side (e.g.
|
|
568
|
-
* `stocks`, `pets`, `games`) —
|
|
569
|
-
*
|
|
570
|
-
* passes, and backstops facts that omit their own `category`. Never a
|
|
594
|
+
* `stocks`, `pets`, `games`) — the constellation's CLUSTER tier. Groups
|
|
595
|
+
* the narrow tags into one topic family, powers the relink job's
|
|
596
|
+
* per-category passes, and backstops facts that omit their own `category`. Never a
|
|
571
597
|
* specific entity, product, company, or game title: `amd` belongs under
|
|
572
598
|
* `stocks`; `stellar blade` belongs under `games`. Optional: a turn with
|
|
573
599
|
* nothing durable may omit it.
|
|
574
600
|
*/
|
|
575
|
-
category: z.string().optional()
|
|
601
|
+
category: z.string().optional(),
|
|
602
|
+
/**
|
|
603
|
+
* One lowercase PLURAL sub-family label narrowing the turn-side category
|
|
604
|
+
* (e.g. `survival-games` under `games`) — the constellation's COMMUNITY
|
|
605
|
+
* tier: a genre, project family, or domain branch one level below the
|
|
606
|
+
* cluster. Backstops facts that omit their own `community`. Optional:
|
|
607
|
+
* omit it when no sub-family applies. Never a specific entity, product,
|
|
608
|
+
* or title.
|
|
609
|
+
*/
|
|
610
|
+
community: z.string().optional()
|
|
576
611
|
});
|
|
577
612
|
var nullishText = z.string().nullish();
|
|
578
613
|
var nullishTopics = z.array(z.string()).nullish();
|
|
@@ -774,6 +809,43 @@ function mergeCognitionProfiles(current, patch) {
|
|
|
774
809
|
const changed = JSON.stringify(profile) !== JSON.stringify(before);
|
|
775
810
|
return { profile: changed ? profile : void 0, removals };
|
|
776
811
|
}
|
|
812
|
+
|
|
813
|
+
// src/schemas/memory/prune-profile-topic.helper.ts
|
|
814
|
+
var PRUNEABLE_ARRAY_FIELDS = ["expertise", "goals", "likes", "dislikes", "interests", "convictions"];
|
|
815
|
+
var PRUNEABLE_RECORD_FIELDS = ["preferences", "corrections"];
|
|
816
|
+
var isPruneableArrayField = (field) => PRUNEABLE_ARRAY_FIELDS.includes(field);
|
|
817
|
+
var isPruneableRecordField = (field) => PRUNEABLE_RECORD_FIELDS.includes(field);
|
|
818
|
+
var toProbeKey = (value) => value.trim().toLowerCase().replace(/\s+/g, "-");
|
|
819
|
+
function pruneProfileTopic(profile, path) {
|
|
820
|
+
const normalized = normalizeInsightPath(path);
|
|
821
|
+
if (!normalized) return { profile };
|
|
822
|
+
const dot = normalized.indexOf(".");
|
|
823
|
+
const field = normalized.slice(0, dot);
|
|
824
|
+
const keyword = normalized.slice(dot + 1);
|
|
825
|
+
if (isPruneableArrayField(field)) {
|
|
826
|
+
const values = profile[field];
|
|
827
|
+
const match = values?.find((value) => toProbeKey(value) === keyword);
|
|
828
|
+
if (!values || !match) return { profile };
|
|
829
|
+
const remaining = values.filter((value) => value !== match);
|
|
830
|
+
return {
|
|
831
|
+
// An emptied facet goes away entirely — the merge/store layers treat an
|
|
832
|
+
// absent key as "removed", and normalizeCognitionProfile strips noise.
|
|
833
|
+
profile: { ...profile, [field]: remaining.length > 0 ? remaining : void 0 },
|
|
834
|
+
removed: match
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
if (isPruneableRecordField(field)) {
|
|
838
|
+
const record = profile[field];
|
|
839
|
+
const key = record ? Object.keys(record).find((candidate) => toProbeKey(candidate) === keyword) : void 0;
|
|
840
|
+
if (!record || !key) return { profile };
|
|
841
|
+
const remaining = Object.fromEntries(Object.entries(record).filter(([candidate]) => candidate !== key));
|
|
842
|
+
return {
|
|
843
|
+
profile: { ...profile, [field]: Object.keys(remaining).length > 0 ? remaining : void 0 },
|
|
844
|
+
removed: key
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
return { profile };
|
|
848
|
+
}
|
|
777
849
|
var ResearchFrictionQueryDecisionSchema = z.object({
|
|
778
850
|
/** The friction id — echoed back so the worker maps the verdict to its candidate. */
|
|
779
851
|
id: z.string(),
|
|
@@ -810,6 +882,114 @@ var ResearchTriageDecisionSchema = z.object({
|
|
|
810
882
|
var ResearchTriageSchema = z.object({
|
|
811
883
|
decisions: z.array(ResearchTriageDecisionSchema).max(50)
|
|
812
884
|
});
|
|
885
|
+
|
|
886
|
+
// src/schemas/memory/taxonomy-icons.constant.ts
|
|
887
|
+
var TAXONOMY_ICON_ALLOWLIST = [
|
|
888
|
+
"activity",
|
|
889
|
+
"plane",
|
|
890
|
+
"anchor",
|
|
891
|
+
"apple",
|
|
892
|
+
"archive",
|
|
893
|
+
"atom",
|
|
894
|
+
"banknote",
|
|
895
|
+
"bike",
|
|
896
|
+
"bird",
|
|
897
|
+
"bitcoin",
|
|
898
|
+
"book",
|
|
899
|
+
"book-open",
|
|
900
|
+
"bot",
|
|
901
|
+
"brain",
|
|
902
|
+
"briefcase",
|
|
903
|
+
"brush",
|
|
904
|
+
"bug",
|
|
905
|
+
"building",
|
|
906
|
+
"cake",
|
|
907
|
+
"calculator",
|
|
908
|
+
"calendar",
|
|
909
|
+
"camera",
|
|
910
|
+
"car",
|
|
911
|
+
"cat",
|
|
912
|
+
"chart-line",
|
|
913
|
+
"chef-hat",
|
|
914
|
+
"clapperboard",
|
|
915
|
+
"cloud",
|
|
916
|
+
"code",
|
|
917
|
+
"coffee",
|
|
918
|
+
"cog",
|
|
919
|
+
"coins",
|
|
920
|
+
"compass",
|
|
921
|
+
"contact",
|
|
922
|
+
"cpu",
|
|
923
|
+
"credit-card",
|
|
924
|
+
"dumbbell",
|
|
925
|
+
"factory",
|
|
926
|
+
"file-text",
|
|
927
|
+
"film",
|
|
928
|
+
"fish",
|
|
929
|
+
"flag",
|
|
930
|
+
"flask-conical",
|
|
931
|
+
"flower-2",
|
|
932
|
+
"volleyball",
|
|
933
|
+
"gamepad-2",
|
|
934
|
+
"gem",
|
|
935
|
+
"gift",
|
|
936
|
+
"globe",
|
|
937
|
+
"graduation-cap",
|
|
938
|
+
"guitar",
|
|
939
|
+
"hammer",
|
|
940
|
+
"handshake",
|
|
941
|
+
"headphones",
|
|
942
|
+
"heart-pulse",
|
|
943
|
+
"house",
|
|
944
|
+
"hospital",
|
|
945
|
+
"key",
|
|
946
|
+
"landmark",
|
|
947
|
+
"laptop",
|
|
948
|
+
"leaf",
|
|
949
|
+
"lightbulb",
|
|
950
|
+
"map-pin",
|
|
951
|
+
"medal",
|
|
952
|
+
"mic",
|
|
953
|
+
"microscope",
|
|
954
|
+
"mountain",
|
|
955
|
+
"music",
|
|
956
|
+
"newspaper",
|
|
957
|
+
"package",
|
|
958
|
+
"palette",
|
|
959
|
+
"paw-print",
|
|
960
|
+
"phone",
|
|
961
|
+
"piggy-bank",
|
|
962
|
+
"rocket",
|
|
963
|
+
"scale",
|
|
964
|
+
"server",
|
|
965
|
+
"shield",
|
|
966
|
+
"ship",
|
|
967
|
+
"shirt",
|
|
968
|
+
"shopping-bag",
|
|
969
|
+
"sprout",
|
|
970
|
+
"star",
|
|
971
|
+
"stethoscope",
|
|
972
|
+
"sun",
|
|
973
|
+
"trophy",
|
|
974
|
+
"truck",
|
|
975
|
+
"tv",
|
|
976
|
+
"umbrella",
|
|
977
|
+
"utensils",
|
|
978
|
+
"wallet",
|
|
979
|
+
"wifi",
|
|
980
|
+
"wrench",
|
|
981
|
+
"zap"
|
|
982
|
+
];
|
|
983
|
+
var TaxonomyPairVerdictSchema = z.object({
|
|
984
|
+
/**
|
|
985
|
+
* `same` — the two labels name the same concept (a wording/casing/plural
|
|
986
|
+
* variant) and merge. `distinct` — genuinely different concepts that only
|
|
987
|
+
* look alike; keep both. When in doubt: DISTINCT.
|
|
988
|
+
*/
|
|
989
|
+
verdict: z.enum(["same", "distinct"]),
|
|
990
|
+
/** One short sentence justifying the verdict (audit trail). */
|
|
991
|
+
reason: z.string().optional()
|
|
992
|
+
});
|
|
813
993
|
var cardSchema = z.object(
|
|
814
994
|
{
|
|
815
995
|
url: safeUrl({ message: "cards entries must have a valid url" }),
|
|
@@ -1190,4 +1370,4 @@ var videolistSchema = z.object({
|
|
|
1190
1370
|
internationalCoverage: internationalCoverageSchema.optional()
|
|
1191
1371
|
});
|
|
1192
1372
|
|
|
1193
|
-
export { BLOCKED_IMAGE_HOSTS, BLOCKED_URL_HOSTS, BROWSER_TOOL_NAMES, COGNITION_LIMIT_DEFAULT, COGNITION_LIMIT_MAX, COGNITION_LIMIT_MIN, COGNITION_PURGE_BATCH, CONVICTION_TAGS, CONVICTION_TEXT_LIMIT, ConsolidationVerdictSchema, DEFAULT_MEDIA_COUNT, DEFAULT_VARIANT_ID, EMBEDDABLE_VIDEO_PROVIDER_CLAUSE, EMBEDDABLE_VIDEO_PROVIDER_LABELS, ENCYCLOPEDIA_TOOL_NAMES, EPISODE_PROBE_LIMIT_DEFAULT, EPISODE_PROBE_LIMIT_MIN, EPISODE_RECENCY_MIDPOINT_DEFAULT, EPISODE_RECENCY_MIDPOINT_MAX, EPISODE_RECENCY_MIDPOINT_MIN, EPISODE_RECENCY_SCALE_SECONDS_DEFAULT, EPISODE_RECENCY_SCALE_SECONDS_MAX, EPISODE_RECENCY_SCALE_SECONDS_MIN, EPISODE_RECENCY_WEIGHT_DEFAULT, EPISODE_RECENCY_WEIGHT_MAX, EPISODE_RECENCY_WEIGHT_MIN, EPISODE_SCORE_THRESHOLD_DEFAULT, EPISODE_SCORE_THRESHOLD_MAX, EPISODE_SCORE_THRESHOLD_MIN, EPISODE_TAGS, EPISODE_TEXT_LIMIT, EncyclopediaClassifySchema, ExtractedFactSchema, ExtractionSchema, FACT_KINDS, FACT_STABILITIES, HERO_VIDEO_TITLE_ISSUE, IMAGE_TASK_TEMPLATES, INSIGHTS_MAX_PER_TURN, INSIGHT_TAGS, INSIGHT_TEXT_LIMIT, IntentSchema, MEMORY_TOOL_NAMES, MORE_MEDIA_COUNT, MemoryClusterSummarySchema, MemoryEnrichmentSchema, NON_PAGE_EXTENSIONS, ResearchFrictionQueryDecisionSchema, ResearchFrictionQuerySchema, ResearchTriageDecisionSchema, ResearchTriageSchema, TOOL_DESCRIPTIONS, TOOL_NAMES, VARIANT_NAMES, cardSchema, categorizeTools, clampCognitionLimit, clampEpisodeProbeLimit, clampEpisodeRecencyMidpoint, clampEpisodeRecencyScaleSeconds, clampEpisodeRecencyWeight, clampEpisodeScoreThreshold, compareSchema, createTextItemSchema, deriveSchemaKeys, describeSchema, discardedReferenceSchema, formatZodIssues, formatZodShape, galleryItemSchema, hasBlockedImageHost, heroVideoHasTitle, imagelistSchema, internationalCoverageSchema, isAllFieldsNullWipe, isImageTaskTemplate, isPrivateOrLocalhost, isTrustedImageUrl, isTrustedUrl, markerSchema, memoryProfileResponseSchema, mergeCognitionProfiles, normalizeInsightPath, ocrSchema, parseStoredProfile, productSchema, referenceGalleryItemSchema, referenceLineSchema, relatedStorySchema, safeMediaUrl, safeMediaUrlOrEmpty, safeUrl, safeVideoUrl, safeVideoUrlOrEmpty, shoplistSchema, sourceSchema, stockmarketItemSchema, stockmarketListSchema, summarySchema, videoGalleryItemSchema, videolistSchema };
|
|
1373
|
+
export { BLOCKED_IMAGE_HOSTS, BLOCKED_URL_HOSTS, BROWSER_TOOL_NAMES, COGNITION_LIMIT_DEFAULT, COGNITION_LIMIT_MAX, COGNITION_LIMIT_MIN, COGNITION_PURGE_BATCH, CONVICTION_TAGS, CONVICTION_TEXT_LIMIT, ConsolidationVerdictSchema, DEFAULT_MEDIA_COUNT, DEFAULT_VARIANT_ID, EMBEDDABLE_VIDEO_PROVIDER_CLAUSE, EMBEDDABLE_VIDEO_PROVIDER_LABELS, ENCYCLOPEDIA_TOOL_NAMES, EPISODE_PROBE_LIMIT_DEFAULT, EPISODE_PROBE_LIMIT_MIN, EPISODE_RECENCY_MIDPOINT_DEFAULT, EPISODE_RECENCY_MIDPOINT_MAX, EPISODE_RECENCY_MIDPOINT_MIN, EPISODE_RECENCY_SCALE_SECONDS_DEFAULT, EPISODE_RECENCY_SCALE_SECONDS_MAX, EPISODE_RECENCY_SCALE_SECONDS_MIN, EPISODE_RECENCY_WEIGHT_DEFAULT, EPISODE_RECENCY_WEIGHT_MAX, EPISODE_RECENCY_WEIGHT_MIN, EPISODE_SCORE_THRESHOLD_DEFAULT, EPISODE_SCORE_THRESHOLD_MAX, EPISODE_SCORE_THRESHOLD_MIN, EPISODE_TAGS, EPISODE_TEXT_LIMIT, EncyclopediaClassifySchema, ExtractedFactSchema, ExtractionSchema, FACT_KINDS, FACT_STABILITIES, HERO_VIDEO_TITLE_ISSUE, IMAGE_TASK_TEMPLATES, INSIGHTS_MAX_PER_TURN, INSIGHT_TAGS, INSIGHT_TEXT_LIMIT, IntentSchema, MEMORY_TOOL_NAMES, MORE_MEDIA_COUNT, MemoryClusterSummarySchema, MemoryEnrichmentSchema, NON_PAGE_EXTENSIONS, ResearchFrictionQueryDecisionSchema, ResearchFrictionQuerySchema, ResearchTriageDecisionSchema, ResearchTriageSchema, TAXONOMY_ICON_ALLOWLIST, TOOL_DESCRIPTIONS, TOOL_NAMES, TaxonomyPairVerdictSchema, VARIANT_NAMES, cardSchema, categorizeTools, clampCognitionLimit, clampEpisodeProbeLimit, clampEpisodeRecencyMidpoint, clampEpisodeRecencyScaleSeconds, clampEpisodeRecencyWeight, clampEpisodeScoreThreshold, compareSchema, createTextItemSchema, deriveSchemaKeys, describeSchema, discardedReferenceSchema, formatZodIssues, formatZodShape, galleryItemSchema, hasBlockedImageHost, heroVideoHasTitle, imagelistSchema, internationalCoverageSchema, isAllFieldsNullWipe, isImageTaskTemplate, isPrivateOrLocalhost, isTrustedImageUrl, isTrustedUrl, markerSchema, memoryProfileResponseSchema, mergeCognitionProfiles, normalizeInsightPath, ocrSchema, parseStoredProfile, productSchema, pruneProfileTopic, referenceGalleryItemSchema, referenceLineSchema, relatedStorySchema, safeMediaUrl, safeMediaUrlOrEmpty, safeUrl, safeVideoUrl, safeVideoUrlOrEmpty, shoplistSchema, sourceSchema, stockmarketItemSchema, stockmarketListSchema, summarySchema, videoGalleryItemSchema, videolistSchema };
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -362,8 +362,11 @@ declare const variantRequestSchema: z.ZodObject<{}, z.core.$strip>;
|
|
|
362
362
|
|
|
363
363
|
declare function createVariantRequestTool(variant: FilterVariant): Tool;
|
|
364
364
|
|
|
365
|
-
declare const
|
|
366
|
-
|
|
365
|
+
declare const memoryCognitionDeleteSchema: z.ZodObject<{
|
|
366
|
+
text: z.ZodOptional<z.ZodString>;
|
|
367
|
+
path: z.ZodOptional<z.ZodString>;
|
|
368
|
+
}, z.core.$strip>;
|
|
369
|
+
type MemoryCognitionDeleteInput = z.infer<typeof memoryCognitionDeleteSchema>;
|
|
367
370
|
|
|
368
371
|
interface MemoryToolScope {
|
|
369
372
|
memoryPartition: string;
|
|
@@ -373,6 +376,24 @@ interface MemoryToolScope {
|
|
|
373
376
|
requestId?: string;
|
|
374
377
|
}
|
|
375
378
|
|
|
379
|
+
interface MemoryCognitionDeleteOutcome {
|
|
380
|
+
deleted: number;
|
|
381
|
+
texts: string[];
|
|
382
|
+
pruned: string[];
|
|
383
|
+
}
|
|
384
|
+
interface MemoryCognitionDeleteDeps {
|
|
385
|
+
scope: MemoryToolScope;
|
|
386
|
+
deleteCognitionRecords: (input: {
|
|
387
|
+
memoryCognition: string;
|
|
388
|
+
text?: string;
|
|
389
|
+
path?: string;
|
|
390
|
+
}) => Promise<MemoryCognitionDeleteOutcome>;
|
|
391
|
+
}
|
|
392
|
+
declare function createMemoryCognitionDeleteTool(deps: MemoryCognitionDeleteDeps): Tool;
|
|
393
|
+
|
|
394
|
+
declare const memoryCognitionForgetSchema: z.ZodObject<{}, z.core.$strip>;
|
|
395
|
+
type MemoryCognitionForgetInput = z.infer<typeof memoryCognitionForgetSchema>;
|
|
396
|
+
|
|
376
397
|
interface MemoryCognitionForgetDeps {
|
|
377
398
|
scope: MemoryToolScope;
|
|
378
399
|
deleteCognition: (memoryCognition: string) => Promise<string[]>;
|
|
@@ -439,6 +460,9 @@ declare function createMemoryPartitionRecallTool(deps: MemoryPartitionRecallDeps
|
|
|
439
460
|
declare const memoryPartitionRememberSchema: z.ZodObject<{
|
|
440
461
|
text: z.ZodString;
|
|
441
462
|
category: z.ZodOptional<z.ZodString>;
|
|
463
|
+
community: z.ZodOptional<z.ZodString>;
|
|
464
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
465
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
442
466
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
443
467
|
}, z.core.$strip>;
|
|
444
468
|
type MemoryPartitionRememberInput = z.infer<typeof memoryPartitionRememberSchema>;
|
|
@@ -453,10 +477,42 @@ interface MemoryPartitionRememberDeps {
|
|
|
453
477
|
text: string;
|
|
454
478
|
tags?: string[];
|
|
455
479
|
category?: string;
|
|
480
|
+
community?: string;
|
|
481
|
+
subject?: string;
|
|
482
|
+
icon?: string;
|
|
456
483
|
}) => Promise<string>;
|
|
457
484
|
}
|
|
458
485
|
declare function createMemoryPartitionRememberTool(deps: MemoryPartitionRememberDeps): Tool;
|
|
459
486
|
|
|
487
|
+
declare const memoryTaxonomyProbeSchema: z.ZodObject<{
|
|
488
|
+
kind: z.ZodEnum<{
|
|
489
|
+
community: "community";
|
|
490
|
+
cluster: "cluster";
|
|
491
|
+
hub: "hub";
|
|
492
|
+
}>;
|
|
493
|
+
query: z.ZodString;
|
|
494
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
495
|
+
}, z.core.$strip>;
|
|
496
|
+
type MemoryTaxonomyProbeInput = z.infer<typeof memoryTaxonomyProbeSchema>;
|
|
497
|
+
|
|
498
|
+
interface MemoryTaxonomyProbeCandidate {
|
|
499
|
+
id: string;
|
|
500
|
+
name: string;
|
|
501
|
+
score: number;
|
|
502
|
+
summary?: string;
|
|
503
|
+
icon?: string;
|
|
504
|
+
}
|
|
505
|
+
interface MemoryTaxonomyProbeResult {
|
|
506
|
+
kind: MemoryTaxonomyProbeInput['kind'];
|
|
507
|
+
query: string;
|
|
508
|
+
candidates: MemoryTaxonomyProbeCandidate[];
|
|
509
|
+
guidance: string;
|
|
510
|
+
}
|
|
511
|
+
interface MemoryTaxonomyProbeDeps {
|
|
512
|
+
probe: (input: MemoryTaxonomyProbeInput) => Promise<MemoryTaxonomyProbeResult>;
|
|
513
|
+
}
|
|
514
|
+
declare function createMemoryTaxonomyProbeTool(deps: MemoryTaxonomyProbeDeps): Tool;
|
|
515
|
+
|
|
460
516
|
declare const serperBusinessReviewsSearchSchema: z.ZodObject<{
|
|
461
517
|
query: z.ZodOptional<z.ZodString>;
|
|
462
518
|
placeId: z.ZodOptional<z.ZodString>;
|
|
@@ -742,4 +798,4 @@ interface VideoStats {
|
|
|
742
798
|
lang?: string;
|
|
743
799
|
}
|
|
744
800
|
|
|
745
|
-
export { BRIGHT_DATA_TIMEOUT_MS, type BrightDataConfig, type BrightDataImageSearchInput, type BrightDataImageSearchResponse, type BrightDataNewsSearchInput, type BrightDataNewsSearchResponse, type BrightDataPlacesSearchInput, type BrightDataPlacesSearchResponse, type BrightDataShoppingSearchInput, type BrightDataShoppingSearchResponse, type BrightDataVideoSearchInput, type BrightDataVideoSearchResponse, type BrightDataWebSearchInput, type BrightDataWebSearchResponse, type BrightDataWebpageScrapeInput, type BrightDataWebpageScrapeResponse, type EncyclopediaReadToolInput, type EncyclopediaSearchToolInput, type EodhdConfig, type EodhdNewsConfig, type FilterVariant, HEADERS, MIN_IMAGE_HEIGHT, MIN_IMAGE_WIDTH, type MarketDailyBar, type MemoryCognitionForgetInput, type MemoryCognitionRememberInput, type MemoryPartitionDeleteInput, type MemoryPartitionRecallInput, type MemoryPartitionRememberInput, MemoryPoint, type MemoryToolScope, type ProviderEndpointConfig, RECENCY_DESCRIPTION, type ResolvableOffer, SEARCH_RETRIES, SEARCH_TIMEOUT_MS, SOURCE, STANDALONE_QUERY_DESCRIPTION, STANDALONE_QUERY_TOOL_CLAUSE, type SearchRecency, type SerperBusinessReviewsSearchInput, type SerperBusinessReviewsSearchResponse, type SerperConfig, type SerperImageSearchInput, type SerperImageSearchResponse, type SerperNewsSearchInput, type SerperNewsSearchResponse, type SerperPlacesSearchInput, type SerperPlacesSearchResponse, type SerperShoppingSearchInput, type SerperShoppingSearchResponse, type SerperVideoSearchInput, type SerperVideoSearchResponse, type SerperWebSearchInput, type SerperWebSearchResponse, type SerperWebpageScrapeInput, type SerperWebpageScrapeResponse, type SourcesConfig, type ToolConfigSnapshot, type ToolDependencies, type ToolLogger, type ToolSummaryFn, type ToolWithSummary, type Variant, type VideoStats, type WebFetchInput, type YoutubeConfig, type YoutubeSearchResponse, type YoutubeVideoSearchInput, type YoutubeVideosResponse, applyLocaleParams, applyRecencyParam, brightDataImageSearchSchema, brightDataNewsSearchSchema, brightDataPlacesSearchSchema, brightDataShoppingSearchSchema, brightDataVideoSearchSchema, brightDataWebSearchSchema, brightDataWebpageScrapeSchema, buildGoogleUrl, buildYoutubeThumbnailUrl, createBrightDataImageSearch, createBrightDataNewsSearch, createBrightDataPlacesSearch, createBrightDataShoppingSearch, createBrightDataVideoSearch, createBrightDataWebSearch, createBrightDataWebpageScrape, createEncyclopediaReadTool, createEncyclopediaSearchTool, createMemoryCognitionForgetTool, createMemoryCognitionRememberTool, createMemoryPartitionDeleteTool, createMemoryPartitionRecallTool, createMemoryPartitionRememberTool, createSerperBusinessReviewsSearch, createSerperImageSearch, createSerperNewsSearch, createSerperPlacesSearch, createSerperShoppingSearch, createSerperVideoSearch, createSerperWebSearch, createSerperWebpageScrape, createVariantRequestTool, createWebFetchTool, createYoutubeVideoSearch, defaultSummarize, encyclopediaReadSchema, encyclopediaSearchSchema, engineEnabled, extractArticleText, fetchWithTimeout, isGoogleHostUrl, localizedQuerySuffix, meetsMinimumImageDimensions, memoryCognitionForgetSchema, memoryCognitionRememberSchema, memoryPartitionDeleteSchema, memoryPartitionRecallSchema, memoryPartitionRememberSchema, pickMerchantResult, requestBrightData, resolveSerperShopOfferLinks, serperBusinessReviewsSearchSchema, serperImageSearchSchema, serperNewsSearchSchema, serperPlacesSearchSchema, serperShoppingSearchSchema, serperVideoSearchSchema, serperWebSearchSchema, serperWebpageScrapeSchema, storeHostToken, summarizeContent, summarizeFound, summarizeResults, tbsSizeLabelForPixels, variantRequestSchema, webFetchSchema, withSummary, youtubeVideoSearchSchema };
|
|
801
|
+
export { BRIGHT_DATA_TIMEOUT_MS, type BrightDataConfig, type BrightDataImageSearchInput, type BrightDataImageSearchResponse, type BrightDataNewsSearchInput, type BrightDataNewsSearchResponse, type BrightDataPlacesSearchInput, type BrightDataPlacesSearchResponse, type BrightDataShoppingSearchInput, type BrightDataShoppingSearchResponse, type BrightDataVideoSearchInput, type BrightDataVideoSearchResponse, type BrightDataWebSearchInput, type BrightDataWebSearchResponse, type BrightDataWebpageScrapeInput, type BrightDataWebpageScrapeResponse, type EncyclopediaReadToolInput, type EncyclopediaSearchToolInput, type EodhdConfig, type EodhdNewsConfig, type FilterVariant, HEADERS, MIN_IMAGE_HEIGHT, MIN_IMAGE_WIDTH, type MarketDailyBar, type MemoryCognitionDeleteInput, type MemoryCognitionDeleteOutcome, type MemoryCognitionForgetInput, type MemoryCognitionRememberInput, type MemoryPartitionDeleteInput, type MemoryPartitionRecallInput, type MemoryPartitionRememberInput, MemoryPoint, type MemoryTaxonomyProbeCandidate, type MemoryTaxonomyProbeInput, type MemoryTaxonomyProbeResult, type MemoryToolScope, type ProviderEndpointConfig, RECENCY_DESCRIPTION, type ResolvableOffer, SEARCH_RETRIES, SEARCH_TIMEOUT_MS, SOURCE, STANDALONE_QUERY_DESCRIPTION, STANDALONE_QUERY_TOOL_CLAUSE, type SearchRecency, type SerperBusinessReviewsSearchInput, type SerperBusinessReviewsSearchResponse, type SerperConfig, type SerperImageSearchInput, type SerperImageSearchResponse, type SerperNewsSearchInput, type SerperNewsSearchResponse, type SerperPlacesSearchInput, type SerperPlacesSearchResponse, type SerperShoppingSearchInput, type SerperShoppingSearchResponse, type SerperVideoSearchInput, type SerperVideoSearchResponse, type SerperWebSearchInput, type SerperWebSearchResponse, type SerperWebpageScrapeInput, type SerperWebpageScrapeResponse, type SourcesConfig, type ToolConfigSnapshot, type ToolDependencies, type ToolLogger, type ToolSummaryFn, type ToolWithSummary, type Variant, type VideoStats, type WebFetchInput, type YoutubeConfig, type YoutubeSearchResponse, type YoutubeVideoSearchInput, type YoutubeVideosResponse, applyLocaleParams, applyRecencyParam, brightDataImageSearchSchema, brightDataNewsSearchSchema, brightDataPlacesSearchSchema, brightDataShoppingSearchSchema, brightDataVideoSearchSchema, brightDataWebSearchSchema, brightDataWebpageScrapeSchema, buildGoogleUrl, buildYoutubeThumbnailUrl, createBrightDataImageSearch, createBrightDataNewsSearch, createBrightDataPlacesSearch, createBrightDataShoppingSearch, createBrightDataVideoSearch, createBrightDataWebSearch, createBrightDataWebpageScrape, createEncyclopediaReadTool, createEncyclopediaSearchTool, createMemoryCognitionDeleteTool, createMemoryCognitionForgetTool, createMemoryCognitionRememberTool, createMemoryPartitionDeleteTool, createMemoryPartitionRecallTool, createMemoryPartitionRememberTool, createMemoryTaxonomyProbeTool, createSerperBusinessReviewsSearch, createSerperImageSearch, createSerperNewsSearch, createSerperPlacesSearch, createSerperShoppingSearch, createSerperVideoSearch, createSerperWebSearch, createSerperWebpageScrape, createVariantRequestTool, createWebFetchTool, createYoutubeVideoSearch, defaultSummarize, encyclopediaReadSchema, encyclopediaSearchSchema, engineEnabled, extractArticleText, fetchWithTimeout, isGoogleHostUrl, localizedQuerySuffix, meetsMinimumImageDimensions, memoryCognitionDeleteSchema, memoryCognitionForgetSchema, memoryCognitionRememberSchema, memoryPartitionDeleteSchema, memoryPartitionRecallSchema, memoryPartitionRememberSchema, memoryTaxonomyProbeSchema, pickMerchantResult, requestBrightData, resolveSerperShopOfferLinks, serperBusinessReviewsSearchSchema, serperImageSearchSchema, serperNewsSearchSchema, serperPlacesSearchSchema, serperShoppingSearchSchema, serperVideoSearchSchema, serperWebSearchSchema, serperWebpageScrapeSchema, storeHostToken, summarizeContent, summarizeFound, summarizeResults, tbsSizeLabelForPixels, variantRequestSchema, webFetchSchema, withSummary, youtubeVideoSearchSchema };
|