Learn R Programming

aisdk (version 1.1.0)

create_feishu_channel_runtime: Create a Feishu Channel Runtime

Description

Construct a ChannelRuntime and register a Feishu adapter on it.

Usage

create_feishu_channel_runtime(
  session_store,
  app_id,
  app_secret,
  base_url = "https://open.feishu.cn",
  verification_token = NULL,
  encrypt_key = NULL,
  verify_signature = TRUE,
  send_text_fn = NULL,
  send_status_fn = NULL,
  download_resource_fn = NULL,
  model = NULL,
  agent = NULL,
  skills = "auto",
  tools = NULL,
  hooks = NULL,
  registry = NULL,
  max_steps = 10,
  session_policy = channel_default_session_policy()
)

Value

A ChannelRuntime with the Feishu adapter registered.

Arguments

session_store

Channel session store.

app_id

Feishu app id.

app_secret

Feishu app secret.

base_url

Feishu API base URL.

verification_token

Optional callback verification token.

encrypt_key

Optional event subscription encryption key.

verify_signature

Whether to validate Feishu callback signatures when applicable.

send_text_fn

Optional custom send function for tests or overrides.

send_status_fn

Optional custom status function for tests or overrides.

download_resource_fn

Optional custom downloader for inbound message resources.

model

Optional default model id.

agent

Optional default agent.

skills

Optional skill paths or "auto". Defaults to "auto" when agent is NULL.

tools

Optional default tools.

hooks

Optional session hooks.

registry

Optional provider registry.

max_steps

Maximum tool execution steps.

session_policy

Optional session policy overrides.