context

Add memory context data

Changed on

This endpoint adds memory (chat history) as context.

post/api/v1/context/memory/add

Request

Request body

sessionIdstring required

The ID of the session

Response

Memory context added successfully

successboolean required
context_idstring required
processed_documentsnumber

Example response

{
  "success": true,
  "context_id": "ctx_01HXYZABC",
  "processed_documents": 2
}

Changes

    • breaking

      added the new required request property

    • breaking

      the request property became required

    • breaking

      the request property // became required

    • warning

      removed the request property

    • info

      api operation id addContextAsMemory was added

    • info

      added the new optional request property //

    • info

      added the new optional request property

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • warning

      removed the request property //

    • warning

      removed the request property

    • warning

      removed the request property

    • info

      api operation id addContextAsMemory removed and replaced with

    • info

      added the new optional request property

    • info

      the request property became optional

    • info

      the request property // became optional