@triplef/agent
v1.0.1
Published
tripleF (3F) agent domain — structured-output schemas, prompt builders, and model tools shared across the apps.
Readme
@triplef/agent
The tripleF (3F) agent domain — structured-output schemas, prompt builders, and model tools shared across the apps.
This library is **ESM-only** and does not support CommonJS.Your project must use ES modules.
StatusBadges
Dependencies
DevDependencies
PeerDependencies
Subpath exports
@triplef/agent/schemas— Zod schemas andz.infertypes for intent classification, response templates, and memory extraction/consolidation/profile, plus URL-trust and Zod-shape helpers (formatZodShape,deriveSchemaKeys) and theEncyclopediaSelectInput/EncyclopediaSelectResultretrieval-selection contract.@triplef/agent/prompts— harness and memory prompt builders, the snippet system, andbuildStructuredPrompt(renders a schema's JSON shape into a prompt template).@triplef/agent/tools— search/tool factories (Serper, Bright Data, YouTube, web-fetch, image-variants, memory) with a decoupledToolDependenciescontract.
Usage
import { intentSchema } from '@triplef/agent/schemas';
import { buildStructuredPrompt } from '@triplef/agent/prompts';
import { createSerperWebSearch } from '@triplef/agent/tools';ai and zod are peer dependencies; ai is optional (only the /tools subpath needs it).
