Sessions
Generate session memories
DeprecatedAccepts and does nothing: memories form from a session's messages as they arrive, through appending messages or POST …/ingestions/sessions, each of which returns the ingestion receipt to poll. GET …/memories returns a session's memories as they land.
Deprecated: drop the call.
Usage
import { ContextEngineClient } from "@clinia/context-engine-js";
// Initialize the client
const client = new ContextEngineClient({
baseUrl: process.env.CLINIA_WORKSPACE,
auth: {
clientId: process.env.CLINIA_CLIENT_ID,
clientSecret: process.env.CLINIA_CLIENT_SECRET,
},
});
// Call the API
const { data, error } = await client.sessions.generateMemories("<patient-id>", "<session-id>");
// Print the response
console.log(data ?? error);The environment variables are set in Install and authenticate, for JavaScript or Python.
API reference
POST /v1/patients/{patientId}/sessions/{sessionId}/memories documents the parameters, the request body and the responses.