Skip to content

feat: add new agent#36284

Draft
zyssyz123 wants to merge 11 commits into
mainfrom
feat/dify_agent
Draft

feat: add new agent#36284
zyssyz123 wants to merge 11 commits into
mainfrom
feat/dify_agent

Conversation

@zyssyz123
Copy link
Copy Markdown
Contributor

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

Screenshots

Before After
... ...

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and cd web && pnpm exec vp staged (frontend) to appease the lint gods

@dosubot dosubot Bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label May 18, 2026
@zyssyz123 zyssyz123 marked this pull request as draft May 18, 2026 02:48
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 18, 2026

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 0.00% 44.48% +44.48%
Strict coverage 0.00% 44.00% +44.00%
Typed symbols 0 22,602 +22,602
Untyped symbols 0 28,524 +28,524
Modules 0 2574 +2,574

@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

❌ Patch coverage is 93.71429% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.96%. Comparing base (1925d58) to head (f9ae632).
⚠️ Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
api/clients/agent_backend/client.py 85.18% 7 Missing and 1 partial ⚠️
api/clients/agent_backend/factory.py 50.00% 5 Missing ⚠️
api/clients/agent_backend/fake_client.py 90.47% 1 Missing and 3 partials ⚠️
api/clients/agent_backend/errors.py 88.00% 3 Missing ⚠️
api/clients/agent_backend/event_adapter.py 96.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #36284      +/-   ##
==========================================
+ Coverage   85.94%   85.96%   +0.01%     
==========================================
  Files        4458     4465       +7     
  Lines      211298   211887     +589     
  Branches    39503    39551      +48     
==========================================
+ Hits       181593   182140     +547     
- Misses      26501    26530      +29     
- Partials     3204     3217      +13     
Flag Coverage Δ
api 85.49% <93.71%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 18, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-05-18 09:41:04.883198528 +0000
+++ /tmp/pyrefly_pr.txt	2026-05-18 09:40:51.151071687 +0000
@@ -1768,6 +1768,20 @@
    --> tests/test_containers_integration_tests/trigger/test_trigger_e2e.py:857:21
 ERROR Argument `Literal['unsupported_language']` is not assignable to parameter `language` with type `CodeLanguage` in function `core.helper.code_executor.code_executor.CodeExecutor.execute_workflow_code_template` [bad-argument-type]
   --> tests/test_containers_integration_tests/workflow/nodes/code_executor/test_code_executor.py:10:62
+ERROR Cannot index into `bool` [bad-index]
+  --> tests/unit_tests/clients/agent_backend/test_event_adapter.py:53:12
+ERROR Cannot index into `float` [bad-index]
+  --> tests/unit_tests/clients/agent_backend/test_event_adapter.py:53:12
+ERROR Cannot index into `int` [bad-index]
+  --> tests/unit_tests/clients/agent_backend/test_event_adapter.py:53:12
+ERROR Cannot index into `list[JsonValue]` [bad-index]
+  --> tests/unit_tests/clients/agent_backend/test_event_adapter.py:53:12
+ERROR Cannot index into `str` [bad-index]
+  --> tests/unit_tests/clients/agent_backend/test_event_adapter.py:53:12
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/unit_tests/clients/agent_backend/test_event_adapter.py:53:12
+ERROR Cannot index into `object` [bad-index]
+   --> tests/unit_tests/clients/agent_backend/test_request_builder.py:132:12
 ERROR Expected a callable, got `None` [not-callable]
   --> tests/unit_tests/commands/test_clean_expired_messages.py:33:9
 ERROR Expected a callable, got `None` [not-callable]
@@ -5715,6 +5729,12 @@
    --> tests/unit_tests/models/test_account_models.py:552:23
 ERROR Argument `dict[str, bool | str]` is not assignable to parameter `value` with type `TenantCustomConfigDict` in function `models.account.Tenant.custom_config_dict` [bad-argument-type]
    --> tests/unit_tests/models/test_account_models.py:573:37
+ERROR Object of class `FromClause` has no attribute `constraints` [missing-attribute]
+  --> tests/unit_tests/models/test_agent.py:35:27
+ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
+  --> tests/unit_tests/models/test_agent.py:50:5
+ERROR Object of class `FromClause` has no attribute `insert` [missing-attribute]
+  --> tests/unit_tests/models/test_agent.py:51:20
 ERROR `None` is not subscriptable [unsupported-operation]
    --> tests/unit_tests/models/test_dataset_models.py:150:16
 ERROR `None` is not subscriptable [unsupported-operation]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant