@@ -67,6 +67,7 @@ def update(
6767 content : str | Omit = omit ,
6868 custom_id : str | Omit = omit ,
6969 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
70+ task_type : Literal ["memory" , "superrag" ] | Omit = omit ,
7071 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7172 # The extra values given here take precedence over values defined on the client or passed to this method.
7273 extra_headers : Headers | None = None ,
@@ -104,6 +105,9 @@ def update(
104105 and are case sensitive. Values can be strings, numbers, or booleans. You cannot
105106 nest objects.
106107
108+ task_type: Task type: "memory" (default) for full context layer with SuperRAG built in,
109+ "superrag" for managed RAG as a service.
110+
107111 extra_headers: Send extra headers
108112
109113 extra_query: Add additional query parameters to the request
@@ -123,6 +127,7 @@ def update(
123127 "content" : content ,
124128 "custom_id" : custom_id ,
125129 "metadata" : metadata ,
130+ "task_type" : task_type ,
126131 },
127132 document_update_params .DocumentUpdateParams ,
128133 ),
@@ -241,6 +246,7 @@ def add(
241246 custom_id : str | Omit = omit ,
242247 entity_context : str | Omit = omit ,
243248 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
249+ task_type : Literal ["memory" , "superrag" ] | Omit = omit ,
244250 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
245251 # The extra values given here take precedence over values defined on the client or passed to this method.
246252 extra_headers : Headers | None = None ,
@@ -266,6 +272,9 @@ def add(
266272
267273 metadata: Optional metadata for the document.
268274
275+ task_type: Task type: "memory" (default) for full context layer with SuperRAG built in,
276+ "superrag" for managed RAG as a service.
277+
269278 extra_headers: Send extra headers
270279
271280 extra_query: Add additional query parameters to the request
@@ -284,6 +293,7 @@ def add(
284293 "custom_id" : custom_id ,
285294 "entity_context" : entity_context ,
286295 "metadata" : metadata ,
296+ "task_type" : task_type ,
287297 },
288298 document_add_params .DocumentAddParams ,
289299 ),
@@ -301,6 +311,7 @@ def batch_add(
301311 container_tags : SequenceNotStr [str ] | Omit = omit ,
302312 content : None | Omit = omit ,
303313 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
314+ task_type : Literal ["memory" , "superrag" ] | Omit = omit ,
304315 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
305316 # The extra values given here take precedence over values defined on the client or passed to this method.
306317 extra_headers : Headers | None = None ,
@@ -328,6 +339,9 @@ def batch_add(
328339 and are case sensitive. Values can be strings, numbers, or booleans. You cannot
329340 nest objects.
330341
342+ task_type: Task type: "memory" (default) for full context layer with SuperRAG built in,
343+ "superrag" for managed RAG as a service.
344+
331345 extra_headers: Send extra headers
332346
333347 extra_query: Add additional query parameters to the request
@@ -345,6 +359,7 @@ def batch_add(
345359 "container_tags" : container_tags ,
346360 "content" : content ,
347361 "metadata" : metadata ,
362+ "task_type" : task_type ,
348363 },
349364 document_batch_add_params .DocumentBatchAddParams ,
350365 ),
@@ -458,6 +473,7 @@ def upload_file(
458473 file_type : str | Omit = omit ,
459474 metadata : str | Omit = omit ,
460475 mime_type : str | Omit = omit ,
476+ task_type : Literal ["memory" , "superrag" ] | Omit = omit ,
461477 use_advanced_processing : str | Omit = omit ,
462478 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
463479 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -490,6 +506,9 @@ def upload_file(
490506 mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
491507 use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
492508
509+ task_type: Task type: "memory" (default) for full context layer with SuperRAG built in,
510+ "superrag" for managed RAG as a service.
511+
493512 use_advanced_processing: DEPRECATED: This field is no longer used. Advanced PDF processing is now
494513 automatic with our hybrid Mistral OCR + Gemini pipeline. This parameter will be
495514 accepted but ignored for backwards compatibility.
@@ -510,6 +529,7 @@ def upload_file(
510529 "file_type" : file_type ,
511530 "metadata" : metadata ,
512531 "mime_type" : mime_type ,
532+ "task_type" : task_type ,
513533 "use_advanced_processing" : use_advanced_processing ,
514534 }
515535 )
@@ -558,6 +578,7 @@ async def update(
558578 content : str | Omit = omit ,
559579 custom_id : str | Omit = omit ,
560580 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
581+ task_type : Literal ["memory" , "superrag" ] | Omit = omit ,
561582 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
562583 # The extra values given here take precedence over values defined on the client or passed to this method.
563584 extra_headers : Headers | None = None ,
@@ -595,6 +616,9 @@ async def update(
595616 and are case sensitive. Values can be strings, numbers, or booleans. You cannot
596617 nest objects.
597618
619+ task_type: Task type: "memory" (default) for full context layer with SuperRAG built in,
620+ "superrag" for managed RAG as a service.
621+
598622 extra_headers: Send extra headers
599623
600624 extra_query: Add additional query parameters to the request
@@ -614,6 +638,7 @@ async def update(
614638 "content" : content ,
615639 "custom_id" : custom_id ,
616640 "metadata" : metadata ,
641+ "task_type" : task_type ,
617642 },
618643 document_update_params .DocumentUpdateParams ,
619644 ),
@@ -732,6 +757,7 @@ async def add(
732757 custom_id : str | Omit = omit ,
733758 entity_context : str | Omit = omit ,
734759 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
760+ task_type : Literal ["memory" , "superrag" ] | Omit = omit ,
735761 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
736762 # The extra values given here take precedence over values defined on the client or passed to this method.
737763 extra_headers : Headers | None = None ,
@@ -757,6 +783,9 @@ async def add(
757783
758784 metadata: Optional metadata for the document.
759785
786+ task_type: Task type: "memory" (default) for full context layer with SuperRAG built in,
787+ "superrag" for managed RAG as a service.
788+
760789 extra_headers: Send extra headers
761790
762791 extra_query: Add additional query parameters to the request
@@ -775,6 +804,7 @@ async def add(
775804 "custom_id" : custom_id ,
776805 "entity_context" : entity_context ,
777806 "metadata" : metadata ,
807+ "task_type" : task_type ,
778808 },
779809 document_add_params .DocumentAddParams ,
780810 ),
@@ -792,6 +822,7 @@ async def batch_add(
792822 container_tags : SequenceNotStr [str ] | Omit = omit ,
793823 content : None | Omit = omit ,
794824 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
825+ task_type : Literal ["memory" , "superrag" ] | Omit = omit ,
795826 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
796827 # The extra values given here take precedence over values defined on the client or passed to this method.
797828 extra_headers : Headers | None = None ,
@@ -819,6 +850,9 @@ async def batch_add(
819850 and are case sensitive. Values can be strings, numbers, or booleans. You cannot
820851 nest objects.
821852
853+ task_type: Task type: "memory" (default) for full context layer with SuperRAG built in,
854+ "superrag" for managed RAG as a service.
855+
822856 extra_headers: Send extra headers
823857
824858 extra_query: Add additional query parameters to the request
@@ -836,6 +870,7 @@ async def batch_add(
836870 "container_tags" : container_tags ,
837871 "content" : content ,
838872 "metadata" : metadata ,
873+ "task_type" : task_type ,
839874 },
840875 document_batch_add_params .DocumentBatchAddParams ,
841876 ),
@@ -949,6 +984,7 @@ async def upload_file(
949984 file_type : str | Omit = omit ,
950985 metadata : str | Omit = omit ,
951986 mime_type : str | Omit = omit ,
987+ task_type : Literal ["memory" , "superrag" ] | Omit = omit ,
952988 use_advanced_processing : str | Omit = omit ,
953989 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
954990 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -981,6 +1017,9 @@ async def upload_file(
9811017 mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
9821018 use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
9831019
1020+ task_type: Task type: "memory" (default) for full context layer with SuperRAG built in,
1021+ "superrag" for managed RAG as a service.
1022+
9841023 use_advanced_processing: DEPRECATED: This field is no longer used. Advanced PDF processing is now
9851024 automatic with our hybrid Mistral OCR + Gemini pipeline. This parameter will be
9861025 accepted but ignored for backwards compatibility.
@@ -1001,6 +1040,7 @@ async def upload_file(
10011040 "file_type" : file_type ,
10021041 "metadata" : metadata ,
10031042 "mime_type" : mime_type ,
1043+ "task_type" : task_type ,
10041044 "use_advanced_processing" : use_advanced_processing ,
10051045 }
10061046 )
0 commit comments