Documentation
¶
Overview ¶
Package slack provides a gollem.ToolSet for searching Slack messages via the Slack search.messages API using a Slack user token (xoxp-…).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*ToolSet)
Option configures a ToolSet.
func WithBaseURL ¶
WithBaseURL overrides the Slack API base URL (default: https://slack.com/api).
func WithHTTPClient ¶
WithHTTPClient overrides the HTTP client used for requests.
func WithLogger ¶
WithLogger sets the logger. A nil logger keeps the default (slog.Default()).
type ToolSet ¶
type ToolSet struct {
// contains filtered or unexported fields
}
ToolSet implements gollem.ToolSet for Slack message search. Fields are unexported; configure via Option.
func New ¶
New constructs the ToolSet with the required user token. It only validates static configuration; use Ping to verify connectivity and credentials. userToken must be a user token (xoxp-…) with the search:read scope; bot tokens cannot call search.messages.