Skip to content

Commit fccbc24

Browse files
committed
add delete all declarative memory
1 parent acac556 commit fccbc24

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
- UID=${UID}
99
- GID=${GID}
1010
ports:
11-
- "8081:8081"
11+
- "8082:8081"
1212
volumes:
1313
- ./:/var/www/ccat-php
1414
networks:

src/CCatClient.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ public function getAllowedMimeTypes(): AllowedMimeTypesOutput
131131
return $this->serializer->deserialize($response->getBody()->getContents(), AllowedMimeTypesOutput::class, 'json', []);
132132
}
133133
// -- Memory API
134+
/**
135+
* @return ResponseInterface
136+
* @throws \GuzzleHttp\Exception\GuzzleException
137+
*/
138+
public function deleteDeclarativeMemory(): ResponseInterface
139+
{
140+
return $this->httpClient->getHttpClient()->delete('memory/collections/declarative');
141+
}
142+
134143
/**
135144
* @param array<string, mixed> $metadata
136145
* @return ResponseInterface

0 commit comments

Comments
 (0)