Retrieve personalized context for a user (tRPC)
Persona.getContext({ userId, task, userQuery? })
.{ "input": { userId, task, userQuery?, maxFacts?, cachePolicy?, includeRecentData? } }
userId
(string, required): OAuth‑connected user for your developertask
(string, required): e.g., chat
, email
, support
, writing
userQuery
(string, optional): per‑turn user message to bias retrieval/reranking for this call onlymaxFacts
(number, optional): upper bound on facts consideredcachePolicy
('cached'|'fresh'|'fallback'
, optional, default cached
)includeRecentData
(boolean, optional, default true
)userQuery
focuses retrieval and reranks facts for this specific call. It does not mutate stored facts; it only biases selection/ordering for the current turn.DEFAULT_PRIVACY_LEVEL
(env; default strict
).X-RateLimit-Limit
, X-RateLimit-Remaining
, X-RateLimit-Reset