mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
[dev] foramt code
This commit is contained in:
parent
bccfb4c122
commit
cd331b693d
7 changed files with 4 additions and 12 deletions
|
|
@ -17,4 +17,3 @@ class MemoryNode(BaseModel):
|
|||
status: str = Field("active", description="active or expired")
|
||||
|
||||
vector: List[float] = Field([], description="content embedding result, return empty")
|
||||
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ class Message(BaseModel):
|
|||
|
||||
content: str = Field(..., description="The body of the message")
|
||||
|
||||
time_created: int = Field("", description="Timestamp when the message was created")
|
||||
time_created: int = Field("", description="Timestamp when the message was created")
|
||||
|
|
|
|||
|
|
@ -92,4 +92,4 @@ class Logger(logging.Logger):
|
|||
if name not in LOGGER_DICT:
|
||||
LOGGER_DICT[name] = Logger(name=name, **kwargs)
|
||||
|
||||
return LOGGER_DICT[name]
|
||||
return LOGGER_DICT[name]
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
Registry for different modules.
|
||||
Init class according to the class name and verify the input parameters.
|
||||
"""
|
||||
import inspect
|
||||
from typing import Dict, Any, List
|
||||
|
||||
|
||||
|
|
@ -26,7 +25,3 @@ class Registry(object):
|
|||
def __getitem__(self, module_name: str):
|
||||
assert module_name in self.module_dict, f'{module_name} not found in {self.name}'
|
||||
return self.module_dict[module_name]
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
import time
|
||||
|
||||
from memory_scope.utils.logger import Logger
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
from importlib import import_module
|
||||
import re
|
||||
from importlib import import_module
|
||||
|
||||
from memory_scope.enumeration.message_role_enum import MessageRoleEnum
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -68,4 +68,3 @@ class BaseWorker(object):
|
|||
if not self._name_simple:
|
||||
self._name_simple = self.__class__.__name__.replace("Worker", "")
|
||||
return self._name_simple
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue