Skip to main content

os

TypeScript AI Agent
  • App Module for Production Deployment of AI Agents
  • This module provides AgentOS, a production platform for deploying agents as web services with REST endpoints.
  • AgentOS, AgentOSConfig, AgentOSProtocol are the primary names (v1.0+). AgentApp, AgentAppConfig, AgentAppProtocol are silent aliases for backward compatibility.
import { AgentOS, Agent } from 'praisonai';
* const assistant = new Agent({
name: 'assistant',
instructions: 'Be helpful'
});
* const app = new AgentOS({
name: 'My AI App',
agents: [assistant],
});
* await app.serve({ port: 8000 });

Import

import { os } from 'praisonai';