message

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package message provides the portable AgentX channel message tool.

Index

Constants

View Source
const Name = "message"

Name is the catalog name of the message tool.

Variables

This section is empty.

Functions

func Definition

func Definition() toolcontract.Definition

Definition returns the stable model-facing schema.

func NewHandler

func NewHandler(opts Options) toolcontract.Handler

NewHandler constructs the real portable message coordination implementation. It returns nil only when neither a current target, platform nor sender exists.

func Register

func Register(reg toolcontract.Registrar, opts Options)

Register adds the message tool when Options identify a usable Host surface.

Types

type Options

type Options struct {
	Sender   channelruntime.TextSender
	Target   channelruntime.TextTarget
	Platform string
}

Options supplies the Host-owned sender and current target.

Jump to

Keyboard shortcuts

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