mirror of
https://github.com/langgenius/dify.git
synced 2026-11-13 23:06:40 +08:00
fix(agent-v2): accept composer UI ids on manual metadata filter conditions (#40171)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
d362bdbb4e
commit
2a742486c5
11 files changed
+115
-2
No files matched your search
@@ -14302,9 +14302,19 @@ the current roster/workflow APIs scoped to Dify Agent.
|
||||
|
||||
#### AgentKnowledgeMetadataCondition
|
||||
|
||||
One manual metadata filter clause.
|
||||
|
||||
``id`` and ``metadata_id`` are UI-only bookkeeping the composer sends on
|
||||
every save (a stable row key and a reference to the selected metadata
|
||||
field). They are persisted here for round-tripping the composer's draft
|
||||
state but are stripped before building the Agent runtime request, whose
|
||||
DTO only accepts ``name``/``comparison_operator``/``value``.
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| comparison_operator | string, <br>**Available values:** "<", "=", ">", "after", "before", "contains", "empty", "end with", "in", "is", "is not", "not contains", "not empty", "not in", "start with", "≠", "≤", "≥" | *Enum:* `"<"`, `"="`, `">"`, `"after"`, `"before"`, `"contains"`, `"empty"`, `"end with"`, `"in"`, `"is"`, `"is not"`, `"not contains"`, `"not empty"`, `"not in"`, `"start with"`, `"≠"`, `"≤"`, `"≥"` | Yes |
|
||||
| id | string | | No |
|
||||
| metadata_id | string | | No |
|
||||
| name | string | | Yes |
|
||||
| value | string<br>[ string ]<br>number | | No |
|
||||
|
||||
|
||||
Reference in new issue
Block a user