Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- AccessTokenStore - Interface in io.agentscope.extensions.channel.common
-
Caches the platform access token of one channel credential.
- allow(String) - Method in class io.agentscope.extensions.channel.common.BotLoopGuard
-
Records an event for
peerKeyand returnstruewhen the peer is within budget (caller may proceed).
B
- BotLoopGuard - Class in io.agentscope.extensions.channel.common
-
Per-peer sliding-window throttle for inbound channel events.
- BotLoopGuard() - Constructor for class io.agentscope.extensions.channel.common.BotLoopGuard
- BotLoopGuard(int, long, long) - Constructor for class io.agentscope.extensions.channel.common.BotLoopGuard
C
- CachedAccessToken - Record Class in io.agentscope.extensions.channel.common
-
A platform access token together with the refresh deadline chosen by the provider that fetched it.
- CachedAccessToken(String, long) - Constructor for record class io.agentscope.extensions.channel.common.CachedAccessToken
-
Creates an instance of a
CachedAccessTokenrecord class. - ChannelMediaMetadata - Class in io.agentscope.extensions.channel.common
-
Metadata key contract for inbound media (image / audio / video / file) messages surfaced by channel inbound mappers.
- clear() - Method in interface io.agentscope.extensions.channel.common.AccessTokenStore
-
Drops the cached token so the owning provider fetches a fresh one on its next call.
- clear() - Method in class io.agentscope.extensions.channel.common.InMemoryAccessTokenStore
D
- DURATION_MS - Static variable in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
Playback duration in milliseconds, as reported by the platform (Feishu and DingTalk both document the field in milliseconds for audio and video messages).
E
- equals(Object) - Method in record class io.agentscope.extensions.channel.common.CachedAccessToken
-
Indicates whether some other object is "equal to" this one.
- evictIdlePeers() - Method in class io.agentscope.extensions.channel.common.BotLoopGuard
-
Removes peers that have recorded no event for longer than
windowMillis + cooldownMillis; by then the sliding window is empty and any cooldown has expired, so an evicted peer simply restarts with a fresh window on its next event.
F
- FILE_NAME - Static variable in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
File name, when the platform reports one.
- firstSeen(String) - Method in class io.agentscope.extensions.channel.common.IdempotencyStore
-
Records
keyas seen. - firstSeen(String) - Method in interface io.agentscope.extensions.channel.common.InboundEventDeduplicator
-
Records
keyand reports whether this is its first observation. - FORMAT - Static variable in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
Container / format token (WeCom voice
Format, DingTalk videovideoType).
G
- get() - Method in interface io.agentscope.extensions.channel.common.AccessTokenStore
-
Returns the cached token.
- get() - Method in class io.agentscope.extensions.channel.common.InMemoryAccessTokenStore
H
- hashCode() - Method in record class io.agentscope.extensions.channel.common.CachedAccessToken
-
Returns a hash code value for this object.
I
- ID - Static variable in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
Primary provider material identifier (
MediaId/image_key/file_key/downloadCode), verbatim. - IdempotencyStore - Class in io.agentscope.extensions.channel.common
-
Bounded in-process implementation of
InboundEventDeduplicator. - IdempotencyStore() - Constructor for class io.agentscope.extensions.channel.common.IdempotencyStore
-
Default 5-minute TTL, 10k entries — sufficient for any single channel's retry burst.
- IdempotencyStore(long, int) - Constructor for class io.agentscope.extensions.channel.common.IdempotencyStore
- InboundEventDeduplicator - Interface in io.agentscope.extensions.channel.common
-
Deduplicates inbound platform events across redeliveries.
- InMemoryAccessTokenStore - Class in io.agentscope.extensions.channel.common
-
In-process
AccessTokenStoreholding a single token entry. - InMemoryAccessTokenStore() - Constructor for class io.agentscope.extensions.channel.common.InMemoryAccessTokenStore
- io.agentscope.extensions.channel.common - package io.agentscope.extensions.channel.common
- isCoolingDown(String) - Method in class io.agentscope.extensions.channel.common.BotLoopGuard
-
Returns
truewhenpeerKeyis currently in cooldown.
K
- KIND - Static variable in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
Normalized media kind — one of
image,audio,video,file. - KIND_AUDIO - Static variable in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
Normalized media kind: audio (voice message).
- KIND_FILE - Static variable in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
Normalized media kind: generic file attachment.
- KIND_IMAGE - Static variable in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
Normalized media kind: image (photo / picture).
- KIND_VIDEO - Static variable in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
Normalized media kind: video, including video-bearing composite messages.
M
- markerText(String, String) - Static method in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
Returns the neutral marker text used as the
Msgtext content of a mapped media message:"[image]","[audio]","[video]", or"[file: report.pdf]"when a file name is available.
P
- PROVIDER_TYPE - Static variable in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
Original provider type token, verbatim (WeCom
MsgType, Feishumessage_type, DingTalkmsgtype) — e.g. - put(CachedAccessToken) - Method in interface io.agentscope.extensions.channel.common.AccessTokenStore
-
Caches
token, replacing any previous entry unconditionally. - put(CachedAccessToken) - Method in class io.agentscope.extensions.channel.common.InMemoryAccessTokenStore
- putIfNewer(CachedAccessToken) - Method in interface io.agentscope.extensions.channel.common.AccessTokenStore
-
Caches
tokenonly when it is fresher than the entry currently held (strictly laterCachedAccessToken.refreshAtMs()), so racing refreshes — expected, as there is no cross-instance lock — cannot pin an older token with an earlier deadline. - putIfNewer(CachedAccessToken) - Method in class io.agentscope.extensions.channel.common.InMemoryAccessTokenStore
- putIfPresent(Map<String, Object>, String, String) - Static method in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
Puts
valueunderkeyonly whenvalueis neithernullnor blank; a null/blank value is silently skipped.
R
- RECOGNITION - Static variable in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
Platform speech-to-text result for audio messages, when the platform provides one.
- refreshAtMs() - Method in record class io.agentscope.extensions.channel.common.CachedAccessToken
-
Returns the value of the
refreshAtMsrecord component.
S
- SECONDARY_ID - Static variable in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
Secondary material identifier when the platform provides one (thumbnail / cover image / picture-specific download code).
- size() - Method in class io.agentscope.extensions.channel.common.IdempotencyStore
-
Returns the current size; mostly for tests/observability.
T
- toString() - Method in record class io.agentscope.extensions.channel.common.CachedAccessToken
-
Returns a string representation of this record class.
- trackedPeers() - Method in class io.agentscope.extensions.channel.common.BotLoopGuard
-
Returns the number of currently tracked peers; mostly for tests/observability.
U
- URL - Static variable in class io.agentscope.extensions.channel.common.ChannelMediaMetadata
-
Directly fetchable URL when the platform provides one alongside the material id (WeCom image
PicUrl).
V
- value() - Method in record class io.agentscope.extensions.channel.common.CachedAccessToken
-
Returns the value of the
valuerecord component.
All Classes and Interfaces|All Packages|Constant Field Values