Skip to content

Commit cde12ca

Browse files
committed
docs(agent): update custom AI agent example
- Improve the responseFormat in the custom AI agent documentation - Filter out objects with a 'created_at' property to avoid errors
1 parent 168f750 commit cde12ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/agent/custom-ai-agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Notes: Dify API support by [#251](https://github.com/unit-mesh/auto-dev/issues/2
8989
},
9090
"connector": {
9191
"requestFormat": "{\"fields\":{\"stream\": true, \"user_id\": \"user\",\"bot_id\": \"749xxx\",\"additional_messages\": [{\"role\": \"user\", \"content_type\":\"text\", \"content\": \"$content\" }]}}",
92-
"responseFormat": "$.content[?(@.type == 'answer')]"
92+
"responseFormat": "$[?(@.type == 'answer' && !(@.created_at))].content"
9393
},
9494
"responseAction": "Stream"
9595
}

0 commit comments

Comments
 (0)