Page cover

Agents Module

The Agents module in the JuliaOS framework provides a comprehensive interface for creating, managing, and interacting with agents. This page explains how to use the Agents module in your applications.

Overview

The Agents module connects to the Julia backend through the JuliaBridge and provides methods for creating, retrieving, starting, stopping, and executing tasks with agents. It also includes specialized agent types for specific use cases.

Installation

npm install @juliaos/framework

Usage

Initializing the Agents Module

import { JuliaBridge } from '@juliaos/julia-bridge';
import { Agents } from '@juliaos/framework';

// Initialize the bridge
const bridge = new JuliaBridge({ host: 'localhost', port: 8052 });
await bridge.initialize();

// Create the Agents module
const agents = new Agents(bridge);

Creating an Agent

Starting an Agent

Executing a Task with an Agent

Getting Agent Status

Stopping an Agent

Listing Agents

Deleting an Agent

Specialized Agent Types

The framework includes specialized agent types for specific use cases:

Trading Agents

Research Agents

Dev Agents

Agent Memory

Agents have memory capabilities that allow them to store and retrieve information:

Error Handling

The Agents module includes robust error handling:

See Also

  • Swarms Module - Learn about swarms and how to use them with agents

  • Bridge Module - Learn about the bridge that connects to the Julia backend

  • Wallet Module - Learn about wallet management

  • Blockchain Module - Learn about blockchain integration