mirror of
https://github.com/langgenius/dify.git
synced 2026-05-02 00:18:03 +08:00
Merge branch 'feat/support-agent-sandbox' into sandboxed-agent-rebase
This commit is contained in:
@ -135,11 +135,11 @@ class CommandNode(Node[CommandNodeData]):
|
||||
*,
|
||||
graph_config: Mapping[str, Any],
|
||||
node_id: str,
|
||||
node_data: Mapping[str, Any],
|
||||
node_data: CommandNodeData,
|
||||
) -> Mapping[str, Sequence[str]]:
|
||||
_ = graph_config
|
||||
|
||||
typed_node_data = CommandNodeData.model_validate(node_data)
|
||||
typed_node_data = node_data
|
||||
|
||||
selectors: list[VariableSelector] = []
|
||||
selectors += list(variable_template_parser.extract_selectors_from_template(typed_node_data.command))
|
||||
|
||||
@ -157,10 +157,10 @@ class FileUploadNode(Node[FileUploadNodeData]):
|
||||
*,
|
||||
graph_config: Mapping[str, Any],
|
||||
node_id: str,
|
||||
node_data: Mapping[str, Any],
|
||||
node_data: FileUploadNodeData,
|
||||
) -> Mapping[str, Sequence[str]]:
|
||||
_ = graph_config
|
||||
typed_node_data = FileUploadNodeData.model_validate(node_data)
|
||||
typed_node_data = node_data
|
||||
return {node_id + ".files": typed_node_data.variable_selector}
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user