UNPKG

@microsoft/agents-activity

Version:

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

32 lines (26 loc) 576 B
/** * Copyright(c) Microsoft Corporation.All rights reserved. * Licensed under the MIT License. */ import { z } from 'zod' /** * Enum representing the different role types in a conversation. */ export enum RoleTypes { /** * Represents a user in the conversation. */ User = 'user', /** * Represents an agent or bot in the conversation. */ Agent = 'bot', /** * Represents a skill in the conversation. */ Skill = 'skill', } /** * Zod schema for validating role types. */ export const roleTypeZodSchema = z.enum(['user', 'bot', 'skill'])