Skip to content

API reference

The API reference is auto-generated from TypeScript types + JSDoc by TypeDoc. The output lives in docs/api-reference/ — browse online via GitHub or run npm run docs:api to regenerate locally.

You wantLook at
Agent.create({...}) shapeimport('agentfootprint').Agent — your IDE shows the builder methods
defineMemory({...}) optionssrc/memory/define.types.ts (curated public types)
defineSkill({...}) optionssrc/lib/injection-engine/factories/defineSkill.ts
LLMProvider interfacesrc/adapters/types.ts
MemoryStore interfacesrc/memory/store/types.ts
Event taxonomy (47 events × 13 domains)src/events/registry.ts
Conventions (subflow ids, injection keys)src/conventions.ts

Every type has a JSDoc with at least one example. The MemoryStore interface alone has 200+ lines of JSDoc covering each method’s contract.

import { Agent, defineMemory, mock } from 'agentfootprint'; // top-level
import { RedisStore } from 'agentfootprint/memory-redis'; // Redis adapter
import { AgentCoreStore } from 'agentfootprint/memory-agentcore'; // AgentCore adapter
import { withRetry, withFallback } from 'agentfootprint/resilience'; // resilience decorators
import { toSSE } from 'agentfootprint/stream'; // SSE bridge
Terminal window
npm run docs:api # runs `typedoc` per typedoc.json

TypeDoc reads src/index.ts, follows the public exports, emits markdown to docs/api-reference/. Configuration lives in typedoc.json at the repo root. The release script regenerates before each release; consumers can regenerate locally to browse offline.

The generated tree is organized by TypeScript declaration kind: