Feat/support tool credentials bool schema (#2875)
This commit is contained in:
parent
cb79a90031
commit
95b74c211d
7 changed files with 204 additions and 50 deletions
|
|
@ -138,9 +138,9 @@ class ToolManageService:
|
|||
:return: the list of tool providers
|
||||
"""
|
||||
provider = ToolManager.get_builtin_provider(provider_name)
|
||||
return [
|
||||
v.to_dict() for _, v in (provider.credentials_schema or {}).items()
|
||||
]
|
||||
return json.loads(serialize_base_model_array([
|
||||
v for _, v in (provider.credentials_schema or {}).items()
|
||||
]))
|
||||
|
||||
@staticmethod
|
||||
def parser_api_schema(schema: str) -> list[ApiBasedToolBundle]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue