Merge pull request #50 from SuanmoSuanyangTechnology/fix/workflow
Fix/workflow
This commit is contained in:
@@ -36,6 +36,7 @@ from . import (
|
|||||||
tool_controller,
|
tool_controller,
|
||||||
memory_forget_controller,
|
memory_forget_controller,
|
||||||
home_page_controller,
|
home_page_controller,
|
||||||
|
memory_perceptual_controller
|
||||||
)
|
)
|
||||||
from . import user_memory_controllers
|
from . import user_memory_controllers
|
||||||
|
|
||||||
@@ -76,5 +77,6 @@ manager_router.include_router(memory_short_term_controller.router)
|
|||||||
manager_router.include_router(tool_controller.router)
|
manager_router.include_router(tool_controller.router)
|
||||||
manager_router.include_router(memory_forget_controller.router)
|
manager_router.include_router(memory_forget_controller.router)
|
||||||
manager_router.include_router(home_page_controller.router)
|
manager_router.include_router(home_page_controller.router)
|
||||||
|
manager_router.include_router(memory_perceptual_controller.router)
|
||||||
|
|
||||||
__all__ = ["manager_router"]
|
__all__ = ["manager_router"]
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class HttpContentTypeConfig(BaseModel):
|
|||||||
elif content_type in [HttpContentType.JSON] and not isinstance(v, str):
|
elif content_type in [HttpContentType.JSON] and not isinstance(v, str):
|
||||||
raise ValueError("When content_type is JSON, data must be of type str")
|
raise ValueError("When content_type is JSON, data must be of type str")
|
||||||
elif content_type in [HttpContentType.WWW_FORM] and not isinstance(v, dict):
|
elif content_type in [HttpContentType.WWW_FORM] and not isinstance(v, dict):
|
||||||
raise ValueError("When content_type is x-www-form-urlencoded, data must be a object")
|
raise ValueError("When content_type is x-www-form-urlencoded, data must be an object(dict)")
|
||||||
elif content_type in [HttpContentType.RAW, HttpContentType.BINARY] and not isinstance(v, str):
|
elif content_type in [HttpContentType.RAW, HttpContentType.BINARY] and not isinstance(v, str):
|
||||||
raise ValueError("When content_type is raw/binary, data must be a string (File descriptor)")
|
raise ValueError("When content_type is raw/binary, data must be a string (File descriptor)")
|
||||||
return v
|
return v
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ from .tool_model import (
|
|||||||
ToolConfig, BuiltinToolConfig, CustomToolConfig, MCPToolConfig,
|
ToolConfig, BuiltinToolConfig, CustomToolConfig, MCPToolConfig,
|
||||||
ToolExecution, ToolType, ToolStatus, AuthType, ExecutionStatus
|
ToolExecution, ToolType, ToolStatus, AuthType, ExecutionStatus
|
||||||
)
|
)
|
||||||
|
from .memory_perceptual_model import MemoryPerceptualModel
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"Tenants",
|
"Tenants",
|
||||||
@@ -74,5 +75,6 @@ __all__ = [
|
|||||||
"ToolType",
|
"ToolType",
|
||||||
"ToolStatus",
|
"ToolStatus",
|
||||||
"AuthType",
|
"AuthType",
|
||||||
"ExecutionStatus"
|
"ExecutionStatus",
|
||||||
|
"MemoryPerceptualModel"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -68,12 +68,7 @@ edges:
|
|||||||
label: 完成
|
label: 完成
|
||||||
|
|
||||||
# 变量定义
|
# 变量定义
|
||||||
variables:
|
variables: []
|
||||||
- name: user_question
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
description: 用户的问题
|
|
||||||
default: ""
|
|
||||||
|
|
||||||
# 执行配置
|
# 执行配置
|
||||||
execution_config:
|
execution_config:
|
||||||
|
|||||||
Reference in New Issue
Block a user