bx-ai-agents

Define workflows for agents/models/middleware in BoxLang development.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ortus-boxlang/skills --skill bx-ai-agents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bx-ai-agents
Source: https://github.com/ortus-boxlang/skills/tree/main/boxlang-modules/bx-ai/bx-ai-agents
Command: npx skills add https://github.com/ortus-boxlang/skills --skill bx-ai-agents

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building and orchestrating autonomous AI agents requires integrating models, tools, skills, memory, and inter-agent communication. This skill provides a unified pattern to configure and run aiAgent() with optional components like MCP servers and middleware.

Core Features & Use Cases

  • Agent assembly: compose agents with name, description, model, tools, skills, memory, and middleware for repeatable AI tasks.
  • Orchestration & scaling: manage always-on and lazy-loaded skills across multi-agent hierarchies, with streaming support.
  • Use Case: Deploy a helpdesk assistant that uses tools and memory to answer questions and hand off tasks to sub-agents.

Quick Start

Create a basic agent with a name, description, and instructions to begin using aiAgent().

Frequently Asked Questions about bx-ai-agents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I orchestrate AI agents with tools and memory in BoxLang?

You orchestrate AI agents in BoxLang by configuring the aiAgent() function with an aiModel, memory, tools, and middleware. This pattern allows you to define agent workflows and manage components for repeatable autonomous tasks.

What is multi-agent hierarchy orchestration and when do I need it?

Multi-agent hierarchy orchestration coordinates multiple AI agents where parent agents delegate tasks to sub-agents. You need it when a single agent cannot handle complex workflows, allowing specialized agents to hand off tasks across synchronous and asynchronous streams.

How do I assemble an AI agent with MCP servers and middleware?

You assemble an AI agent by defining its name, description, model, and instructions, then optionally attaching MCP servers and middleware. This composition ensures deterministic behavior and safe execution across streaming and asynchronous scenarios.

Can I manage always-on and lazy-loaded skills across multi-agent hierarchies?

Yes, you can manage always-on and lazy-loaded skills across multi-agent hierarchies. This orchestration pattern scales your AI agents by ensuring specific skills are available continuously while others load only when triggered.

Does this AI agent orchestration pattern support streaming scenarios?

Yes, the AI agent orchestration pattern supports streaming scenarios. You can apply it within BoxLang agent development across both synchronous and asynchronous tasks to ensure deterministic behavior during live execution.

Why do I need middleware for safe AI agent execution?

You need middleware for safe AI agent execution to enforce deterministic behavior and guardrails around model interactions. It intercepts processes between the aiModel, tools, and memory to prevent unsafe autonomous actions.