UNPKG

phonic

Version:

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [![npm shield](htt

36 lines (35 loc) 1.22 kB
/** * This file was auto-generated by Fern from our API Definition. */ import * as Phonic from "../../../../index.js"; /** * @example * { * project: "main", * name: "Appointment details", * prompt: "Dates should be in `9 Apr 2025` format. Prices should be in $150.00 format.", * fields: [{ * name: "Date", * type: "string", * description: "The date of the appointment" * }, { * name: "Copay", * type: "string", * description: "Amount of money the patient pays for the appointment" * }, { * name: "Confirmed as booked", * type: "bool", * description: "Is the appointment confirmed as booked?" * }] * } */ export interface CreateExtractionSchemaRequest { /** The name of the project to create the extraction schema in. */ project?: string; /** A name for the extraction schema. */ name: string; /** Instructions for how to extract data from conversations. */ prompt: string; /** Array of field definitions. */ fields: Phonic.ExtractionField[]; }