Class FeishuOutboundClient
java.lang.Object
io.agentscope.extensions.channel.feishu.FeishuOutboundClient
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 bychat_id(we use the chat_id captured from inbound mapping, soreceive_id_type=chat_id)PeerKind.GROUP— group chat addressed bychat_id
-
Constructor Summary
ConstructorsConstructorDescriptionFeishuOutboundClient(String apiBase, FeishuAccessTokenProvider tokenProvider) -
Method Summary
Modifier and TypeMethodDescriptionreactor.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.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.
-
Constructor Details
-
FeishuOutboundClient
-
-
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.
-