liveBook · Manning

Nexus

As explained in AI Agents in Action

Nexus is the agent platform used in these exercises for creating, configuring, and testing agent profiles and actions.

Nexus is an open-source agent platform for creating, configuring, testing, and hosting AI agents through a Streamlit chat interface. It combines agent profiles, personas, actions, tools, and model-backed agent engines in one practical workspace. section 7.1 section 7.7

Build an agent in Nexus by combining these parts:

  • Define a profile in YAML; its persona supplies the system prompt that shapes the agent’s personality, behavior, and responses. section 7.3
  • Add native code functions or semantic prompt functions to the nexus_actions folder; the agent_action decorator enables discovery and tool specifications. section 7.5
  • Select an agent engine to connect the profile and actions to a model; the current implementation uses the OpenAI API. section 7.4
  • Run Nexus interactively through its web interface or develop it from a cloned repository with editable installation and debugging. section 7.1.1 section 7.1.2

Create and test a persona

Create fiona.yaml with a named profile, avatar, ogre-themed persona, and search_wikipedia action. Launch Nexus, create a thread, select the OpenAIAgent and the new persona, then test its responses in chat. section 7.3

Figure 7.1 The Nexus interface and features
figure

Use the interface overview to locate chat, agent selection, personas, and available agent features. section 7.1

How AI Agents in Action covers it

How deep it goes
Explains installation, architecture, YAML profiles, agent engines, tool specifications, and execution, while deferring broader planning implementation.
Examples
Demonstrates installation, a Fiona YAML profile, OpenAI tool specifications, weather and recommendation functions, and custom API-action exercises.
What it assumes
Assumes basic Python and terminal use while introducing agent profiles, personas, actions, tools, and engines from practical examples.
What you can do after
Operate/configure Nexus, create agent profiles, add native or semantic actions, select an agent, and test behavior through chat.
How it connects
Connects Streamlit, agent profiles, personas, actions, tools, agent engines, the OpenAI API, and planning.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI Agents in Action. The section links point to the parts of the book it draws on.