Skip to content

Chat Settings Constructors

pkg/chat constructors now use package-owned settings as the reusable boundary:

client, err := chat.New(ctx, chat.Settings{Config: cfg, Logger: log})

GTB framework callers that previously passed *props.Props should use the adapter helpers instead:

client, err := chat.NewFromProps(ctx, props, cfg)
client, err := chat.NewWithFallback(ctx, props, cfg)
client, err := chat.NewWithFallbackFromProps(ctx, props, cfg)

RegisterProvider factories now receive chat.Settings, not *props.Props. Read provider config from settings.Config and diagnostics from settings.Logger.