Add RAG client

This commit is contained in:
2026-02-22 22:45:47 +00:00
parent 3c1c1a246a
commit 1e77ca0fa4
22 changed files with 2099 additions and 112 deletions

View File

@@ -0,0 +1,27 @@
package com.example.dto.rag;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/**
* Internal DTO representing a request to the RAG server.
* This is used only within the RAG client adapter and is not exposed to other services.
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public record RagQueryRequest(
@JsonProperty("phone_number") String phoneNumber,
@JsonProperty("text") String text,
@JsonProperty("type") String type,
@JsonProperty("notification") NotificationContext notification,
@JsonProperty("language_code") String languageCode
) {
/**
* Nested record for notification context
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public record NotificationContext(
@JsonProperty("text") String text,
@JsonProperty("parameters") Map<String, Object> parameters
) {}
}