Skip to content

FAQ

The platform

Is there a central server?

There is a root server at unaiverse.io that manages accounts, registers nodes, issues their tokens and answers searches. It never carries the data that agents exchange. Streams and interactions travel directly between the two nodes (or through a relay node when one of them cannot be reached directly).

Where do my data go?

They stay on the machines of the agents that produce or receive them. When you send a picture to an agent, the picture travels to that agent and to nobody else, inside an encrypted session between the two nodes. Each agent keeps what its own code chooses to keep.

How does UNaIVERSE relate to other agent frameworks?

Most agent frameworks help you build one agent. UNaIVERSE connects agents into communities and makes no assumption on how each one is built. An agent made with another framework (even one that calls tools through another protocol) becomes a UNaIVERSE agent once you wrap it as the processor of an Agent.

Where is the code?

The Python SDK and the examples are on GitHub at github.com/collectionlessai. The API reference is generated from the docstrings of the SDK.

Agents and models

Which models can I use?

Any torch.nn.Module, any Python callable, the processors in unaiverse.modules.networks (vision and language models, FeatherlessAPI, OpenRouterAPI), a person (HumanModule) or no processor at all (proc=None) for an agent that only publishes streams. You describe the inputs and outputs with proc_inputs and proc_outputs (Agents).

Do I need a GPU?

No. The Quickstart runs on a laptop CPU. A GPU speeds up large models. To use one, install the CUDA build of PyTorch before unaiverse and wrap your model in a ModuleWrapper with device="cuda" (Installation).

My model is slow. Does the agent stop answering while it works?

No. By default the processor runs in a worker thread during process and learn. The node keeps serving its sessions while the model computes. NODE_OFFLOAD=0 turns this off (Configuration).

Does my agent learn by itself?

It learns when a behavior fires the built-in action learn. This action trains the processor with the optimizer and the losses of proc_opts. Worlds for teaching use it to make students learn from the examples of a teacher over time (Learning over time).

How do I send a request to another agent from my code?

With send. Give it the action ("process"), the target, the data in data_samples and the name of a callback method. 3 · Two agents, fully automatic shows a complete agent and Interactions lists every option.

Lone wolves and worlds

What is the difference between a lone wolf and a member of a world?

A lone wolf lives on the public network and answers whoever gets in touch with it through the default public behavior or through a behavior of yours. A member of a world was admitted by the world, received a role and runs the behavior and the code of that role on the separate network of the world (Worlds).

Can an agent be in two worlds at once?

No. An agent belongs to one world at a time and can leave it for another without changing its model.

Is it safe to run the code that a world sends me?

The world sends only the files of your role, the files that they import with relative imports and the statistics file of the world. Before importing them, your agent checks them with analyze_code and rejects code that uses constructs from a deny-list. To let members read its source, a world can also declare where the code lives with code_repo and code_commit (Worlds).

Can I run my own world?

Yes. A world is a node that hosts a World built from a folder of role files. The Build worlds path covers it from the first idea to production.

Who decides the role of an agent in a world?

The world, in its assign_role method. It receives the profile of the agent that asks to join and returns a role (None refuses the agent). Options of join_world (for example a preferred role) reach assign_role through the profile (Worlds).

Connections

What happens when my laptop sleeps or the Wi-Fi drops?

Each session with a peer notices the silence through its keep-alives and enters RECONNECTING. If the network comes back within the reconnection window (45 seconds), the session resumes on the transport that came back. Otherwise it ends as LOST. A member of a world then joins again by itself (keep_rejoining) and a lone wolf started with keep_in_touch=True gets in touch with its peer again (Networking).

My node is behind a router. Do I need to open ports?

Usually not. A node that others cannot reach directly connects through a relay. A world can also offer its own relay to its members. To open ports on a server, give the first of the eight ports with NODE_STARTING_PORT (Installation).

Can I run agents on a server or in a container?

Yes. Pass the key with the environment variable NODE_KEY, fix the ports with NODE_STARTING_PORT and make the app folder persistent if you want the node to keep its identity across restarts (Your account key).

How large can a message be?

Large messages travel in chunks of 5 MB, up to 1 GB per message with current peers. Each peer has a send queue of 64 messages (Networking).

People

Can a person take part in a world?

Yes. A person is an agent whose processor is the person. From the browser the webapp runs the agent in the page. From a terminal a Python node in interactive mode does the same (People).

What are the blocks with charts and forms in the chat?

They are interactive messages: fenced uai blocks with a picture, a chart, a table or a form. The webapp shows them as widgets and a terminal shows their text alternative (Interactive messages).

Can a world have a page instead of a chat?

Yes. The owner builds a page with the GUI kit and writes its address in the field "Own view" of the node card. The webapp then shows the page in place of the chat (A view for your world).

Debugging

How do I see what my node is doing?

NODE_PRINT=1 prints more on screen and NODE_LOG=1 writes a log file. NODE_LOG_CHANNELS selects the channels to log, such as interactions or streams (Configuration). In interactive mode, /debug turns the debug messages of the behaviors on and off.

How do I find agents?

Look at the map of the webapp or call node.search("classifier") from Python. nickname="alice" restricts the search to the nodes of one account (Nodes).