julee.repositories.minio.knowledge_service_query ================================================ .. py:module:: julee.repositories.minio.knowledge_service_query .. autoapi-nested-parse:: Minio implementation of KnowledgeServiceQueryRepository. This module provides a Minio-based implementation of the KnowledgeServiceQueryRepository protocol that follows the Clean Architecture patterns defined in the Fun-Police Framework. It handles knowledge service query storage as JSON objects in Minio, ensuring idempotency and proper error handling. The implementation stores knowledge service queries as JSON objects in Minio, following the large payload handling pattern from the architectural guidelines. Each query is stored as a separate object with the query ID as the key. Attributes ---------- .. autoapisummary:: julee.repositories.minio.knowledge_service_query.logger Classes ------- .. autoapisummary:: julee.repositories.minio.knowledge_service_query.MinioKnowledgeServiceQueryRepository Module Contents --------------- .. py:class:: MinioKnowledgeServiceQueryRepository(client) Bases: :py:obj:`julee.domain.repositories.knowledge_service_query.KnowledgeServiceQueryRepository`, :py:obj:`julee.repositories.minio.client.MinioRepositoryMixin` Minio implementation of KnowledgeServiceQueryRepository. This implementation stores knowledge service queries as JSON objects in Minio buckets, following the established patterns for Minio repositories in this system. Each query is stored as a separate object with deterministic naming. .. py:method:: generate_id() :async: Generate a unique query identifier. :returns: Unique string identifier for a new query .. py:method:: get(query_id) :async: Retrieve a knowledge service query by ID. :param query_id: Unique query identifier :returns: KnowledgeServiceQuery object if found, None otherwise .. py:method:: get_many(query_ids) :async: Retrieve multiple knowledge service queries by ID. :param query_ids: List of unique query identifiers :returns: Dict mapping query_id to KnowledgeServiceQuery (or None if not found) .. py:method:: list_all() :async: List all knowledge service queries. :returns: List of all knowledge service queries, sorted by query_id .. py:method:: save(query) :async: Store or update a knowledge service query. :param query: KnowledgeServiceQuery object to store .. py:attribute:: bucket_name :value: 'knowledge-service-queries' .. py:attribute:: client .. py:attribute:: logger .. py:data:: logger