Skip to content

Commit

Permalink
add delete all declarative memory
Browse files Browse the repository at this point in the history
  • Loading branch information
AlboCode committed Dec 19, 2023
1 parent acac556 commit fccbc24
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- UID=${UID}
- GID=${GID}
ports:
- "8081:8081"
- "8082:8081"
volumes:
- ./:/var/www/ccat-php
networks:
Expand Down
9 changes: 9 additions & 0 deletions src/CCatClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,15 @@ public function getAllowedMimeTypes(): AllowedMimeTypesOutput
return $this->serializer->deserialize($response->getBody()->getContents(), AllowedMimeTypesOutput::class, 'json', []);
}
// -- Memory API
/**
* @return ResponseInterface
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function deleteDeclarativeMemory(): ResponseInterface
{
return $this->httpClient->getHttpClient()->delete('memory/collections/declarative');
}

/**
* @param array<string, mixed> $metadata
* @return ResponseInterface
Expand Down

0 comments on commit fccbc24

Please sign in to comment.