mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
refactor(gateway): remove unused abstract methods
This commit is contained in:
@@ -7,13 +7,6 @@ public interface AgentGateway<I extends InputData, C extends RunningFlowContext>
|
||||
|
||||
void launch();
|
||||
|
||||
AgentGatewayRegistration registration();
|
||||
|
||||
@Override
|
||||
default void register() {
|
||||
registration().register();
|
||||
}
|
||||
|
||||
default void receive(I inputData) {
|
||||
C parsedContext = parseRunningFlowContext(inputData);
|
||||
AgentRuntime.INSTANCE.submit(parsedContext);
|
||||
|
||||
@@ -10,9 +10,6 @@ interface ResponseChannel {
|
||||
|
||||
fun response(event: InteractionEvent)
|
||||
|
||||
fun register() {
|
||||
AgentRuntime.registerResponseChannel(channelName, this)
|
||||
}
|
||||
}
|
||||
|
||||
object LogChannel : ResponseChannel {
|
||||
@@ -22,10 +19,6 @@ object LogChannel : ResponseChannel {
|
||||
override val channelName: String
|
||||
get() = "log_channel"
|
||||
|
||||
init {
|
||||
register()
|
||||
}
|
||||
|
||||
override fun response(event: InteractionEvent) {
|
||||
log.info(JSONObject.toJSONString(event))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user