feat(harness): add chat application use case
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.superbiz.agent.harness.application;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.superbiz.agent.harness.contract.SafeFallback;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public record FallbackContent(@JsonProperty("fallback") SafeFallback fallback)
|
||||
implements ChatApplicationContent {
|
||||
|
||||
public FallbackContent {
|
||||
Objects.requireNonNull(fallback, "fallback must not be null");
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChatContentType contentType() {
|
||||
return ChatContentType.SAFE_FALLBACK;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user