Help us shape the future of Go! Take the 2026 Go Developer Survey

webhook

package
v1.152.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToolNameSendWebhook = "send_webhook"
)

Variables

This section is empty.

Functions

func CreateToolSet

func CreateToolSet(toolset latest.Toolset, runConfig *config.RuntimeConfig) (tools.ToolSet, error)

func Creator added in v1.132.0

func Creator(_ context.Context, toolset latest.Toolset, _ string, runConfig *config.RuntimeConfig, _ string) (tools.ToolSet, error)

Creator builds this toolset from its YAML declaration. It matches teamloader.ToolsetCreator so it can be registered directly:

teamloader.NewToolsetRegistry(map[string]teamloader.ToolsetCreator{"webhook": webhook.Creator})

Types

type SendArgs

type SendArgs struct {
	Message string `json:"message" jsonschema:"The message text to deliver"`
	Value2  string `json:"value2,omitempty" jsonschema:"IFTTT value2 field (provider=ifttt only)"`
	Value3  string `json:"value3,omitempty" jsonschema:"IFTTT value3 field (provider=ifttt only)"`
}

type ToolSet

type ToolSet struct {
	// contains filtered or unexported fields
}

func New

func New(cfg latest.WebhookToolConfig, expander templateExpander, timeout time.Duration) *ToolSet

func (*ToolSet) Instructions

func (t *ToolSet) Instructions() string

func (*ToolSet) Start

func (t *ToolSet) Start(context.Context) error

func (*ToolSet) Stop

func (t *ToolSet) Stop(context.Context) error

func (*ToolSet) Tools

func (t *ToolSet) Tools(context.Context) ([]tools.Tool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL