message

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0, MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentMessage

type AgentMessage interface {
	ipld.View
	// Invocations is a list of links to the root block of invocations than can
	// be found in the message.
	Invocations() []ipld.Link
	// Get a given invocation from the message by root CID.
	Invocation(root ipld.Link) (invocation.Invocation, bool, error)
	// Receipts is a list of links to the root block of receipts that can be
	// found in the message.
	Receipts() []ipld.Link
	// Get a given receipt from the message by root CID.
	Receipt(root ipld.Link) (receipt.AnyReceipt, bool, error)
	// Get returns a receipt link from the message, given an invocation link.
	Get(link ipld.Link) (ipld.Link, bool)
}

func Build

func Build(invocations []invocation.Invocation, receipts []receipt.AnyReceipt) (AgentMessage, error)

func NewMessage

func NewMessage(root ipld.Link, blks blockstore.BlockReader) (AgentMessage, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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