Skip to content

API reference

Each page explains one module of unaiverse-src: what it is for, then every public class and function with its signature, its source and what it takes, returns and raises. The objects that most programs use are Agent (unaiverse.agent), World (unaiverse.world), Node (unaiverse.networking.node.node), StreamType (unaiverse.streams.dataprops) and HybridStateMachine (unaiverse.hsm.hsm).

Agents and worlds

Agent, World and the Interaction requests that agents exchange.

Behaviors

HybridStateMachine, its states and its actions.

Data streams

StreamType and DataProps (the description of the data of a processor) together with the stream classes.

Interactive messages

The uai protocol: fenced blocks for media, charts and forms together with the reading of the answers.

Nodes and networking

Node, the connection pools, the profile, the tokens and the libp2p transport.

Sessions

The Session of each peer: handshake, keep-alive, reconnection and close.

Models

The processors that ship with the SDK, the CNU layers and the Hamiltonian Learning helpers.

Runtime and utilities

The clock, the Custom defaults, the statistics, the logger and the other helpers.

GUI kit (JavaScript)

The own view of a world is a web page built with @unaiverse/gui-kit. Its reference (connectToHost, the world object with subscribe, get, send, act and answer, and the components) lives in the GUI kit documentation.