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.
Click to show internal directories.
Click to hide internal directories.