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.
To install the package, use npm:
npm install @microsoft/agents-activity
const activity = Activity.fromObject({ type: ActivityTypes.Message, text: 'Hello World' })