@gratico/sdk
TypeScript icon, indicating that this package has built-in type declarations

0.9.2 • Public • Published

gratico SDK

Example

import { IBot } from "@gratico/sdk";

export const vueBot: IBot = {
  id: "vue",
  trigger: "vue",
  config: {
    schema: {},
  },
  async instructions(prompt, config) {
    return [
      "Create the component using vue framework(https://vuejs.org/) and by using JSX with typescript instead of Single File Component. Add the jsx comment/annotation to the top of the file.",
    ];
  },
  output: {
    async processor(str) {
      return {
        raw: str,
        formatted: str,
        actions: [],
        summary: {
          formatted: "created with vue",
        },
      };
    },
  },
};
``

Readme

Keywords

Package Sidebar

Install

npm i @gratico/sdk

Weekly Downloads

77

Version

0.9.2

License

MIT

Unpacked Size

15 kB

Total Files

17

Last publish

Collaborators

  • gratico