feat(harness): add chat application use case

This commit is contained in:
zhuyongxin
2026-07-22 00:57:39 +08:00
parent ee0949d464
commit f8809cb7dd
56 changed files with 2815 additions and 6 deletions
@@ -0,0 +1,22 @@
package com.superbiz.agent.harness.application;
import com.fasterxml.jackson.annotation.JsonProperty;
public record SystemChatContent(@JsonProperty("answer") String answer)
implements ChatApplicationContent {
public SystemChatContent {
requireText(answer, "answer");
}
@Override
public ChatContentType contentType() {
return ChatContentType.SYSTEM_CHAT;
}
private static void requireText(String value, String name) {
if (value == null || value.isBlank()) {
throw new IllegalArgumentException(name + " must not be blank");
}
}
}