From 4ccd57136497f75708f20fc91884a88041c280a9 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Mon, 9 Dec 2024 23:02:25 +0800 Subject: [PATCH] fix: ruff --- api/core/agent/plugin_entities.py | 1 + api/core/plugin/manager/agent.py | 1 - api/core/workflow/nodes/agent/agent_node.py | 1 + api/core/workflow/nodes/agent/entities.py | 1 + 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/core/agent/plugin_entities.py b/api/core/agent/plugin_entities.py index 05fb0016f3..820bd8af8e 100644 --- a/api/core/agent/plugin_entities.py +++ b/api/core/agent/plugin_entities.py @@ -1,4 +1,5 @@ from typing import Optional + from pydantic import BaseModel, ConfigDict, Field, ValidationInfo, field_validator from core.tools.entities.common_entities import I18nObject diff --git a/api/core/plugin/manager/agent.py b/api/core/plugin/manager/agent.py index fb7b2b7ff2..fadc6cbf6e 100644 --- a/api/core/plugin/manager/agent.py +++ b/api/core/plugin/manager/agent.py @@ -1,7 +1,6 @@ from collections.abc import Generator from typing import Any, Optional - from core.agent.entities import AgentInvokeMessage from core.plugin.entities.plugin import GenericProviderID from core.plugin.entities.plugin_daemon import ( diff --git a/api/core/workflow/nodes/agent/agent_node.py b/api/core/workflow/nodes/agent/agent_node.py index 44de3df704..140c69018e 100644 --- a/api/core/workflow/nodes/agent/agent_node.py +++ b/api/core/workflow/nodes/agent/agent_node.py @@ -1,5 +1,6 @@ from collections.abc import Generator from typing import cast + from core.plugin.manager.exc import PluginDaemonClientSideError from core.workflow.entities.node_entities import NodeRunResult from core.workflow.nodes.agent.entities import AgentNodeData diff --git a/api/core/workflow/nodes/agent/entities.py b/api/core/workflow/nodes/agent/entities.py index d1aaf3a6d1..ba7bba8252 100644 --- a/api/core/workflow/nodes/agent/entities.py +++ b/api/core/workflow/nodes/agent/entities.py @@ -1,4 +1,5 @@ from typing import Any, Literal, Union + from pydantic import BaseModel, ValidationInfo, field_validator from core.workflow.nodes.base.entities import BaseNodeData