Skip to main content
Inworld’s Node.js Agent Runtime SDK is a comprehensive toolkit for building AI-powered applications.

Graphs

At the core of the SDK is the Graph system, an interface to construct complete AI pipelines, from input to final output.

Core Classes

Import core graph classes from @inworld/runtime/graph:

Nodes

Import nodes from @inworld/runtime/graph or @inworld/runtime/graph/nodes:

Built-in Nodes

| RemoteSTTNode | Converts speech audio to text using a speech-to-text (STT) model | GraphTypes.​Audio | String | | RemoteTTSNode | Converts text-to-speech audio using a text-to-speech (TTS) model | String
GraphTypes.​TextStream
GraphTypes.​TTSRequest | GraphTypes.​TTSOutputStream | | SubgraphNode | Executes a compiled subgraph as a node | any | any | | TextAggregatorNode | Combines text streams (chunks) into a single string | String
GraphTypes.​TextStream
GraphTypes.​LLMChatResponse | String | | TextChunkingNode | Splits text into smaller chunks | GraphTypes.​TextStream
GraphTypes.​ContentStream | GraphTypes.​TextStream | | TextClassifierNode | Analyzes text and classifies it into predefined categories using ML models | String | GraphTypes.​ClassificationResult |

Built-in Subgraphs

Subgraphs with an asterisk (*) are experimental and subject to change.

Custom Nodes

You can create your own nodes by extending the CustomNode base class.

Components

Import components from @inworld/runtime/graph or @inworld/runtime/graph/components:
Components are reusable configurations that can be shared across multiple nodes:

Key Features

  • 🚀 High Performance - Optimized graph execution
  • 🧠 AI-First - Built-in LLM, memory, and knowledge systems
  • 🔧 Extensible - Custom nodes and components
  • 📊 Observable - Comprehensive telemetry and logging
  • 🌊 Streaming - Real-time audio and text processing