slackline/api/agents/conversations_create
This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.
Setters for the optional arguments of
agents.conversations.create.
Each setter takes the call that agents.conversations_create returns and
sets one argument:
agents.conversations_create()
|> conversations_create.name("Help me debug auth flow")
Values
pub fn is_private(
call: slackline.Call(agents.ConversationsCreate, r),
is_private: Bool,
) -> slackline.Call(agents.ConversationsCreate, r)
Whether the code channel is private. When omitted, the channel matches the
privacy of origin_channel_id, or is public if no origin is given. An
explicit value is always honored, even if it differs from the origin
channel’s privacy: passing false creates a public channel from a private
origin.
pub fn name(
call: slackline.Call(agents.ConversationsCreate, r),
name: String,
) -> slackline.Call(agents.ConversationsCreate, r)
A friendly display name for the code channel. Optional when
origin_channel_id and origin_message_ts are provided.
pub fn origin_channel_id(
call: slackline.Call(agents.ConversationsCreate, r),
origin_channel_id: String,
) -> slackline.Call(agents.ConversationsCreate, r)
The channel ID where the agent session was initiated from. Must be provided
together with origin_message_ts. The channel must be accessible to the
calling user and must not be externally shared (Slack Connect). When
team_id is omitted with an org token, the channel is created in the same
workspace as this origin channel.
pub fn origin_message_ts(
call: slackline.Call(agents.ConversationsCreate, r),
origin_message_ts: String,
) -> slackline.Call(agents.ConversationsCreate, r)
The message timestamp in the origin channel that started the agent session.
Must be provided together with origin_channel_id. The author of this
message is automatically invited to the newly created code channel.
pub fn session_id(
call: slackline.Call(agents.ConversationsCreate, r),
session_id: String,
) -> slackline.Call(agents.ConversationsCreate, r)
An opaque identifier for the agent session. When provided, the call is
idempotent: if a channel already exists for this session_id, it is
returned instead of creating a new one.
pub fn team_id(
call: slackline.Call(agents.ConversationsCreate, r),
team_id: String,
) -> slackline.Call(agents.ConversationsCreate, r)
Encoded team id to create the channel in. Required for org tokens when
origin_channel_id is not provided. When omitted, the workspace is derived
from the origin channel.