mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 21:39:05 +08:00
fix: tool can not run (#12054)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
49bc602fb2
commit
0ea6a926c5
@ -1,5 +1,5 @@
|
|||||||
import json
|
import json
|
||||||
from typing import Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
from sqlalchemy import ForeignKey, func
|
from sqlalchemy import ForeignKey, func
|
||||||
@ -282,8 +282,8 @@ class ToolConversationVariables(db.Model): # type: ignore[name-defined]
|
|||||||
updated_at = db.Column(db.DateTime, nullable=False, server_default=func.current_timestamp())
|
updated_at = db.Column(db.DateTime, nullable=False, server_default=func.current_timestamp())
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def variables(self) -> dict:
|
def variables(self) -> Any:
|
||||||
return dict(json.loads(self.variables_str))
|
return json.loads(self.variables_str)
|
||||||
|
|
||||||
|
|
||||||
class ToolFile(db.Model): # type: ignore[name-defined]
|
class ToolFile(db.Model): # type: ignore[name-defined]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user