-
Notifications
You must be signed in to change notification settings - Fork 0
Python Chat and Memory Functions
Akshay B edited this page Mar 16, 2026
·
1 revision
This document details chat and memory routes in PluckIt.Processor.
- Audience: external contributors
- Last reviewed: 2026-03-16
- Scope: chat and memory contract only
-
POST /api/chat- Trailing slash is normalized;
/api/chat/is equivalent - Starts or continues chat stream using SSE (
text/event-stream). - Returns streaming responses for message completion.
- Trailing slash is normalized;
-
GET /api/chat/memory- Reads persisted chat memory for the authenticated user.
- Supports conversation-context retrieval with no mutation.
-
PUT /api/chat/memory- Updates persisted chat memory for the authenticated user.
- Allows the caller to overwrite or refresh memory state.
- Most chat and memory routes are authenticated via
Depends(get_user_id). - SSE route behavior and memory endpoints are intended to be consumed together as a stateful chat contract.