20 lines
530 B
Java
20 lines
530 B
Java
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;
|
|
}
|
|
}
|