Server SDK Overview

The @octavus/server-sdk package provides a Node.js SDK for integrating Octavus agents into your backend application. It handles session management, streaming, and the tool execution continuation loop.

Current version: 2.9.0

Installation

bash

For agent management (sync, validate), install the CLI as a dev dependency:

bash

Basic Usage

typescript

Key Features

Agent Management

Agent definitions are managed via the CLI. See the CLI documentation for details.

bash

Session Management

Create and manage agent sessions using the agent ID:

typescript

Tool Handlers

Tools run on your server with your data:

typescript

Streaming

All responses stream in real-time:

typescript

API Reference

OctavusClient

The main entry point for interacting with Octavus.

typescript

AgentSessionsApi

Manages agent sessions.

typescript

AgentSession

Handles request execution and streaming for a specific session.

typescript

FilesApi

Handles file uploads for sessions.

typescript

The client uploads files directly to S3 using the presigned upload URL. See File Uploads for the full integration pattern.

Next Steps

  • Sessions — Deep dive into session management
  • Tools — Implementing tool handlers
  • Streaming — Understanding stream events
  • Workers — Executing worker agents
  • Debugging — Model request tracing and debugging