mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
fix:#9222 create or update custum tools error (#9228)
This commit is contained in:
@ -80,7 +80,9 @@ class ApiToolManageService:
|
||||
raise ValueError(f"invalid schema: {str(e)}")
|
||||
|
||||
@staticmethod
|
||||
def convert_schema_to_tool_bundles(schema: str, extra_info: Optional[dict] = None) -> list[ApiToolBundle]:
|
||||
def convert_schema_to_tool_bundles(
|
||||
schema: str, extra_info: Optional[dict] = None
|
||||
) -> tuple[list[ApiToolBundle], str]:
|
||||
"""
|
||||
convert schema to tool bundles
|
||||
|
||||
|
||||
Reference in New Issue
Block a user