Memory

Synthesize a question

GET
Synthesize a question from the last N messages in the chat history.

Path parameters

sessionIdstringRequired
The ID of the session.

Query parameters

lastNMessagesintegerOptional
The number of messages to use for question synthesis.

Response

This endpoint returns an object
question
stringOptional

Errors

GET
1curl https://api.getzep.com/api/v2/sessions/sessionId/synthesize_question \
2 -H "Authorization: Api-Key <apiKey>"
1{
2 "question": "question"
3}