Skip to content

Python Chat and Memory Functions

Akshay B edited this page Mar 16, 2026 · 1 revision

Python Chat and Memory Functions (Azure Functions)

This document details chat and memory routes in PluckIt.Processor.

Documentation metadata

  • Audience: external contributors
  • Last reviewed: 2026-03-16
  • Scope: chat and memory contract only

Endpoint inventory

ChatFunctions

  • 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.
  • 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.

Behavior notes

  • 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.

Clone this wiki locally