mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-09 22:31:05 +00:00
[dev] add default path to tool functions
This commit is contained in:
parent
d095e87f3d
commit
5364f821a2
3 changed files with 4 additions and 3 deletions
|
|
@ -18,6 +18,7 @@ memory_service:
|
|||
class: memory.operation.read_memory
|
||||
workflow: dummy
|
||||
description: "read session messages of the user"
|
||||
contextual_msg_count: 0
|
||||
read_memory:
|
||||
class: memory.operation.read_memory
|
||||
workflow: dummy
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ class ReadMemory(BaseWorkflow, BaseOperation):
|
|||
name: str,
|
||||
description: str,
|
||||
chat_messages: List[Message],
|
||||
his_msg_count: int = 0,
|
||||
contextual_msg_count: int = 0,
|
||||
his_msg_count: int = 0, # supplement to the current query
|
||||
contextual_msg_count: int = 0, # for the current context dialogue
|
||||
**kwargs):
|
||||
super().__init__(name=name, **kwargs)
|
||||
BaseOperation.__init__(self, name=name, description=description)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ def under_line_to_hump(underline_str):
|
|||
return sub[0:1].upper() + sub[1:]
|
||||
|
||||
|
||||
def init_instance_by_config(config: dict, default_class_path: str = "", suffix_name: str = "", **kwargs):
|
||||
def init_instance_by_config(config: dict, default_class_path: str = "memory_scope", suffix_name: str = "", **kwargs):
|
||||
class_name = config.pop("class")
|
||||
if not class_name:
|
||||
raise RuntimeError("empty class_name!")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue