Skip to Content
Naylence Docs are in active development. Share feedback in Discord.
ConceptsAgents

Agents

An agent is a piece of code that receives messages and produces results.

An agent has:

  • an address (like "hello"),
  • a handler for incoming messages,
  • and access to the fabric so it can send messages to other agents.

In the hello quickstart:

  • You defined a HelloAgent (or similar) class.
  • You registered it with the fabric at an address.
  • You sent a single message to that address and logged the result.

That one agent was both:

  • the server for that address, and
  • the only piece of user-defined logic in the fabric.

As you build more complex systems, you will:

  • create multiple agents with different responsibilities,
  • have agents call each other (workflow/orchestrator agents, worker agents, etc.),
  • and spread those agents across multiple nodes.

The underlying primitives are the same as in hello-world – just more agents and more nodes.

Last updated on