@@ -496,6 +496,8 @@ def upload_file(
496496 file : FileTypes ,
497497 container_tag : str | Omit = omit ,
498498 container_tags : str | Omit = omit ,
499+ custom_id : str | Omit = omit ,
500+ entity_context : str | Omit = omit ,
499501 filepath : str | Omit = omit ,
500502 file_type : str | Omit = omit ,
501503 metadata : str | Omit = omit ,
@@ -521,6 +523,12 @@ def upload_file(
521523 '["user_123", "project_123"]') or a single string (e.g., 'user_123'). Single
522524 strings will be automatically converted to an array.
523525
526+ custom_id: Optional custom ID of the document. Max 100 characters, alphanumeric with
527+ hyphens, underscores, and colons only.
528+
529+ entity_context: Optional entity context for this container tag. Max 1500 characters. Used during
530+ document processing to guide memory extraction.
531+
524532 filepath: Optional file path for the uploaded file (e.g., '/documents/reports/file.pdf').
525533 Used by supermemoryfs to map documents to filesystem paths.
526534
@@ -556,6 +564,8 @@ def upload_file(
556564 "file" : file ,
557565 "container_tag" : container_tag ,
558566 "container_tags" : container_tags ,
567+ "custom_id" : custom_id ,
568+ "entity_context" : entity_context ,
559569 "filepath" : filepath ,
560570 "file_type" : file_type ,
561571 "metadata" : metadata ,
@@ -1038,6 +1048,8 @@ async def upload_file(
10381048 file : FileTypes ,
10391049 container_tag : str | Omit = omit ,
10401050 container_tags : str | Omit = omit ,
1051+ custom_id : str | Omit = omit ,
1052+ entity_context : str | Omit = omit ,
10411053 filepath : str | Omit = omit ,
10421054 file_type : str | Omit = omit ,
10431055 metadata : str | Omit = omit ,
@@ -1063,6 +1075,12 @@ async def upload_file(
10631075 '["user_123", "project_123"]') or a single string (e.g., 'user_123'). Single
10641076 strings will be automatically converted to an array.
10651077
1078+ custom_id: Optional custom ID of the document. Max 100 characters, alphanumeric with
1079+ hyphens, underscores, and colons only.
1080+
1081+ entity_context: Optional entity context for this container tag. Max 1500 characters. Used during
1082+ document processing to guide memory extraction.
1083+
10661084 filepath: Optional file path for the uploaded file (e.g., '/documents/reports/file.pdf').
10671085 Used by supermemoryfs to map documents to filesystem paths.
10681086
@@ -1098,6 +1116,8 @@ async def upload_file(
10981116 "file" : file ,
10991117 "container_tag" : container_tag ,
11001118 "container_tags" : container_tags ,
1119+ "custom_id" : custom_id ,
1120+ "entity_context" : entity_context ,
11011121 "filepath" : filepath ,
11021122 "file_type" : file_type ,
11031123 "metadata" : metadata ,
0 commit comments