Documentation
¶
Overview ¶
Package wire provides graph payload encoding for knowing's MCP server.
Core GCF types and encoding are provided by github.com/blackwell-systems/gcf-go. This package adds knowing-specific codecs (binary, JSON) via the pluggable registry and provides FromContextBlock for converting internal types to GCF payloads.
Index ¶
- Variables
- func Encode(p *Payload) string
- func EncodeDelta(d *DeltaPayload) string
- func EncodeWith(name string, p *Payload) (string, error)
- func EncodeWithSession(p *Payload, s *Session) string
- func ListNames() string
- func Register(c *Codec)
- type Codec
- type Components
- type Decoder
- type DeltaPayload
- type Edge
- type Encoder
- type Payload
- type Session
- type Symbol
Constants ¶
This section is empty.
Variables ¶
View Source
var KindAbbrev = gcf.KindAbbrev
Re-export kind maps.
View Source
var KindExpand = gcf.KindExpand
Functions ¶
func EncodeDelta ¶ added in v0.15.0
func EncodeDelta(d *DeltaPayload) string
func EncodeWith ¶
EncodeWith encodes a payload using the named codec.
func EncodeWithSession ¶
Types ¶
type Codec ¶
Codec is a registered encoding scheme with encode/decode functions and metadata.
type Components ¶
type Components = gcf.Components
type DeltaPayload ¶ added in v0.15.0
type DeltaPayload = gcf.DeltaPayload
type Payload ¶
func DecodeWith ¶
DecodeWith decodes input using the named codec.
func FromContextBlock ¶
func FromContextBlock(ctx stdctx.Context, block *knowingctx.ContextBlock, tool string, store types.GraphStore) (*Payload, error)
FromContextBlock converts a ContextBlock into a wire.Payload, optionally querying the store for edges between the included symbols.
Click to show internal directories.
Click to hide internal directories.