mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-07 03:50:42 +00:00
feat: (0.6)New UI (#1855)
Co-authored-by: 夏姜 <wenfengjiang.jwf@digital-engine.com> Co-authored-by: aries_ckt <916701291@qq.com> Co-authored-by: wb-lh513319 <wb-lh513319@alibaba-inc.com> Co-authored-by: csunny <cfqsunny@163.com>
This commit is contained in:
@@ -121,16 +121,15 @@ class BaseTool(Resource[ToolResourceParameters], ABC):
|
||||
}
|
||||
)
|
||||
parameters_string = json.dumps(parameters, ensure_ascii=False)
|
||||
return template.format(
|
||||
name=self.name,
|
||||
description=self.description,
|
||||
parameters=parameters_string,
|
||||
return (
|
||||
template.format(
|
||||
name=self.name,
|
||||
description=self.description,
|
||||
parameters=parameters_string,
|
||||
),
|
||||
None,
|
||||
)
|
||||
|
||||
def __str__(self) -> str:
|
||||
"""Return the string representation of the tool."""
|
||||
return f"Tool: {self.name} ({self.description})"
|
||||
|
||||
|
||||
class FunctionTool(BaseTool):
|
||||
"""Function tool.
|
||||
|
Reference in New Issue
Block a user