@triplef/agent 0.1.3 → 0.1.4
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/prompts/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TemplateName, F as FormatZodShapeOptions } from '../intent.schema-
|
|
2
|
-
export { D as DEFAULT_VARIANT_ID } from '../intent.schema-
|
|
1
|
+
import { T as TemplateName, F as FormatZodShapeOptions } from '../intent.schema-BbIiFHUW.js';
|
|
2
|
+
export { D as DEFAULT_VARIANT_ID } from '../intent.schema-BbIiFHUW.js';
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import { z, ZodTypeAny, ZodType } from 'zod';
|
|
5
5
|
import * as zod_v4_core from 'zod/v4/core';
|
package/dist/prompts/index.mjs
CHANGED
|
@@ -2653,9 +2653,10 @@ WHEN TO USE TOOLS
|
|
|
2653
2653
|
- user asks about specific factual entities, specifications, data, statistics \u2192 the enabled *WebSearch tool
|
|
2654
2654
|
|
|
2655
2655
|
FETCH-AFTER-SEARCH RULES
|
|
2656
|
-
- When you include a *WebSearch tool for factual research (article, news, evaluation, product, or text), also include a fetch tool \u2014 webFetch, serperWebpageScrape, or brightDataWebpageScrape \u2014 to fetch the 1-3
|
|
2656
|
+
- When you include a *WebSearch tool for factual research (article, news, evaluation, product, or text), also include a fetch tool \u2014 webFetch, serperWebpageScrape, or brightDataWebpageScrape \u2014 to fetch the most relevant result pages (typically 1-3; more when the topic is broad and several pages each add distinct depth).
|
|
2657
2657
|
- The fetched full content grounds the answer in source text (not just snippets) and populates the knowledge cache for future turns.
|
|
2658
2658
|
- You decide which pages are worth fetching: fetch only pages whose full content would meaningfully improve the answer. Skip fetching for trivial lookups, quick facts, or when the snippets already answer the request completely.
|
|
2659
|
+
- Prefer primary/readable sources \u2014 official sites, documentation, Wikipedia, news articles \u2014 over app stores, forums, and discussion threads, unless the question is specifically about those.
|
|
2659
2660
|
- Prefer webFetch for plain pages; use a scrape tool for pages behind anti-bot protection.
|
|
2660
2661
|
|
|
2661
2662
|
MEDIA-TYPE TOOL SELECTION
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export { D as DEFAULT_VARIANT_ID, F as FormatZodShapeOptions, I as IntentResult, a as IntentSchema, T as TemplateName, f as formatZodShape } from '../intent.schema-
|
|
2
|
+
export { D as DEFAULT_VARIANT_ID, F as FormatZodShapeOptions, I as IntentResult, a as IntentSchema, T as TemplateName, f as formatZodShape } from '../intent.schema-BbIiFHUW.js';
|
|
3
3
|
|
|
4
4
|
declare const BLOCKED_IMAGE_HOSTS: Set<string>;
|
|
5
5
|
|
|
@@ -149,10 +149,17 @@ interface LexiconSelectedChunk {
|
|
|
149
149
|
title?: string;
|
|
150
150
|
content: string;
|
|
151
151
|
score: number;
|
|
152
|
+
sourceType?: 'content' | 'result';
|
|
153
|
+
}
|
|
154
|
+
interface LexiconSearchResult {
|
|
155
|
+
url: string;
|
|
156
|
+
title?: string;
|
|
157
|
+
snippet: string;
|
|
152
158
|
}
|
|
153
159
|
interface LexiconSelectInput {
|
|
154
160
|
query: string;
|
|
155
161
|
documents: LexiconSourceDocument[];
|
|
162
|
+
searchResults?: LexiconSearchResult[];
|
|
156
163
|
budgetChars?: number;
|
|
157
164
|
partitionScope?: string;
|
|
158
165
|
}
|
|
@@ -896,4 +903,4 @@ declare const videolistSchema: z.ZodObject<{
|
|
|
896
903
|
}, z.core.$strip>>>;
|
|
897
904
|
}, z.core.$strip>;
|
|
898
905
|
|
|
899
|
-
export { BLOCKED_IMAGE_HOSTS, BLOCKED_URL_HOSTS, BROWSER_TOOL_NAMES, COGNITION_LIMIT_DEFAULT, COGNITION_LIMIT_MAX, COGNITION_LIMIT_MIN, COGNITION_PURGE_BATCH, type ConsolidationVerdict, ConsolidationVerdictSchema, EPISODE_PROBE_LIMIT_DEFAULT, EPISODE_PROBE_LIMIT_MAX, 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, ExtractionSchema, HERO_VIDEO_TITLE_ISSUE, INSIGHTS_MAX_PER_TURN, INSIGHT_TAGS, INSIGHT_TEXT_LIMIT, type LexiconSelectInput, type LexiconSelectResult, type LexiconSelectedChunk, type LexiconSourceDocument, MEMORY_TOOL_NAMES, type MemoryCognitionProfile, type MemoryExtraction, type MemoryProfileInsight, type MemoryProfileResponse, NON_PAGE_EXTENSIONS, type ProviderConfig, TOOL_DESCRIPTIONS, TOOL_NAMES, type ToolName, VARIANT_NAMES, type VariantName, 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 };
|
|
906
|
+
export { BLOCKED_IMAGE_HOSTS, BLOCKED_URL_HOSTS, BROWSER_TOOL_NAMES, COGNITION_LIMIT_DEFAULT, COGNITION_LIMIT_MAX, COGNITION_LIMIT_MIN, COGNITION_PURGE_BATCH, type ConsolidationVerdict, ConsolidationVerdictSchema, EPISODE_PROBE_LIMIT_DEFAULT, EPISODE_PROBE_LIMIT_MAX, 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, ExtractionSchema, HERO_VIDEO_TITLE_ISSUE, INSIGHTS_MAX_PER_TURN, INSIGHT_TAGS, INSIGHT_TEXT_LIMIT, type LexiconSearchResult, type LexiconSelectInput, type LexiconSelectResult, type LexiconSelectedChunk, type LexiconSourceDocument, MEMORY_TOOL_NAMES, type MemoryCognitionProfile, type MemoryExtraction, type MemoryProfileInsight, type MemoryProfileResponse, NON_PAGE_EXTENSIONS, type ProviderConfig, TOOL_DESCRIPTIONS, TOOL_NAMES, type ToolName, VARIANT_NAMES, type VariantName, 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 };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@triplef/agent",
|
|
3
3
|
"description": "tripleF (3F) agent domain — structured-output schemas, prompt builders, and model tools shared across the apps.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
5
5
|
"packageManager": "pnpm@11.24.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -10,6 +10,7 @@ declare const TEMPLATES: readonly ["article", "news", "describe", "compare", "oc
|
|
|
10
10
|
type TemplateName = (typeof TEMPLATES)[number];
|
|
11
11
|
declare const IntentSchema: z.ZodObject<{
|
|
12
12
|
template: z.ZodEnum<{
|
|
13
|
+
text: "text";
|
|
13
14
|
article: "article";
|
|
14
15
|
news: "news";
|
|
15
16
|
describe: "describe";
|
|
@@ -24,7 +25,6 @@ declare const IntentSchema: z.ZodObject<{
|
|
|
24
25
|
stockmarketitem: "stockmarketitem";
|
|
25
26
|
stockmarketlist: "stockmarketlist";
|
|
26
27
|
merge: "merge";
|
|
27
|
-
text: "text";
|
|
28
28
|
}>;
|
|
29
29
|
prompt: z.ZodDefault<z.ZodString>;
|
|
30
30
|
tools: z.ZodArray<z.ZodEnum<{
|