Creates a new SlackApi client.
Slack bot token (e.g. xoxb-...).
Calls a Slack Web API method.
The API method name (e.g. 'chat.postMessage').
Optionaloptions: Record<string, unknown>Request payload. null and undefined values are omitted from the serialized body.
The parsed Slack API response.
Thin HTTP client for the Slack Web API.
Remarks
Uses Node's built-in
fetch. An instance is injected intocontext.turnStateby SlackAgentExtension at the start of each turn and can be retrieved withcontext.turnState.get<SlackApi>(SlackApiKey).