brokertools

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package brokertools holds small helpers shared by the agent-facing MCP servers (claude-channel sidecar and channeltools) for interacting with the in-process broker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractReplyMessage

func ExtractReplyMessage(result map[string]any) string

ExtractReplyMessage returns a human-readable reply from a broker wait_reply result map (the ask/reply tool result). It extracts the "message" field from the payload, or a timeout/cancelled notice, falling back to a JSON rendering of the full result when the shape is unexpected.

func MakeMsgID

func MakeMsgID() string

MakeMsgID returns a 128-bit (16-byte) random hex string used as a broker ask message id. 128 bits keeps birthday-collision risk negligible across a multi-agent system, matching broker.MakeToken's length.

Types

This section is empty.

Jump to

Keyboard shortcuts

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