-
Factory used by ChannelFactory.
WeComChannel.fromProperties(String channelId,
io.agentscope.harness.agent.gateway.channel.ChannelConfig routing,
Map<String,Object> rawProperties,
io.agentscope.extensions.channel.common.InboundEventDeduplicator idempotency)
Factory variant that lets the application supply the InboundEventDeduplicator used
to drop platform redeliveries — for example a shared-storage implementation so duplicates
are recognized across instances.
WeComChannel.fromProperties(String channelId,
io.agentscope.harness.agent.gateway.channel.ChannelConfig routing,
Map<String,Object> rawProperties,
io.agentscope.extensions.channel.common.InboundEventDeduplicator idempotency,
io.agentscope.extensions.channel.common.AccessTokenStore tokenStore)
Factory variant that additionally lets the application supply the AccessTokenStore
caching the outbound access token — for example a shared-storage implementation so one
instance's refresh or invalidation serves the whole deployment.