Module: ChatSDK

Defined in:
lib/chat_sdk.rb,
lib/chat_sdk/ai.rb,
lib/chat_sdk/log.rb,
lib/chat_sdk/chat.rb,
lib/chat_sdk/author.rb,
lib/chat_sdk/config.rb,
lib/chat_sdk/errors.rb,
lib/chat_sdk/thread.rb,
lib/chat_sdk/channel.rb,
lib/chat_sdk/message.rb,
lib/chat_sdk/testing.rb,
lib/chat_sdk/version.rb,
lib/chat_sdk/cards/node.rb,
lib/chat_sdk/dispatcher.rb,
lib/chat_sdk/state/base.rb,
lib/chat_sdk/events/base.rb,
lib/chat_sdk/adapter/base.rb,
lib/chat_sdk/ai/converter.rb,
lib/chat_sdk/state/memory.rb,
lib/chat_sdk/cards/builder.rb,
lib/chat_sdk/events/action.rb,
lib/chat_sdk/cards/renderer.rb,
lib/chat_sdk/event_registry.rb,
lib/chat_sdk/events/mention.rb,
lib/chat_sdk/modals/builder.rb,
lib/chat_sdk/webhook/router.rb,
lib/chat_sdk/ai/tool_builder.rb,
lib/chat_sdk/api_client/base.rb,
lib/chat_sdk/events/reaction.rb,
lib/chat_sdk/instrumentation.rb,
lib/chat_sdk/testing/helpers.rb,
lib/chat_sdk/ai/tool_executor.rb,
lib/chat_sdk/postable_message.rb,
lib/chat_sdk/streaming/stream.rb,
lib/chat_sdk/webhook/endpoint.rb,
lib/chat_sdk/ai/stream_handler.rb,
lib/chat_sdk/cards/text_helpers.rb,
lib/chat_sdk/adapter/capabilities.rb,
lib/chat_sdk/cards/fields_context.rb,
lib/chat_sdk/cards/select_context.rb,
lib/chat_sdk/events/slash_command.rb,
lib/chat_sdk/testing/fake_adapter.rb,
lib/chat_sdk/cards/actions_context.rb,
lib/chat_sdk/events/direct_message.rb,
lib/chat_sdk/testing/recorded_call.rb,
lib/chat_sdk/testing/state_contract.rb,
lib/chat_sdk/testing/adapter_contract.rb,
lib/chat_sdk/adapter/meta_verification.rb,
lib/chat_sdk/events/subscribed_message.rb

Defined Under Namespace

Modules: AI, Adapter, ApiClient, Cards, Events, Instrumentation, Log, Modals, State, Streaming, Testing, Webhook Classes: Author, Channel, Chat, Config, ConfigurationError, Dispatcher, DuplicateEventError, Error, EventRegistry, LockConflictError, Message, NotSupportedError, PlatformError, PostableMessage, RateLimitedError, SignatureVerificationError, Thread, WebhookAccessor

Constant Summary collapse

VERSION =
"0.3.1"

Class Method Summary collapse

Class Method Details

.card(title: nil, subtitle: nil, &block) ⇒ Object



20
21
22
# File 'lib/chat_sdk.rb', line 20

def card(title: nil, subtitle: nil, &block)
  Cards::Builder.new(title: title, subtitle: subtitle, &block).build
end

.loaderObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/chat_sdk.rb', line 9

def loader
  @loader ||= begin
    loader = Zeitwerk::Loader.for_gem(warn_on_extra_files: false)
    loader.inflector.inflect("chat_sdk" => "ChatSDK", "ai" => "AI")
    loader.ignore("#{__dir__}/chat_sdk/version.rb")
    loader.ignore("#{__dir__}/chat_sdk/errors.rb")
    loader.setup
    loader
  end
end