- Implementation of specialist execution api, including SSE protocol
- eveai_chat becomes deprecated and should be replaced with SSE - Adaptation of STANDARD_RAG specialist - Base class definition allowing to realise specialists with crewai framework - Implementation of SPIN_SPECIALIST - Implementation of test app for testing specialists (test_specialist_client). Also serves as an example for future SSE-based client - Improvements to startup scripts to better handle and scale multiple connections - Small improvements to the interaction forms and views - Caching implementation improved and augmented with additional caches
This commit is contained in:
7
common/utils/cache/base.py
vendored
7
common/utils/cache/base.py
vendored
@@ -138,11 +138,14 @@ class CacheHandler(Generic[T]):
|
||||
Cached or newly created value
|
||||
"""
|
||||
cache_key = self.generate_key(**identifiers)
|
||||
current_app.logger.debug(f"Cache key: {cache_key}")
|
||||
current_app.logger.debug(f"Getting Cache key: {cache_key}")
|
||||
|
||||
def creator():
|
||||
instance = creator_func(**identifiers)
|
||||
return self._to_cache_data(instance)
|
||||
current_app.logger.debug("Caching object created and received. Now serializing...")
|
||||
serialized_instance = self._to_cache_data(instance)
|
||||
current_app.logger.debug(f"Caching object serialized and received:\n{serialized_instance}")
|
||||
return serialized_instance
|
||||
|
||||
cached_data = self.region.get_or_create(
|
||||
cache_key,
|
||||
|
||||
Reference in New Issue
Block a user