Repository navigation
refactor(api): pass session explicitly in Agent V2 tools builder - #41286
Closed
Amna-Muhammad-Git wants to merge 1 commit into
Closed
Amna-Muhammad-Git wants to merge 1 commit into
Amna-Muhammad-Git wants to merge 1 commit into
Conversation
Amna-Muhammad-Git
requested review from
QuantumGhost and
laipz8200
as code owners
August 26, 2026 05:52
Amna-Muhammad-Git
force-pushed
the
refactor/agent-v2-tools-session
branch
from
August 26, 2026 07:19
51e5871 to
3d937fc
Compare
Author
|
Hi, the PR is ready for review. The required workflows are currently awaiting maintainer approval, and the PR is marked out of date with main. Could a maintainer please approve the workflows and advise if the branch should be updated? |
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-08-28 02:18:26.713572580 +0000
+++ /tmp/pyrefly_pr.txt 2026-08-28 02:18:12.416593600 +0000
@@ -1733,49 +1733,31 @@
ERROR Argument `list[FromClause]` is not assignable to parameter `tables` with type `Sequence[Table] | None` in function `sqlalchemy.sql.schema.MetaData.create_all` [bad-argument-type]
--> tests/unit_tests/commands/test_legacy_model_type_migration.py:72:16
ERROR Object of class `FromClause` has no attribute `insert` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:235:13
-ERROR Object of class `object` has no attribute `automatic_include_workspace_members` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:445:12
-ERROR Object of class `object` has no attribute `automatic_include_workspace_members` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:539:12
-ERROR Object of class `object` has no attribute `access_policy_ids` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:540:12
-ERROR Object of class `object` has no attribute `account_ids` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:541:12
-ERROR Object of class `object` has no attribute `automatic_include_workspace_members` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:594:12
-ERROR Object of class `object` has no attribute `access_policy_ids` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:595:12
-ERROR Object of class `object` has no attribute `account_ids` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:596:16
-ERROR Object of class `object` has no attribute `automatic_include_workspace_members` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:649:12
-ERROR Object of class `object` has no attribute `access_policy_ids` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:650:12
-ERROR Object of class `object` has no attribute `account_ids` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:651:16
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:233:13
+ERROR Object of class `object` has no attribute `scope` [missing-attribute]
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:437:12
ERROR Object of class `object` has no attribute `callback` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:698:5
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:537:5
ERROR Object of class `object` has no attribute `callback` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:759:5
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:598:5
ERROR Object of class `TextIOBase` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:772:17
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:611:17
ERROR Class `object` has no class attribute `__table__` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:856:48
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:695:48
ERROR Class `object` has no class attribute `__table__` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:935:48
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:774:48
ERROR Class `object` has no class attribute `__table__` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1038:48
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:877:48
ERROR Class `object` has no class attribute `__table__` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1116:48
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:955:48
ERROR Class `object` has no class attribute `__table__` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1171:42
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1010:42
ERROR Class member `SlowLineOutput.write` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1239:13
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1078:13
ERROR Argument `object` is not assignable to parameter `orig` with type `BaseException` in function `sqlalchemy.exc.DBAPIError.__init__` [bad-argument-type]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1527:44
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1366:44
ERROR Argument `SimpleNamespace` is not assignable to parameter `orig` with type `BaseException` in function `sqlalchemy.exc.DBAPIError.__init__` [bad-argument-type]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1563:57
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1402:57
ERROR Expected a callable, got `None` [not-callable]
--> tests/unit_tests/commands/test_reset_encrypt_key_pair.py:28:9
ERROR Object of class `NoneType` has no attribute `encrypt_public_key` [missing-attribute]
@@ -3068,8 +3050,6 @@
--> tests/unit_tests/configs/test_dify_config.py:67:32
ERROR Unpacked keyword argument `object` is not assignable to parameter `inner_CONSOLE_CORS_ALLOW_ORIGINS` with type `bytearray | bytes | str` in function `_IsolatedDifyConfig.__init__` [bad-argument-type]
--> tests/unit_tests/configs/test_dify_config.py:67:32
-ERROR Unpacked keyword argument `object` is not assignable to parameter `WEBSOCKET_MAX_HTTP_BUFFER_SIZE` with type `Decimal | bool | bytes | float | int | str` in function `_IsolatedDifyConfig.__init__` [bad-argument-type]
- --> tests/unit_tests/configs/test_dify_config.py:67:32
ERROR Unpacked keyword argument `object` is not assignable to parameter `inner_WEB_API_CORS_ALLOW_ORIGINS` with type `bytearray | bytes | str` in function `_IsolatedDifyConfig.__init__` [bad-argument-type]
--> tests/unit_tests/configs/test_dify_config.py:67:32
ERROR Unpacked keyword argument `object` is not assignable to parameter `OPENAPI_ENABLED` with type `Decimal | bool | float | int | str` in function `_IsolatedDifyConfig.__init__` [bad-argument-type]
@@ -3349,11 +3329,15 @@
ERROR Object of class `int` has no attribute `lower` [missing-attribute]
--> tests/unit_tests/controllers/console/app/test_annotation_security.py:274:35
ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_apis.py:125:9
+ --> tests/unit_tests/controllers/console/app/test_app_apis.py:116:9
ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_apis.py:126:9
+ --> tests/unit_tests/controllers/console/app/test_app_apis.py:117:9
+ERROR Cannot instantiate `DifyAPISQLAlchemyWorkflowRunRepository` because the following members are abstract: `save` [bad-instantiation]
+ --> tests/unit_tests/controllers/console/app/test_app_apis.py:663:60
+ERROR Cannot instantiate `DifyAPISQLAlchemyWorkflowRunRepository` because the following members are abstract: `save` [bad-instantiation]
+ --> tests/unit_tests/controllers/console/app/test_app_apis.py:693:60
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/console/app/test_app_apis.py:916:51
+ --> tests/unit_tests/controllers/console/app/test_app_apis.py:773:51
ERROR Generator function should return `Generator` [bad-return]
--> tests/unit_tests/controllers/console/app/test_app_import_api.py:91:29
ERROR Cannot index into `object` [bad-index]
@@ -3409,37 +3393,37 @@
ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_forgot_password.py:29:9
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:239:16
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:237:16
ERROR Cannot index into `Mapping[str, object]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:239:37
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:237:37
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:240:16
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:238:16
ERROR Cannot index into `Mapping[str, object]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:240:37
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:238:37
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:275:16
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:273:16
ERROR Cannot index into `Mapping[str, object]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:275:37
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:273:37
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:276:16
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:274:16
ERROR Cannot index into `Mapping[str, object]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:276:37
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:274:37
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:438:16
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:435:16
ERROR Cannot index into `Mapping[str, object]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:438:37
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:435:37
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:439:16
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:436:16
ERROR Cannot index into `Mapping[str, object]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:439:37
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:436:37
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:621:16
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:618:16
ERROR Cannot index into `Mapping[str, object]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:621:37
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:618:37
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:622:16
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:619:16
ERROR Cannot index into `Mapping[str, object]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_login_logout.py:622:37
+ --> tests/unit_tests/controllers/console/auth/test_login_logout.py:619:37
ERROR Object of class `RequestError` has no attribute `response` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_oauth.py:287:9
ERROR Object of class `RequestError` has no attribute `response` [missing-attribute]
@@ -3457,7 +3441,7 @@
ERROR Argument `scoped_session[flask_sqlalchemy.session.Session]` is not assignable to parameter `session` with type `sqlalchemy.orm.session.Session` in function `_add_binding` [bad-argument-type]
--> tests/unit_tests/controllers/console/datasets/test_data_source.py:85:28
ERROR Missing argument `name` in function `controllers.console.datasets.datasets.DatasetCreatePayload.__init__` [missing-argument]
- --> tests/unit_tests/controllers/console/datasets/test_datasets.py:548:49
+ --> tests/unit_tests/controllers/console/datasets/test_datasets.py:528:49
ERROR Argument `Literal['opendal']` is not assignable to parameter `storage_type` with type `StorageType` in function `models.model.UploadFile.__init__` [bad-argument-type]
--> tests/unit_tests/controllers/console/datasets/test_datasets_segments.py:137:22
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole` in function `models.model.UploadFile.__init__` [bad-argument-type]
@@ -3503,9 +3487,9 @@
ERROR Generator function should return `Generator` [bad-return]
--> tests/unit_tests/controllers/console/tag/test_tags.py:71:23
ERROR Argument `SimpleNamespace` is not assignable to parameter `form` with type `Form` in function `controllers.console.human_input_form._jsonify_form_definition` [bad-argument-type]
- --> tests/unit_tests/controllers/console/test_human_input_form.py:87:41
+ --> tests/unit_tests/controllers/console/test_human_input_form.py:33:41
ERROR Argument `SimpleNamespace` is not assignable to parameter `form` with type `Form` in function `controllers.console.human_input_form.ConsoleHumanInputFormApi._ensure_console_access` [bad-argument-type]
- --> tests/unit_tests/controllers/console/test_human_input_form.py:98:57
+ --> tests/unit_tests/controllers/console/test_human_input_form.py:44:57
ERROR Object of class `Flask` has no attribute `login_manager` [missing-attribute]
--> tests/unit_tests/controllers/console/test_workspace_members.py:24:5
ERROR Type `Response` is not iterable [not-iterable]
@@ -4971,9 +4955,9 @@
ERROR Object of class `Account` has no attribute `tenant_id` [missing-attribute]
--> tests/unit_tests/core/app/apps/test_base_app_generator.py:599:9
ERROR Class member `DummyQueueManager._publish` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/app/apps/test_base_app_queue_manager.py:21:9
+ --> tests/unit_tests/core/app/apps/test_base_app_queue_manager.py:18:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState | None` in function `core.app.apps.base_app_queue_manager.AppQueueManager.graph_runtime_state` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/test_base_app_queue_manager.py:112:43
+ --> tests/unit_tests/core/app/apps/test_base_app_queue_manager.py:74:43
ERROR Argument `list[str]` is not assignable to parameter `invoke_result` with type `Generator[Any] | LLMResult` in function `core.app.apps.base_app_runner.AppRunner._handle_invoke_result` [bad-argument-type]
--> tests/unit_tests/core/app/apps/test_base_app_runner.py:177:31
ERROR Object of class `object` has no attribute `role_prefix` [missing-attribute]
@@ -5134,18 +5118,10 @@
--> tests/unit_tests/core/app/apps/test_workflow_app_runner_core.py:517:55
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_entry` with type `WorkflowEntry` in function `core.app.apps.workflow_app_runner.WorkflowBasedAppRunner._handle_event` [bad-argument-type]
--> tests/unit_tests/core/app/apps/test_workflow_app_runner_core.py:529:13
-ERROR Argument `TestWorkflowBasedAppRunner.test_handle_nested_answer_success_publishes_text_chunk._QueueManager` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow_app_runner.WorkflowBasedAppRunner.__init__` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/test_workflow_app_runner_core.py:553:55
-ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_entry` with type `WorkflowEntry` in function `core.app.apps.workflow_app_runner.WorkflowBasedAppRunner._handle_event` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/test_workflow_app_runner_core.py:561:13
-ERROR Argument `TestWorkflowBasedAppRunner.test_handle_root_answer_success_does_not_publish_extra_text_chunk._QueueManager` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow_app_runner.WorkflowBasedAppRunner.__init__` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/test_workflow_app_runner_core.py:587:55
-ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_entry` with type `WorkflowEntry` in function `core.app.apps.workflow_app_runner.WorkflowBasedAppRunner._handle_event` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/test_workflow_app_runner_core.py:595:13
ERROR Argument `TestWorkflowBasedAppRunner.test_handle_start_node_result_events_project_outputs._QueueManager` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow_app_runner.WorkflowBasedAppRunner.__init__` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/test_workflow_app_runner_core.py:670:55
+ --> tests/unit_tests/core/app/apps/test_workflow_app_runner_core.py:606:55
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_entry` with type `WorkflowEntry` in function `core.app.apps.workflow_app_runner.WorkflowBasedAppRunner._handle_event` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/test_workflow_app_runner_core.py:688:30
+ --> tests/unit_tests/core/app/apps/test_workflow_app_runner_core.py:624:30
ERROR Argument `_DummyQueueManager` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow_app_runner.WorkflowBasedAppRunner.__init__` [bad-argument-type]
--> tests/unit_tests/core/app/apps/test_workflow_app_runner_notifications.py:36:51
ERROR Argument `_DummyWorkflowEntry` is not assignable to parameter `workflow_entry` with type `WorkflowEntry` in function `core.app.apps.workflow_app_runner.WorkflowBasedAppRunner._handle_event` [bad-argument-type]
@@ -7147,391 +7123,391 @@
ERROR Object of class `Executable` has no attribute `compile` [missing-attribute]
--> tests/unit_tests/core/workflow/nodes/agent_v2/test_binding_resolver.py:230:34
ERROR Class member `FakeTool.tool_provider_type` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:73:9
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:77:9
ERROR Class member `FakeTool._invoke` overrides parent class `Tool` in an inconsistent manner [bad-override]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:76:9
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:80:9
ERROR Class member `FakeTool._invoke` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:76:9
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:80:9
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:258:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:263:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:258:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:263:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:258:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:263:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:258:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:263:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:258:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:263:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:258:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:263:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:258:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:263:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:258:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:263:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:258:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:263:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:258:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:263:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:258:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:263:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:258:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:263:12
ERROR `not in` is not supported between `Literal['region']` and `bool` [not-iterable]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:259:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:264:12
ERROR `not in` is not supported between `Literal['region']` and `float` [not-iterable]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:259:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:264:12
ERROR `not in` is not supported between `Literal['region']` and `int` [not-iterable]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:259:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:264:12
ERROR `not in` is not supported between `Literal['region']` and `None` [not-iterable]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:259:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:264:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:346:19
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:352:19
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:346:19
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:352:19
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:346:19
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:352:19
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:346:19
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:352:19
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:346:19
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:352:19
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:346:19
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:352:19
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:12
ERROR Cannot index into `dict[str, JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:347:33
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:353:33
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:12
ERROR Cannot index into `dict[str, JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:348:33
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:354:33
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:12
ERROR Cannot index into `dict[str, JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:349:33
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:355:33
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:377:20
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:383:20
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:377:20
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:383:20
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:377:20
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:383:20
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:377:20
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:383:20
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:377:20
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:383:20
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:377:20
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:383:20
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:378:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:384:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:378:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:384:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:378:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:384:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:378:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:384:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:378:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:384:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:378:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:384:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:12
ERROR Cannot index into `dict[str, JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:379:43
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:385:43
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:415:20
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:422:20
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:415:20
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:422:20
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:415:20
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:422:20
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:415:20
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:422:20
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:415:20
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:422:20
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:415:20
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:422:20
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:416:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:423:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:416:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:423:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:416:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:423:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:416:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:423:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:416:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:423:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:416:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:423:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:12
ERROR Cannot index into `dict[str, JsonValue]` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:417:43
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_dify_tools_builder.py:424:43
ERROR Argument `object` is not assignable to parameter `output` with type `Decimal | Iterable[Any] | Mapping[str, Any] | bool | bytearray | bytes | float | int | str | None` in function `clients.agent_backend.event_adapter.AgentBackendRunSucceededInternalEvent.__init__` [bad-argument-type]
--> tests/unit_tests/core/workflow/nodes/agent_v2/test_output_adapter.py:51:16
ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
--> tests/unit_tests/core/workflow/nodes/agent_v2/test_output_file_rebacker.py:22:5
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:233:22
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:235:22
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1138:25
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1140:25
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1139:18
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1141:18
ERROR Class member `FileVariablePool.get` overrides parent class `FakeVariablePool` in an inconsistent manner [bad-override]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1156:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1158:13
ERROR Class member `FileVariablePool.get` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1156:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1158:13
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1181:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1183:12
ERROR Class member `FileMappingVariablePool.get` overrides parent class `FakeVariablePool` in an inconsistent manner [bad-override]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1194:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1196:13
ERROR Class member `FileMappingVariablePool.get` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1194:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1196:13
ERROR Argument `test_previous_node_file_mapping_strips_extra_fields_in_workflow_context.FileMappingVariablePool` is not assignable to parameter `variable_pool` with type `VariablePoolReader` in function `core.workflow.nodes.agent_v2.runtime_request_builder.WorkflowAgentRuntimeBuildContext.__replace__` [bad-argument-type]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1206:49
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1208:49
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1248:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1250:12
ERROR Class member `FileArrayVariablePool.get` overrides parent class `FakeVariablePool` in an inconsistent manner [bad-override]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1259:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1261:13
ERROR Class member `FileArrayVariablePool.get` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1259:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1261:13
ERROR Class member `UploadedFilesVariablePool.get` overrides parent class `FakeVariablePool` in an inconsistent manner [bad-override]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1312:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1314:13
ERROR Class member `UploadedFilesVariablePool.get` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1312:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1314:13
ERROR Class member `LongRemoteUrlVariablePool.get` overrides parent class `FakeVariablePool` in an inconsistent manner [bad-override]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1354:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1356:13
ERROR Class member `LongRemoteUrlVariablePool.get` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1354:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1356:13
ERROR Object of type `LayerConfig | Mapping[str, object] | bool | bytes | dict[str, JsonValue] | float | int | list[JsonValue] | str | None` has no attribute `skills` [missing-attribute]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1553:37
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1555:37
ERROR Object of type `LayerConfig | Mapping[str, object] | bool | bytes | dict[str, JsonValue] | float | int | list[JsonValue] | str | None` has no attribute `mentioned_skill_names` [missing-attribute]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1554:12
-ERROR Object of type `LayerConfig | Mapping[str, object] | bool | bytes | dict[str, JsonValue] | float | int | list[JsonValue] | str | None` has no attribute `prefix` [missing-attribute]
--> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1556:12
ERROR Object of type `LayerConfig | Mapping[str, object] | bool | bytes | dict[str, JsonValue] | float | int | list[JsonValue] | str | None` has no attribute `prefix` [missing-attribute]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1566:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1558:12
+ERROR Object of type `LayerConfig | Mapping[str, object] | bool | bytes | dict[str, JsonValue] | float | int | list[JsonValue] | str | None` has no attribute `prefix` [missing-attribute]
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1568:12
ERROR Object of type `LayerConfig | Mapping[str, object] | bool | bytes | dict[str, JsonValue] | float | int | list[JsonValue] | str | None` has no attribute `prefix` [missing-attribute]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1584:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1586:12
ERROR `not in` is not supported between `Literal['agent_workspace_binding_id']` and `None` [not-iterable]
--> tests/unit_tests/core/workflow/nodes/agent_v2/test_session_store.py:185:12
ERROR Class member `_ConcreteNode.version` overrides a member in a parent class but is missing an `@ov\n\n... (truncated) ... |
Contributor
Pyrefly Type Coverage
|
Author
|
The PR title has been updated and the required checks are passing. The PR is ready for review. Thank you! |
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR refactors the Agent V2 tools builder to receive the SQLAlchemy
Sessionexplicitly instead of accessing the globaldb.session.This makes the database dependency visible and improves testability without changing tool behavior.
Fixes #37403
Screenshots
Not applicable. This is a backend-only refactor with no UI changes.
Testing
make lintmake type-checkgit diff --checkFrom Codex
Checklist
make lint && make type-check(backend) andvp staged(frontend) to appease the lint gods=