Index

A B C D E F G H I J L M O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values

A

accessToken() - Method in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Returns the value of the accessToken record component.
applicationId() - Method in record class com.tnsai.channels.discord.DiscordChannelConfig
Returns the value of the applicationId record component.
appSecret() - Method in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Returns the value of the appSecret record component.
appToken() - Method in record class com.tnsai.channels.slack.SlackChannelConfig
Returns the value of the appToken record component.
Attachment - Record Class in com.tnsai.channels.model
A file or media item attached to a message or response.
Attachment(String, String, String, byte[], long, Attachment.AttachmentType) - Constructor for record class com.tnsai.channels.model.Attachment
Creates an instance of a Attachment record class.
Attachment.AttachmentType - Enum Class in com.tnsai.channels.model
 
attachments() - Method in record class com.tnsai.channels.api.UnifiedMessage
Returns the value of the attachments record component.
attachments() - Method in record class com.tnsai.channels.api.UnifiedResponse
Returns the value of the attachments record component.
attachments(List<Attachment>) - Method in class com.tnsai.channels.api.UnifiedMessage.Builder
 
attachments(List<Attachment>) - Method in class com.tnsai.channels.api.UnifiedResponse.Builder
 
AUDIO - Enum constant in enum class com.tnsai.channels.model.Attachment.AttachmentType
 

B

botToken() - Method in record class com.tnsai.channels.discord.DiscordChannelConfig
Returns the value of the botToken record component.
botToken() - Method in record class com.tnsai.channels.slack.SlackChannelConfig
Returns the value of the botToken record component.
build() - Method in class com.tnsai.channels.api.ChannelCapabilities.Builder
 
build() - Method in class com.tnsai.channels.api.UnifiedMessage.Builder
 
build() - Method in class com.tnsai.channels.api.UnifiedResponse.Builder
 
builder() - Static method in record class com.tnsai.channels.api.ChannelCapabilities
 
builder() - Static method in record class com.tnsai.channels.api.UnifiedMessage
 
builder() - Static method in record class com.tnsai.channels.api.UnifiedResponse
 

C

capabilities() - Method in interface com.tnsai.channels.api.ChannelAdapter
Declares what this channel supports.
capabilities() - Method in class com.tnsai.channels.cli.CliChannel
 
capabilities() - Method in class com.tnsai.channels.discord.DiscordChannel
 
capabilities() - Method in class com.tnsai.channels.email.EmailChannel
 
capabilities() - Method in class com.tnsai.channels.slack.SlackChannel
 
capabilities() - Method in class com.tnsai.channels.telegram.TelegramAdapter
 
capabilities() - Method in class com.tnsai.channels.whatsapp.WhatsAppChannel
 
cause() - Method in record class com.tnsai.channels.model.ChannelError
Returns the value of the cause record component.
Channel - Annotation Interface in com.tnsai.channels.annotation
Marks a class as a channel adapter implementation.
ChannelAdapter - Interface in com.tnsai.channels.api
Core contract for messaging channel integrations.
ChannelAdapterFactory - Interface in com.tnsai.channels.api
SPI factory for creating channel adapters.
ChannelCapabilities - Record Class in com.tnsai.channels.api
Declares what a channel adapter supports.
ChannelCapabilities(boolean, boolean, boolean, boolean, boolean, boolean, boolean, long) - Constructor for record class com.tnsai.channels.api.ChannelCapabilities
Creates an instance of a ChannelCapabilities record class.
ChannelCapabilities.Builder - Class in com.tnsai.channels.api
 
ChannelContext - Interface in com.tnsai.channels.api
ChannelDiscovery - Class in com.tnsai.channels.api
Utility for discovering available channel adapter factories via SPI.
ChannelError - Record Class in com.tnsai.channels.model
Represents an error that occurred within a channel adapter.
ChannelError(String, ChannelError.Severity, String, Throwable, Instant) - Constructor for record class com.tnsai.channels.model.ChannelError
Creates an instance of a ChannelError record class.
ChannelError.Severity - Enum Class in com.tnsai.channels.model
 
channelId() - Method in record class com.tnsai.channels.api.ChannelScopedId
Returns the value of the channelId record component.
channelId() - Method in record class com.tnsai.channels.api.UnifiedMessage
Returns the value of the channelId record component.
channelId() - Method in record class com.tnsai.channels.api.UnifiedResponse
Returns the value of the channelId record component.
channelId() - Method in record class com.tnsai.channels.model.ChannelError
Returns the value of the channelId record component.
channelId() - Method in record class com.tnsai.channels.routing.SessionRegistry.ChannelSession
Returns the value of the channelId record component.
channelId(String) - Method in class com.tnsai.channels.api.UnifiedMessage.Builder
 
channelId(String) - Method in class com.tnsai.channels.api.UnifiedResponse.Builder
 
ChannelRegistry - Class in com.tnsai.channels.registry
Discovers and manages channel adapter lifecycle via SPI.
ChannelRegistry() - Constructor for class com.tnsai.channels.registry.ChannelRegistry
 
ChannelScopedId - Record Class in com.tnsai.channels.api
Strongly-typed identity for "this user, on this channel" — a value type replacing the channelId + ":" + senderId string concat that used to live in every adapter and every consumer.
ChannelScopedId(String, String) - Constructor for record class com.tnsai.channels.api.ChannelScopedId
Creates an instance of a ChannelScopedId record class.
ChannelSession(String, String, String, Instant, Instant) - Constructor for record class com.tnsai.channels.routing.SessionRegistry.ChannelSession
Creates an instance of a ChannelSession record class.
ChannelState - Enum Class in com.tnsai.channels.enums
Lifecycle state of a channel adapter.
CliChannel - Class in com.tnsai.channels.cli
Command-line channel adapter.
CliChannel() - Constructor for class com.tnsai.channels.cli.CliChannel
Default constructor used by the SPI factory: REPL mode reading from System.in and writing to System.out.
CliChannel(CliChannel.Mode, BufferedReader, PrintStream) - Constructor for class com.tnsai.channels.cli.CliChannel
Constructor for tests or custom wiring (e.g. piping through JLine).
CliChannel.Mode - Enum Class in com.tnsai.channels.cli
REPL = interactive prompt; JSON = newline-delimited JSON for scripting.
CliChannelFactory - Class in com.tnsai.channels.cli
SPI factory for CliChannel.
CliChannelFactory() - Constructor for class com.tnsai.channels.cli.CliChannelFactory
 
com.tnsai.channels.annotation - package com.tnsai.channels.annotation
 
com.tnsai.channels.api - package com.tnsai.channels.api
 
com.tnsai.channels.cli - package com.tnsai.channels.cli
 
com.tnsai.channels.discord - package com.tnsai.channels.discord
 
com.tnsai.channels.email - package com.tnsai.channels.email
 
com.tnsai.channels.enums - package com.tnsai.channels.enums
 
com.tnsai.channels.model - package com.tnsai.channels.model
 
com.tnsai.channels.registry - package com.tnsai.channels.registry
 
com.tnsai.channels.routing - package com.tnsai.channels.routing
 
com.tnsai.channels.slack - package com.tnsai.channels.slack
 
com.tnsai.channels.telegram - package com.tnsai.channels.telegram
 
com.tnsai.channels.whatsapp - package com.tnsai.channels.whatsapp
 
conversationId() - Method in record class com.tnsai.channels.api.UnifiedChunk
Returns the value of the conversationId record component.
conversationId() - Method in record class com.tnsai.channels.api.UnifiedMessage
Returns the value of the conversationId record component.
conversationId() - Method in record class com.tnsai.channels.api.UnifiedResponse
Returns the value of the conversationId record component.
conversationId() - Method in record class com.tnsai.channels.routing.SessionRegistry.ChannelSession
Returns the value of the conversationId record component.
conversationId(String) - Method in class com.tnsai.channels.api.UnifiedMessage.Builder
 
conversationId(String) - Method in class com.tnsai.channels.api.UnifiedResponse.Builder
 
create(Object) - Method in interface com.tnsai.channels.api.ChannelAdapterFactory
Creates a new adapter instance with the given configuration.
create(Object) - Method in class com.tnsai.channels.cli.CliChannelFactory
 
create(Object) - Method in class com.tnsai.channels.discord.DiscordChannelFactory
 
create(Object) - Method in class com.tnsai.channels.email.EmailChannelFactory
 
create(Object) - Method in class com.tnsai.channels.slack.SlackChannelFactory
 
create(Object) - Method in class com.tnsai.channels.telegram.TelegramAdapterFactory
 
create(Object) - Method in class com.tnsai.channels.whatsapp.WhatsAppChannelFactory
 
createdAt() - Method in record class com.tnsai.channels.routing.SessionRegistry.ChannelSession
Returns the value of the createdAt record component.

D

data() - Method in record class com.tnsai.channels.model.Attachment
Returns the value of the data record component.
DEFAULT_BIND_ADDRESS - Static variable in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Default bind address — loopback only; production is fronted by a reverse proxy.
DEFAULT_GRAPH_BASE_URL - Static variable in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Default Graph API base URL — v18.0.
DEFAULT_IMAP_PORT - Static variable in record class com.tnsai.channels.email.EmailChannelConfig
Default IMAPS port.
DEFAULT_INTENTS - Static variable in record class com.tnsai.channels.discord.DiscordChannelConfig
GUILDS (1) | GUILD_MESSAGES (512) | DIRECT_MESSAGES (4096) | MESSAGE_CONTENT (32768).
DEFAULT_POLL_INTERVAL - Static variable in record class com.tnsai.channels.email.EmailChannelConfig
Default poll interval — 60 seconds, per TNS-354 acceptance ("5 minute response").
DEFAULT_RECONNECT_INITIAL - Static variable in record class com.tnsai.channels.discord.DiscordChannelConfig
Default initial reconnect delay — 1s.
DEFAULT_RECONNECT_INITIAL - Static variable in record class com.tnsai.channels.slack.SlackChannelConfig
Default initial reconnect delay — 1s.
DEFAULT_RECONNECT_MAX - Static variable in record class com.tnsai.channels.discord.DiscordChannelConfig
Default max reconnect delay — 60s.
DEFAULT_RECONNECT_MAX - Static variable in record class com.tnsai.channels.slack.SlackChannelConfig
Default max reconnect delay — 60s.
DEFAULT_REST_BASE_URL - Static variable in record class com.tnsai.channels.discord.DiscordChannelConfig
Default base URL for the Discord REST API (v10).
DEFAULT_SMTP_PORT - Static variable in record class com.tnsai.channels.email.EmailChannelConfig
Default SMTP+STARTTLS port.
DEFAULT_WEB_API_BASE_URL - Static variable in record class com.tnsai.channels.slack.SlackChannelConfig
Default base URL for the Slack Web API.
DEFAULT_WEBHOOK_PATH - Static variable in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Default webhook URL path.
DEFAULT_WEBHOOK_PORT - Static variable in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Default webhook port. 8443 stays out of the 80/443 reserved range.
defaults() - Static method in record class com.tnsai.channels.model.ResponseHints
 
degraded(String, String, Throwable) - Static method in record class com.tnsai.channels.model.ChannelError
 
DEGRADED - Enum constant in enum class com.tnsai.channels.enums.ChannelState
Temporarily degraded (e.g. rate limited, reconnecting).
DEGRADED - Enum constant in enum class com.tnsai.channels.model.ChannelError.Severity
 
delta() - Method in record class com.tnsai.channels.api.UnifiedChunk
Returns the value of the delta record component.
DiscordChannel - Class in com.tnsai.channels.discord
Discord channel adapter using the Gateway WebSocket + REST API (TNS-351).
DiscordChannel() - Constructor for class com.tnsai.channels.discord.DiscordChannel
Default constructor — bootstraps from DiscordChannelConfig.fromEnvironment().
DiscordChannel(DiscordChannelConfig) - Constructor for class com.tnsai.channels.discord.DiscordChannel
Programmatic constructor — used by the factory.
DiscordChannelConfig - Record Class in com.tnsai.channels.discord
Configuration for DiscordChannel.
DiscordChannelConfig(String, String, String, int, Duration, Duration) - Constructor for record class com.tnsai.channels.discord.DiscordChannelConfig
Creates an instance of a DiscordChannelConfig record class.
DiscordChannelFactory - Class in com.tnsai.channels.discord
SPI factory for DiscordChannel.
DiscordChannelFactory() - Constructor for class com.tnsai.channels.discord.DiscordChannelFactory
 
discoverAdapters() - Method in class com.tnsai.channels.registry.ChannelRegistry
Discovers adapters on the classpath via ServiceLoader.
discoverAllFactories() - Static method in class com.tnsai.channels.api.ChannelDiscovery
Discovers all registered channel adapter factories, regardless of availability.
discoverFactories() - Static method in class com.tnsai.channels.api.ChannelDiscovery
Discovers all available channel adapter factories on the classpath.
displayName() - Element in annotation interface com.tnsai.channels.annotation.Channel
Human-readable name shown in logs and UI.
displayName() - Method in interface com.tnsai.channels.api.ChannelAdapter
Human-readable display name.
displayName() - Method in class com.tnsai.channels.cli.CliChannel
 
displayName() - Method in class com.tnsai.channels.discord.DiscordChannel
 
displayName() - Method in class com.tnsai.channels.email.EmailChannel
 
displayName() - Method in class com.tnsai.channels.slack.SlackChannel
 
displayName() - Method in class com.tnsai.channels.telegram.TelegramAdapter
 
displayName() - Method in class com.tnsai.channels.whatsapp.WhatsAppChannel
 
DOCUMENT - Enum constant in enum class com.tnsai.channels.model.Attachment.AttachmentType
 
done() - Method in record class com.tnsai.channels.api.UnifiedChunk
Returns the value of the done record component.
done(String) - Static method in record class com.tnsai.channels.api.UnifiedChunk
Convenience: terminal chunk with no further text, timestamped now.

E

editing() - Method in record class com.tnsai.channels.api.ChannelCapabilities
Returns the value of the editing record component.
editing(boolean) - Method in class com.tnsai.channels.api.ChannelCapabilities.Builder
 
EmailChannel - Class in com.tnsai.channels.email
Email channel adapter (IMAP poll + SMTP send) for TnsAI agents.
EmailChannel() - Constructor for class com.tnsai.channels.email.EmailChannel
Default constructor — uses EmailChannelConfig.fromEnvironment() when started.
EmailChannel(EmailChannelConfig) - Constructor for class com.tnsai.channels.email.EmailChannel
Programmatic constructor — used by the factory when explicit config is supplied.
EmailChannelConfig - Record Class in com.tnsai.channels.email
Configuration for EmailChannel.
EmailChannelConfig(String, int, String, String, boolean, String, String, int, String, String, boolean, String, Set<String>, Duration) - Constructor for record class com.tnsai.channels.email.EmailChannelConfig
Creates an instance of a EmailChannelConfig record class.
EmailChannelFactory - Class in com.tnsai.channels.email
SPI factory for EmailChannel.
EmailChannelFactory() - Constructor for class com.tnsai.channels.email.EmailChannelFactory
 
equals(Object) - Method in record class com.tnsai.channels.api.ChannelCapabilities
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.channels.api.ChannelScopedId
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.channels.api.UnifiedChunk
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.channels.api.UnifiedMessage
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.channels.api.UnifiedResponse
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.channels.discord.DiscordChannelConfig
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.channels.email.EmailChannelConfig
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.channels.model.Attachment
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.channels.model.ChannelError
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.channels.model.MessageMeta
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.channels.model.ResponseHints
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.channels.routing.SessionRegistry.ChannelSession
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.channels.slack.SlackChannelConfig
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Indicates whether some other object is "equal to" this one.
extra() - Method in record class com.tnsai.channels.model.MessageMeta
Returns the value of the extra record component.

F

FAILED - Enum constant in enum class com.tnsai.channels.enums.ChannelState
Failed to start or encountered a fatal error.
fatal(String, String, Throwable) - Static method in record class com.tnsai.channels.model.ChannelError
 
FATAL - Enum constant in enum class com.tnsai.channels.model.ChannelError.Severity
 
fileName() - Method in record class com.tnsai.channels.model.Attachment
Returns the value of the fileName record component.
fileUpload() - Method in record class com.tnsai.channels.api.ChannelCapabilities
Returns the value of the fileUpload record component.
fileUpload(boolean) - Method in class com.tnsai.channels.api.ChannelCapabilities.Builder
 
fromAddress() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns the value of the fromAddress record component.
fromEnvironment() - Static method in record class com.tnsai.channels.discord.DiscordChannelConfig
Populate from environment variables.
fromEnvironment() - Static method in record class com.tnsai.channels.email.EmailChannelConfig
Populate from environment variables.
fromEnvironment() - Static method in record class com.tnsai.channels.slack.SlackChannelConfig
Populate from environment variables.
fromEnvironment() - Static method in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Populate from environment variables.

G

get(String) - Method in class com.tnsai.channels.registry.ChannelRegistry
 
get(String) - Method in class com.tnsai.channels.routing.SessionRegistry
 
getAll() - Method in class com.tnsai.channels.routing.SessionRegistry
 
getAllAdapters() - Method in class com.tnsai.channels.registry.ChannelRegistry
 
getDisplayName() - Method in interface com.tnsai.channels.api.ChannelAdapterFactory
Human-readable display name for UI and logging.
getDisplayName() - Method in class com.tnsai.channels.cli.CliChannelFactory
 
getDisplayName() - Method in class com.tnsai.channels.discord.DiscordChannelFactory
 
getDisplayName() - Method in class com.tnsai.channels.email.EmailChannelFactory
 
getDisplayName() - Method in class com.tnsai.channels.slack.SlackChannelFactory
 
getDisplayName() - Method in class com.tnsai.channels.telegram.TelegramAdapterFactory
 
getDisplayName() - Method in class com.tnsai.channels.whatsapp.WhatsAppChannelFactory
 
getRegisteredIds() - Method in class com.tnsai.channels.registry.ChannelRegistry
 
getSessions() - Method in class com.tnsai.channels.routing.MessageRouter
 
getState(String) - Method in class com.tnsai.channels.registry.ChannelRegistry
 
getType() - Method in interface com.tnsai.channels.api.ChannelAdapterFactory
Unique type identifier for this channel (e.g.
getType() - Method in class com.tnsai.channels.cli.CliChannelFactory
 
getType() - Method in class com.tnsai.channels.discord.DiscordChannelFactory
 
getType() - Method in class com.tnsai.channels.email.EmailChannelFactory
 
getType() - Method in class com.tnsai.channels.slack.SlackChannelFactory
 
getType() - Method in class com.tnsai.channels.telegram.TelegramAdapterFactory
 
getType() - Method in class com.tnsai.channels.whatsapp.WhatsAppChannelFactory
 
graphBaseUrl() - Method in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Returns the value of the graphBaseUrl record component.

H

hashCode() - Method in record class com.tnsai.channels.api.ChannelCapabilities
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.channels.api.ChannelScopedId
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.channels.api.UnifiedChunk
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.channels.api.UnifiedMessage
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.channels.api.UnifiedResponse
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.channels.discord.DiscordChannelConfig
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.channels.model.Attachment
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.channels.model.ChannelError
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.channels.model.MessageMeta
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.channels.model.ResponseHints
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.channels.routing.SessionRegistry.ChannelSession
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.channels.slack.SlackChannelConfig
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Returns a hash code value for this object.
hints() - Method in record class com.tnsai.channels.api.UnifiedResponse
Returns the value of the hints record component.
hints(ResponseHints) - Method in class com.tnsai.channels.api.UnifiedResponse.Builder
 

I

id() - Element in annotation interface com.tnsai.channels.annotation.Channel
Unique channel identifier (e.g.
id() - Method in interface com.tnsai.channels.api.ChannelAdapter
Unique identifier for this channel (e.g.
id() - Method in class com.tnsai.channels.cli.CliChannel
 
id() - Method in class com.tnsai.channels.discord.DiscordChannel
 
id() - Method in class com.tnsai.channels.email.EmailChannel
 
id() - Method in class com.tnsai.channels.slack.SlackChannel
 
id() - Method in class com.tnsai.channels.telegram.TelegramAdapter
 
id() - Method in class com.tnsai.channels.whatsapp.WhatsAppChannel
 
IMAGE - Enum constant in enum class com.tnsai.channels.model.Attachment.AttachmentType
 
imapFolder() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns the value of the imapFolder record component.
imapHost() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns the value of the imapHost record component.
imapPassword() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns the value of the imapPassword record component.
imapPort() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns the value of the imapPort record component.
imapSsl() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns the value of the imapSsl record component.
imapUser() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns the value of the imapUser record component.
intents() - Method in record class com.tnsai.channels.discord.DiscordChannelConfig
Returns the value of the intents record component.
isAllowed(String) - Method in record class com.tnsai.channels.email.EmailChannelConfig
true when the From address is on the allowlist.
isAvailable() - Method in interface com.tnsai.channels.api.ChannelAdapterFactory
Whether the required platform SDK classes are on the classpath.
isAvailable() - Method in class com.tnsai.channels.cli.CliChannelFactory
 
isAvailable() - Method in class com.tnsai.channels.discord.DiscordChannelFactory
 
isAvailable() - Method in class com.tnsai.channels.email.EmailChannelFactory
 
isAvailable() - Method in class com.tnsai.channels.slack.SlackChannelFactory
 
isAvailable() - Method in class com.tnsai.channels.telegram.TelegramAdapterFactory
 
isAvailable() - Method in class com.tnsai.channels.whatsapp.WhatsAppChannelFactory
 
isRunning() - Method in interface com.tnsai.channels.api.ChannelAdapter
Whether the adapter is currently connected and operational.
isRunning() - Method in class com.tnsai.channels.cli.CliChannel
 
isRunning() - Method in class com.tnsai.channels.discord.DiscordChannel
 
isRunning() - Method in class com.tnsai.channels.email.EmailChannel
 
isRunning() - Method in class com.tnsai.channels.slack.SlackChannel
 
isRunning() - Method in class com.tnsai.channels.telegram.TelegramAdapter
 
isRunning() - Method in class com.tnsai.channels.whatsapp.WhatsAppChannel
 

J

JSON - Enum constant in enum class com.tnsai.channels.cli.CliChannel.Mode
 

L

lastActive() - Method in record class com.tnsai.channels.routing.SessionRegistry.ChannelSession
Returns the value of the lastActive record component.

M

maxMessageLength() - Method in record class com.tnsai.channels.api.ChannelCapabilities
Returns the value of the maxMessageLength record component.
maxMessageLength(long) - Method in class com.tnsai.channels.api.ChannelCapabilities.Builder
 
message() - Method in record class com.tnsai.channels.model.ChannelError
Returns the value of the message record component.
MessageMeta - Record Class in com.tnsai.channels.model
Optional platform-specific metadata carried alongside a UnifiedMessage.
MessageMeta(String, String, String, Map<String, String>) - Constructor for record class com.tnsai.channels.model.MessageMeta
Creates an instance of a MessageMeta record class.
MessageRouter - Class in com.tnsai.channels.routing
Routes inbound messages from channel adapters to agent sessions and delivers agent responses back to the originating channel.
MessageRouter(ChannelRegistry) - Constructor for class com.tnsai.channels.routing.MessageRouter
 
MessageRouter.ResponseCallback - Interface in com.tnsai.channels.routing
Callback interface for delivering responses from the agent layer.
meta() - Method in record class com.tnsai.channels.api.UnifiedMessage
Returns the value of the meta record component.
meta(MessageMeta) - Method in class com.tnsai.channels.api.UnifiedMessage.Builder
 
metadata() - Method in record class com.tnsai.channels.api.UnifiedChunk
Returns the value of the metadata record component.
mimeType() - Method in record class com.tnsai.channels.model.Attachment
Returns the value of the mimeType record component.
Modes - Search tag in class com.tnsai.channels.cli.CliChannel
Section

O

of(UnifiedMessage) - Static method in record class com.tnsai.channels.api.ChannelScopedId
Convenience factory: pull channelId + senderId out of an inbound UnifiedMessage.
of(String) - Static method in record class com.tnsai.channels.model.MessageMeta
 
ofData(String, String, byte[], Attachment.AttachmentType) - Static method in record class com.tnsai.channels.model.Attachment
 
ofUrl(String, String, String, Attachment.AttachmentType) - Static method in record class com.tnsai.channels.model.Attachment
 
onError(ChannelError) - Method in interface com.tnsai.channels.api.ChannelContext
Called when the adapter encounters an error.
onError(ChannelError) - Method in class com.tnsai.channels.routing.MessageRouter
 
onMessage(UnifiedMessage) - Method in interface com.tnsai.channels.api.ChannelContext
Called when a message arrives from the channel.
onMessage(UnifiedMessage) - Method in class com.tnsai.channels.routing.MessageRouter
 
onTyping(String) - Method in interface com.tnsai.channels.api.ChannelContext
Called when the remote user starts typing.
onTyping(String) - Method in class com.tnsai.channels.routing.MessageRouter
 
OTHER - Enum constant in enum class com.tnsai.channels.model.Attachment.AttachmentType
 

P

parse(String) - Static method in record class com.tnsai.channels.api.ChannelScopedId
Parse a string previously produced by ChannelScopedId.toKey().
phoneNumberId() - Method in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Returns the value of the phoneNumberId record component.
platformMessageId() - Method in record class com.tnsai.channels.model.MessageMeta
Returns the value of the platformMessageId record component.
pollInterval() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns the value of the pollInterval record component.

R

reactions() - Method in record class com.tnsai.channels.api.ChannelCapabilities
Returns the value of the reactions record component.
reactions(boolean) - Method in class com.tnsai.channels.api.ChannelCapabilities.Builder
 
reapIdle(Duration) - Method in class com.tnsai.channels.routing.SessionRegistry
Removes sessions that have been idle longer than the given threshold.
reconnectInitialBackoff() - Method in record class com.tnsai.channels.discord.DiscordChannelConfig
Returns the value of the reconnectInitialBackoff record component.
reconnectInitialBackoff() - Method in record class com.tnsai.channels.slack.SlackChannelConfig
Returns the value of the reconnectInitialBackoff record component.
reconnectMaxBackoff() - Method in record class com.tnsai.channels.discord.DiscordChannelConfig
Returns the value of the reconnectMaxBackoff record component.
reconnectMaxBackoff() - Method in record class com.tnsai.channels.slack.SlackChannelConfig
Returns the value of the reconnectMaxBackoff record component.
register(ChannelAdapter) - Method in class com.tnsai.channels.registry.ChannelRegistry
Registers an adapter programmatically.
REGISTERED - Enum constant in enum class com.tnsai.channels.enums.ChannelState
Registered but not yet started.
remove(String) - Method in class com.tnsai.channels.routing.SessionRegistry
 
REPL - Enum constant in enum class com.tnsai.channels.cli.CliChannel.Mode
 
reply(String, String) - Static method in record class com.tnsai.channels.model.MessageMeta
 
replyTo(String) - Static method in record class com.tnsai.channels.model.ResponseHints
 
replyToMessageId() - Method in record class com.tnsai.channels.model.MessageMeta
Returns the value of the replyToMessageId record component.
replyToMessageId() - Method in record class com.tnsai.channels.model.ResponseHints
Returns the value of the replyToMessageId record component.
ResponseHints - Record Class in com.tnsai.channels.model
Hints for how the channel adapter should deliver a response.
ResponseHints(boolean, boolean, boolean, String) - Constructor for record class com.tnsai.channels.model.ResponseHints
Creates an instance of a ResponseHints record class.
restBaseUrl() - Method in record class com.tnsai.channels.discord.DiscordChannelConfig
Returns the value of the restBaseUrl record component.
RUNNING - Enum constant in enum class com.tnsai.channels.enums.ChannelState
Running and accepting messages.

S

scopedId() - Method in record class com.tnsai.channels.api.UnifiedMessage
Convenience: typed identity for "this user, on this channel".
send(UnifiedResponse) - Method in interface com.tnsai.channels.api.ChannelAdapter
Send a response back through this channel.
send(UnifiedResponse) - Method in class com.tnsai.channels.cli.CliChannel
 
send(UnifiedResponse) - Method in class com.tnsai.channels.discord.DiscordChannel
 
send(UnifiedResponse) - Method in class com.tnsai.channels.email.EmailChannel
 
send(UnifiedResponse) - Method in interface com.tnsai.channels.routing.MessageRouter.ResponseCallback
 
send(UnifiedResponse) - Method in class com.tnsai.channels.slack.SlackChannel
 
send(UnifiedResponse) - Method in class com.tnsai.channels.telegram.TelegramAdapter
 
send(UnifiedResponse) - Method in class com.tnsai.channels.whatsapp.WhatsAppChannel
 
sendChunk(UnifiedChunk) - Method in interface com.tnsai.channels.api.StreamingChannelAdapter
Deliver one UnifiedChunk to the channel.
sendChunk(UnifiedChunk) - Method in class com.tnsai.channels.cli.CliChannel
 
senderAllowlist() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns the value of the senderAllowlist record component.
senderId() - Method in record class com.tnsai.channels.api.ChannelScopedId
Returns the value of the senderId record component.
senderId() - Method in record class com.tnsai.channels.api.UnifiedMessage
Returns the value of the senderId record component.
senderId(String) - Method in class com.tnsai.channels.api.UnifiedMessage.Builder
 
senderName() - Method in record class com.tnsai.channels.api.UnifiedMessage
Returns the value of the senderName record component.
senderName(String) - Method in class com.tnsai.channels.api.UnifiedMessage.Builder
 
Senders with colons - Search tag in record class com.tnsai.channels.api.ChannelScopedId
Section
sendProactive(String, String, String) - Method in class com.tnsai.channels.routing.MessageRouter
Sends a proactive message to a specific channel and conversation.
SEPARATOR - Static variable in record class com.tnsai.channels.api.ChannelScopedId
Canonical separator between channelId and senderId.
sessionKey() - Method in record class com.tnsai.channels.api.UnifiedMessage
Convenience: unique session key combining channel and conversation.
sessionKey() - Method in record class com.tnsai.channels.routing.SessionRegistry.ChannelSession
Returns the value of the sessionKey record component.
SessionRegistry - Class in com.tnsai.channels.routing
Tracks active channel sessions.
SessionRegistry() - Constructor for class com.tnsai.channels.routing.SessionRegistry
 
SessionRegistry.ChannelSession - Record Class in com.tnsai.channels.routing
Represents an active channel session.
setMessageHandler(BiConsumer<UnifiedMessage, MessageRouter.ResponseCallback>) - Method in class com.tnsai.channels.routing.MessageRouter
Sets the handler that processes inbound messages.
severity() - Method in record class com.tnsai.channels.model.ChannelError
Returns the value of the severity record component.
showTyping() - Method in record class com.tnsai.channels.model.ResponseHints
Returns the value of the showTyping record component.
size() - Method in class com.tnsai.channels.routing.SessionRegistry
 
sizeBytes() - Method in record class com.tnsai.channels.model.Attachment
Returns the value of the sizeBytes record component.
SlackChannel - Class in com.tnsai.channels.slack
Slack channel adapter using Socket Mode (TNS-350).
SlackChannel() - Constructor for class com.tnsai.channels.slack.SlackChannel
Default constructor — bootstraps from SlackChannelConfig.fromEnvironment().
SlackChannel(SlackChannelConfig) - Constructor for class com.tnsai.channels.slack.SlackChannel
Programmatic constructor — used by the factory and tests.
SlackChannelConfig - Record Class in com.tnsai.channels.slack
Configuration for SlackChannel.
SlackChannelConfig(String, String, String, Duration, Duration) - Constructor for record class com.tnsai.channels.slack.SlackChannelConfig
Creates an instance of a SlackChannelConfig record class.
SlackChannelFactory - Class in com.tnsai.channels.slack
SPI factory for SlackChannel.
SlackChannelFactory() - Constructor for class com.tnsai.channels.slack.SlackChannelFactory
 
smtpHost() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns the value of the smtpHost record component.
smtpPassword() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns the value of the smtpPassword record component.
smtpPort() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns the value of the smtpPort record component.
smtpStartTls() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns the value of the smtpStartTls record component.
smtpUser() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns the value of the smtpUser record component.
splitLongMessages() - Method in record class com.tnsai.channels.model.ResponseHints
Returns the value of the splitLongMessages record component.
start(ChannelContext) - Method in interface com.tnsai.channels.api.ChannelAdapter
Start listening for inbound messages.
start(ChannelContext) - Method in class com.tnsai.channels.cli.CliChannel
 
start(ChannelContext) - Method in class com.tnsai.channels.discord.DiscordChannel
 
start(ChannelContext) - Method in class com.tnsai.channels.email.EmailChannel
 
start(ChannelContext) - Method in class com.tnsai.channels.slack.SlackChannel
 
start(ChannelContext) - Method in class com.tnsai.channels.telegram.TelegramAdapter
 
start(ChannelContext) - Method in class com.tnsai.channels.whatsapp.WhatsAppChannel
 
startAdapter(String, ChannelContext) - Method in class com.tnsai.channels.registry.ChannelRegistry
Starts a specific adapter with the given context.
startAll(ChannelContext) - Method in class com.tnsai.channels.registry.ChannelRegistry
Starts all registered adapters.
STARTING - Enum constant in enum class com.tnsai.channels.enums.ChannelState
Currently starting up (connecting to platform).
STICKER - Enum constant in enum class com.tnsai.channels.model.Attachment.AttachmentType
 
stop() - Method in interface com.tnsai.channels.api.ChannelAdapter
Stop listening and release resources.
stop() - Method in class com.tnsai.channels.cli.CliChannel
 
stop() - Method in class com.tnsai.channels.discord.DiscordChannel
 
stop() - Method in class com.tnsai.channels.email.EmailChannel
 
stop() - Method in class com.tnsai.channels.slack.SlackChannel
 
stop() - Method in class com.tnsai.channels.telegram.TelegramAdapter
 
stop() - Method in class com.tnsai.channels.whatsapp.WhatsAppChannel
 
stopAdapter(String) - Method in class com.tnsai.channels.registry.ChannelRegistry
Stops a specific adapter.
stopAll() - Method in class com.tnsai.channels.registry.ChannelRegistry
Stops all running adapters.
STOPPED - Enum constant in enum class com.tnsai.channels.enums.ChannelState
Stopped and no longer accepting messages.
STOPPING - Enum constant in enum class com.tnsai.channels.enums.ChannelState
Shutting down.
streaming() - Method in record class com.tnsai.channels.api.ChannelCapabilities
Returns the value of the streaming record component.
streaming() - Method in record class com.tnsai.channels.model.ResponseHints
Returns the value of the streaming record component.
streaming(boolean) - Method in class com.tnsai.channels.api.ChannelCapabilities.Builder
 
Streaming - Search tag in class com.tnsai.channels.cli.CliChannel
Section
StreamingChannelAdapter - Interface in com.tnsai.channels.api
Optional mixin for ChannelAdapter implementations that can surface per-chunk deltas as an agent generates them (TNS-440).

T

TelegramAdapter - Class in com.tnsai.channels.telegram
Telegram Bot API adapter using long-polling.
TelegramAdapter() - Constructor for class com.tnsai.channels.telegram.TelegramAdapter
 
TelegramAdapterFactory - Class in com.tnsai.channels.telegram
SPI factory for creating TelegramAdapter instances.
TelegramAdapterFactory() - Constructor for class com.tnsai.channels.telegram.TelegramAdapterFactory
 
text() - Method in record class com.tnsai.channels.api.UnifiedMessage
Returns the value of the text record component.
text() - Method in record class com.tnsai.channels.api.UnifiedResponse
Returns the value of the text record component.
text(String) - Method in class com.tnsai.channels.api.UnifiedMessage.Builder
 
text(String) - Method in class com.tnsai.channels.api.UnifiedResponse.Builder
 
text(String, String) - Static method in record class com.tnsai.channels.api.UnifiedChunk
Convenience: text chunk with no metadata, timestamped now.
threadId() - Method in record class com.tnsai.channels.model.MessageMeta
Returns the value of the threadId record component.
threads() - Method in record class com.tnsai.channels.api.ChannelCapabilities
Returns the value of the threads record component.
threads(boolean) - Method in class com.tnsai.channels.api.ChannelCapabilities.Builder
 
Thread safety - Search tag in class com.tnsai.channels.cli.CliChannel
Section
timestamp() - Method in record class com.tnsai.channels.api.UnifiedChunk
Returns the value of the timestamp record component.
timestamp() - Method in record class com.tnsai.channels.api.UnifiedMessage
Returns the value of the timestamp record component.
timestamp() - Method in record class com.tnsai.channels.model.ChannelError
Returns the value of the timestamp record component.
timestamp(Instant) - Method in class com.tnsai.channels.api.UnifiedMessage.Builder
 
toKey() - Method in record class com.tnsai.channels.api.ChannelScopedId
Canonical wire / log / map-key form: channelId + ":" + senderId.
toString() - Method in record class com.tnsai.channels.api.ChannelCapabilities
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.channels.api.ChannelScopedId
Same string as ChannelScopedId.toKey() — convenient for log lines (log.info("user {}", scopedId)) and string concat without forcing every call site to remember to call toKey().
toString() - Method in record class com.tnsai.channels.api.UnifiedChunk
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.channels.api.UnifiedMessage
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.channels.api.UnifiedResponse
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.channels.discord.DiscordChannelConfig
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.channels.email.EmailChannelConfig
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.channels.model.Attachment
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.channels.model.ChannelError
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.channels.model.MessageMeta
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.channels.model.ResponseHints
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.channels.routing.SessionRegistry.ChannelSession
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.channels.slack.SlackChannelConfig
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Returns a string representation of this record class.
touch(String, String, String) - Method in class com.tnsai.channels.routing.SessionRegistry
Updates the last-active timestamp for a session, creating it if needed.
TRANSIENT - Enum constant in enum class com.tnsai.channels.model.ChannelError.Severity
 
transient_(String, String, Throwable) - Static method in record class com.tnsai.channels.model.ChannelError
 
type() - Method in record class com.tnsai.channels.model.Attachment
Returns the value of the type record component.
typing() - Method in record class com.tnsai.channels.api.ChannelCapabilities
Returns the value of the typing record component.
typing(boolean) - Method in class com.tnsai.channels.api.ChannelCapabilities.Builder
 

U

UnifiedChunk - Record Class in com.tnsai.channels.api
A single token / partial-response delta delivered through a streaming channel (TNS-440).
UnifiedChunk(String, String, boolean, Map<String, Object>, Instant) - Constructor for record class com.tnsai.channels.api.UnifiedChunk
Creates an instance of a UnifiedChunk record class.
UnifiedMessage - Record Class in com.tnsai.channels.api
Platform-agnostic inbound message.
UnifiedMessage(String, String, String, String, String, List<Attachment>, MessageMeta, Instant) - Constructor for record class com.tnsai.channels.api.UnifiedMessage
Creates an instance of a UnifiedMessage record class.
UnifiedMessage.Builder - Class in com.tnsai.channels.api
 
UnifiedResponse - Record Class in com.tnsai.channels.api
Platform-agnostic outbound response.
UnifiedResponse(String, String, String, List<Attachment>, ResponseHints) - Constructor for record class com.tnsai.channels.api.UnifiedResponse
Creates an instance of a UnifiedResponse record class.
UnifiedResponse.Builder - Class in com.tnsai.channels.api
 
url() - Method in record class com.tnsai.channels.model.Attachment
Returns the value of the url record component.

V

valueOf(String) - Static method in enum class com.tnsai.channels.cli.CliChannel.Mode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.tnsai.channels.enums.ChannelState
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.tnsai.channels.model.Attachment.AttachmentType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.tnsai.channels.model.ChannelError.Severity
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.tnsai.channels.cli.CliChannel.Mode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.tnsai.channels.enums.ChannelState
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.tnsai.channels.model.Attachment.AttachmentType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.tnsai.channels.model.ChannelError.Severity
Returns an array containing the constants of this enum class, in the order they are declared.
verifyToken() - Method in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Returns the value of the verifyToken record component.
VIDEO - Enum constant in enum class com.tnsai.channels.model.Attachment.AttachmentType
 
voice() - Method in record class com.tnsai.channels.api.ChannelCapabilities
Returns the value of the voice record component.
voice(boolean) - Method in class com.tnsai.channels.api.ChannelCapabilities.Builder
 
VOICE - Enum constant in enum class com.tnsai.channels.model.Attachment.AttachmentType
 

W

webApiBaseUrl() - Method in record class com.tnsai.channels.slack.SlackChannelConfig
Returns the value of the webApiBaseUrl record component.
webhookBindAddress() - Method in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Returns the value of the webhookBindAddress record component.
webhookPath() - Method in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Returns the value of the webhookPath record component.
webhookPort() - Method in record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Returns the value of the webhookPort record component.
WhatsAppChannel - Class in com.tnsai.channels.whatsapp
WhatsApp Business Cloud API channel adapter (TNS-352).
WhatsAppChannel() - Constructor for class com.tnsai.channels.whatsapp.WhatsAppChannel
Default constructor — bootstraps from WhatsAppChannelConfig.fromEnvironment().
WhatsAppChannel(WhatsAppChannelConfig) - Constructor for class com.tnsai.channels.whatsapp.WhatsAppChannel
Programmatic constructor — used by the factory.
WhatsAppChannelConfig - Record Class in com.tnsai.channels.whatsapp
Configuration for WhatsAppChannel.
WhatsAppChannelConfig(String, String, String, String, String, int, String, String) - Constructor for record class com.tnsai.channels.whatsapp.WhatsAppChannelConfig
Creates an instance of a WhatsAppChannelConfig record class.
WhatsAppChannelFactory - Class in com.tnsai.channels.whatsapp
SPI factory for WhatsAppChannel.
WhatsAppChannelFactory() - Constructor for class com.tnsai.channels.whatsapp.WhatsAppChannelFactory
 
Why not just a string? - Search tag in record class com.tnsai.channels.api.ChannelScopedId
Section
Wire format - Search tag in record class com.tnsai.channels.api.ChannelScopedId
Section
withStreaming() - Static method in record class com.tnsai.channels.model.ResponseHints
 
A B C D E F G H I J L M O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values