webagent

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, option *cfg.Option, logger telemetry.Logger) error

func RunConnection

func RunConnection(ctx context.Context, serverURL, name string, reg *commands.CommandRegistry, bus *eventbus.Bus[agent.Event]) error

func RunConnectionRuntime

func RunConnectionRuntime(ctx context.Context, serverURL, name string, rt *runner.AgentRuntime) error

func RunConnectionWithPath added in v0.3.0

func RunConnectionWithPath(ctx context.Context, serverURL, wsPath, name string, reg *commands.CommandRegistry, bus *eventbus.Bus[agent.Event]) error

func RunConnectionWithPathEx added in v0.3.0

func RunConnectionWithPathEx(ctx context.Context, cc ConnectionConfig) error

RunConnectionWithPathEx connects with full data pipeline support — ToolDataEvents and SCO nodes are forwarded over the WebSocket as "tool.data" and "tool.sco" messages.

Types

type ConnectionConfig added in v0.3.0

type ConnectionConfig struct {
	ServerURL string
	WSPath    string
	Name      string
	Registry  *commands.CommandRegistry
	AgentBus  *eventbus.Bus[agent.Event]
	DataBus   *eventbus.Bus[output.ToolDataEvent]
	SCO       *output.SCOSidecar
}

ConnectionConfig provides extended options for RunConnectionWithPathEx.

Jump to

Keyboard shortcuts

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