Class DifyResponse
java.lang.Object
io.agentscope.core.rag.integration.dify.model.DifyResponse
Response model for Dify knowledge base retrieval API.
This class maps the JSON response from Dify's retrieve endpoint:
{
"query": { "content": "..." },
"records": [
{
"segment": {
"id": "...",
"document_id": "...",
"content": "...",
"position": 1,
"document": { "id": "...", "name": "..." }
},
"score": 0.95
}
]
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDocument information nested within a segment.static classQuery information from the response.static classA single retrieval record containing segment and score.static classSegment information from a retrieved document chunk. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()voidsetQuery(DifyResponse.Query query) voidsetRecords(List<DifyResponse.Record> records)
-
Constructor Details
-
DifyResponse
public DifyResponse()
-
-
Method Details
-
getQuery
-
setQuery
-
getRecords
-
setRecords
-