Class FeishuOutboundClient

java.lang.Object
io.agentscope.extensions.channel.feishu.FeishuOutboundClient

public final class FeishuOutboundClient extends Object
Feishu outbound HTTP client. Posts a text message via POST /open-apis/im/v1/messages?receive_id_type=(open_id|chat_id).

The receive_id_type is derived from the OutboundAddress peer kind:

  • PeerKind.DIRECT — 1:1 chat addressed by chat_id (we use the chat_id captured from inbound mapping, so receive_id_type=chat_id)
  • PeerKind.GROUP — group chat addressed by chat_id
  • Constructor Details

  • Method Details

    • send

      public reactor.core.publisher.Mono<Void> send(io.agentscope.harness.agent.gateway.channel.OutboundAddress address, List<io.agentscope.core.message.Msg> messages)
      Sends each message to the resolved peer.
    • sendWithReceipt

      public reactor.core.publisher.Mono<String> sendWithReceipt(io.agentscope.harness.agent.gateway.channel.OutboundAddress address, io.agentscope.core.message.Msg msg, String deliveryId)
      Stable deliveryId is forwarded to Feishu for retry deduplication.