diff --git a/source/api_definitions.py b/source/api_definitions.py index 3a4ef3726..d09ccb5fd 100644 --- a/source/api_definitions.py +++ b/source/api_definitions.py @@ -278,7 +278,7 @@ class MemoryBanks(Protocol): ) -> List[MemoryBank]: ... @webmethod(route="/memory_banks/drop") - def remove_memory_bank( + def delete_memory_bank( self, bank_uuid: str, ) -> str: ... @@ -305,7 +305,7 @@ class MemoryBanks(Protocol): ) -> List[MemoryBankDocument]: ... @webmethod(route="/memory_bank/delete") - def remove_memory_documents( + def delete_memory_documents( self, bank_uuid: str, document_uuids: List[str], diff --git a/source/openapi.html b/source/openapi.html index fd46d2923..f2aa08d6f 100644 --- a/source/openapi.html +++ b/source/openapi.html @@ -163,6 +163,77 @@ ] } }, + "/memory_banks/drop": { + "delete": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + } + }, + "tags": [ + "MemoryBanks" + ], + "parameters": [ + { + "name": "bank_uuid", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/memory_bank/delete": { + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/jsonl": { + "schema": { + "type": "string" + } + } + } + } + }, + "tags": [ + "MemoryBanks" + ], + "parameters": [ + { + "name": "bank_uuid", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "required": true + } + } + }, "/datasets/get": { "get": { "responses": { @@ -825,77 +896,6 @@ "required": true } } - }, - "/memory_banks/drop": { - "delete": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - }, - "tags": [ - "MemoryBanks" - ], - "parameters": [ - { - "name": "bank_uuid", - "in": "query", - "required": true, - "schema": { - "type": "string" - } - } - ] - } - }, - "/memory_bank/delete": { - "post": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/jsonl": { - "schema": { - "type": "string" - } - } - } - } - }, - "tags": [ - "MemoryBanks" - ], - "parameters": [ - { - "name": "bank_uuid", - "in": "query", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "required": true - } - } } }, "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema", @@ -3331,26 +3331,26 @@ } ], "tags": [ + { + "name": "AgenticSystem" + }, + { + "name": "RewardScoring" + }, + { + "name": "PostTraining" + }, { "name": "Datasets" }, { "name": "Inference" }, - { - "name": "PostTraining" - }, - { - "name": "RewardScoring" - }, - { - "name": "SyntheticDataGeneration" - }, { "name": "MemoryBanks" }, { - "name": "AgenticSystem" + "name": "SyntheticDataGeneration" }, { "name": "ShieldConfig", diff --git a/source/openapi.yaml b/source/openapi.yaml index 23a462e1e..74fbff96f 100644 --- a/source/openapi.yaml +++ b/source/openapi.yaml @@ -2023,13 +2023,13 @@ security: servers: - url: http://any-hosted-llama-stack.com tags: +- name: AgenticSystem +- name: RewardScoring +- name: PostTraining - name: Datasets - name: Inference -- name: PostTraining -- name: RewardScoring -- name: SyntheticDataGeneration - name: MemoryBanks -- name: AgenticSystem +- name: SyntheticDataGeneration - description: name: ShieldConfig - description: