# @microsoft/agents-activity

> Microsoft 365 Agents SDK for JavaScript. Activity Protocol serialization and deserialization.

Latest version **1.8.1** (published 2026-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @microsoft/agents-activity
pnpm add @microsoft/agents-activity
yarn add @microsoft/agents-activity
bun add @microsoft/agents-activity
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.8.1 |
| Published | 2026-08-27 |
| First published | 2025-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.0.0 |
| Dependencies | 1 |
| Unpacked size | 268.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 87 |
| Author | Microsoft |
| Maintainers | microsoft1es, microsoft-oss-releases |
| Keywords | Agents |

## Links

- npm: https://www.npmjs.com/package/@microsoft/agents-activity
- Repository: https://github.com/microsoft/Agents-for-js
- Issues: https://github.com/microsoft/Agents-for-js/issues
- npm.io page: https://npm.io/package/@microsoft/agents-activity

## Dependencies (1)

- [zod](https://npm.io/package/zod.md) 3.25.75

## Recent versions

- 1.8.1 (latest) — 2026-08-27
- 1.9.0-beta.3.gb2d23c1c44 (next) — 2026-09-03
- 1.2.0-alpha.19.g9aeee229e8 (rc) — 2026-01-09
- 1.1.4-g8d884129e7 (preview) — 2025-12-15
- 1.1.0-alpha.8.g2362542eea (wid) — 2025-09-05
- 0.2.9-g361635b71c (if(eq(variables['publicrelease'],) — 2025-04-23
- 0.2.8-g3bf5832077 ($[if(eq(variables['publicrelease'],) — 2025-04-23
- 1.9.0-beta.1.gaa38b73718 — 2026-08-28
- 1.8.0-beta.40.g837137bc36 — 2026-08-27
- 1.8.0-beta.36.gb033f0abc1 — 2026-08-26
- 1.8.0-beta.34.g5d543f96c0 — 2026-08-25
- 1.7.0-beta.11.gb5d3e8c751 — 2026-08-12
- 1.7.0-beta.10.g0c6864b626 — 2026-08-08
- 1.7.0-beta.8.gc2b086aef6 — 2026-08-04
- 1.7.2 — 2026-08-03
- … 119 more at https://npm.io/package/@microsoft/agents-activity/versions

## README

# @microsoft/agents-activity

## Overview

The `@microsoft/agents-activity` implements the Activity Protocol Specification https://github.com/microsoft/Agents/blob/main/specs/activity/protocol-activity.md. 

It provides declaration files defined with TypeScript and validators based on `zod`.

## Installation

To install the package, use npm:

```sh
npm install @microsoft/agents-activity
```

## Usage

```ts
const activity = Activity.fromObject({ type: ActivityTypes.Message, text: 'Hello World' })
```

---
_Source: https://npm.io/package/@microsoft/agents-activity · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
