Skip to main content

tanstack-ai-memory-honcho

Use when wiring honcho() from @tanstack/ai-memory/honcho — a hosted memory adapter where recall is a dialectic answer over the user's representation (no discrete fragments). Requires the optional @honcho-ai/sdk peer.

소스 정보

저장소
TanStack/ai
최근 소스 활동
2026년 9월 9일 06:08
감지된 SKILL.md 언어
영어
스타
3,199
포크
366

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
tanstack-ai-memory-honcho
description
Use when wiring honcho() from @tanstack/ai-memory/honcho — a hosted memory adapter where recall is a dialectic answer over the user's representation (no discrete fragments). Requires the optional @honcho-ai/sdk peer.
# Honcho Memory Adapter Hosted `recall`/`save` adapter backed by Honcho. Honcho models memory as peers exchanging messages in a session; `recall` returns a **synthesized dialectic answer** over the user peer's representation (so there are no discrete fragments), and `save` appends the turn's messages to the session. ## Setup ```ts import { memoryMiddleware } from '@tanstack/ai-memory' import { honcho } from '@tanstack/ai-memory/honcho' // Build per request from the server-validated session — never from req.body. function memoryFor(session: { userId: string; threadId: string }) { const memory = honcho({ user: session.userId }) // baseURL defaults to HONCHO_URL return memoryMiddleware({ adapter: memory, scope: { threadId: session.threadId, userId: session.userId }, }) } ``` `@honcho-ai/sdk` is an **optional peer dependency**, loaded lazily on first use — install it where you use `honcho()`. ## Options - `user` — user peer id (falls back to `scope.userId`, then `'demo-user'`). - `baseURL` — Honcho server URL (default `HONCHO_URL` or `http://localhost:8001`). - `workspaceId` — default `HONCHO_APP_NAME` or `'ai-memory'`. - `apiKey` — default `HONCHO_API_KEY`. - `assistantId` — assistant peer id (default `'assistant'`). **Scope fields:** session key = `{tenantId|_}__{threadId}`; peer id is `{tenantId}__{user}` when `tenantId` is set, otherwise `user` / `scope.userId`. `namespace` is ignored. `recall` calls the user peer's dialectic `chat()` and injects the answer as the system prompt; Honcho exposes no LLM tools.
GitHub에서 보기