Class WeComOutboundClient
java.lang.Object
io.agentscope.extensions.channel.wecom.WeComOutboundClient
WeCom outbound HTTP client. Wraps
/cgi-bin/message/send (DM) and
/cgi-bin/appchat/send (app group chat). The first text
content of each Msg is sent.
For text content that contains markdown control characters we send msgtype=markdown;
otherwise plain text. (Heuristic only — callers that explicitly want markdown should already use
markdown syntax in their content.)
-
Constructor Summary
ConstructorsConstructorDescriptionWeComOutboundClient(String apiBase, WeComAccessTokenProvider tokenProvider, int agentId) -
Method Summary
-
Constructor Details
-
WeComOutboundClient
-
-
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 eachmsgto the resolved peer. The address'stofield has the form"channelId:peerKey"wherepeerKeyis"DIRECT:userid"or"GROUP:chatid".
-