Skip to content

Commit

Permalink
update pipeline test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhicheng Zhang committed Jan 13, 2024
1 parent 0b81656 commit 766051a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modelscope_agent/tools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ class BaseTool(ABC):
parameters: List[Dict]

def __init__(self, cfg: Optional[Dict] = {}):
self.cfg = cfg or {}
"""
:param schema: Format of tools, default to oai format, in case there is a need for other formats
"""
self.cfg = cfg.get(self.name, {})

self.schema = self.cfg.get('schema', 'oai')
self.function = self._build_function()
Expand Down

0 comments on commit 766051a

Please sign in to comment.