diff --git a/README_FR.md b/README_FR.md index b317bd4a094..e3192d6f892 100644 --- a/README_FR.md +++ b/README_FR.md @@ -6,7 +6,7 @@ - 🛠 Support des connecteurs Discord/ Twitter / Telegram - 🔗 Support des différents modèles d'IA (Llama, Grok, OpenAI, Anthropic, etc.) -- 👥 Gestion de plusieurs agents et assistance +- 👥 Gestion de plusieurs agents et assistance - 📚 Import et intéractions avec différents types de documents simplifiés - 💾 Accès aux données en mémoire et aux documents stockés - 🚀 Grande personnalisation possible : création de nouveaux clients et de nouvelles actions @@ -14,13 +14,12 @@ Que pouvez-vous faire avec Eliza? -- 🤖 Chatbot +- 🤖 Chatbot - 🕵 ️Agents autonomes - 📈 Processus automatisés - 🎮 PNJ intéractifs - 🧠 Trading automatisé - # Premiers pas **Pré-requis (obligatoire) :** @@ -49,7 +48,7 @@ cp .env.example .env ### Lancer Eliza -Après avoir terminé la configuration et les fichiers personnage, lancer le bot en tapant la ligne de commande suivante: +Après avoir terminé la configuration et les fichiers personnage, lancer le bot en tapant la ligne de commande suivante: ```bash pnpm i @@ -62,7 +61,7 @@ pnpm clean #### Ressources additionelles -Il vous faudra peut-être installer Sharp. +Il vous faudra peut-être installer Sharp. Si il y a une erreur lors du lancement du bot, essayez d'installer Sharp comme ceci : ``` @@ -80,6 +79,6 @@ pnpm install --include=optional sharp -## Historique d'étoiles +## Historique d'étoiles [![Star History Chart](https://api.star-history.com/svg?repos=ai16z/eliza&type=Date)](https://star-history.com/#ai16z/eliza&Date) diff --git a/README_RU.md b/README_RU.md index 4cc1fdc6fea..5746fd924b9 100644 --- a/README_RU.md +++ b/README_RU.md @@ -42,19 +42,19 @@
- # 🚀Начало работы **Необходимые условия (ОБЯЗАТЕЛЬНО):** - + - [Python 2.7+](https://www.python.org/downloads/) - [Node.js 23.1+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) - [pnpm](https://pnpm.io/installation) -> **Для Windows пользователей:** требуется WSL -> + > **Для Windows пользователей:** требуется WSL + ### Редактирование файла .env - Скопируйте `.env.example` в `.env` и заполните соответствующими значениями + ```bash cp .env.example .env ``` @@ -67,8 +67,8 @@ cp .env.example .env - Используйте команду `pnpm start --characters="path/to/your/character.json"` - Можно загружать несколько файлов персонажей одновременно. - ### Запуск Eliza + После настройки файла `.env` и файла персонажа вы можете запустить бота с помощью следующей команды: ```bash @@ -79,6 +79,7 @@ pnpm start # Проект быстро развивается, иногда нужно очищать проект, если вы возвращаетесь к нему спустя время pnpm clean ``` + #### Дополнительные требования Возможно, потребуется установить Sharp. Если при запуске возникнет ошибка, попробуйте установить его с помощью следующей команды: @@ -164,7 +165,6 @@ npx --no node-llama-cpp source download --gpu cuda Для получения помощи по настройке бота Discord ознакомьтесь с инструкцией: [Настройка приложения бота](https://discordjs.guide/preparations/setting-up-a-bot-application.html). - ### Сообщество и контакты - [GitHub Issues](https://github.com/ai16z/eliza/issues). Лучше всего подходит для: сообщений об ошибках при использовании Eliza и предложений новых функций. diff --git a/client/README.md b/client/README.md index 74872fd4af6..b6897e3f0a9 100644 --- a/client/README.md +++ b/client/README.md @@ -4,47 +4,47 @@ This template provides a minimal setup to get React working in Vite with HMR and Currently, two official plugins are available: -- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh -- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh ## Expanding the ESLint configuration If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: -- Configure the top-level `parserOptions` property like this: +- Configure the top-level `parserOptions` property like this: ```js export default tseslint.config({ - languageOptions: { - // other options... - parserOptions: { - project: ['./tsconfig.node.json', './tsconfig.app.json'], - tsconfigRootDir: import.meta.dirname, + languageOptions: { + // other options... + parserOptions: { + project: ["./tsconfig.node.json", "./tsconfig.app.json"], + tsconfigRootDir: import.meta.dirname, + }, }, - }, -}) +}); ``` -- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked` -- Optionally add `...tseslint.configs.stylisticTypeChecked` -- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config: +- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked` +- Optionally add `...tseslint.configs.stylisticTypeChecked` +- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config: ```js // eslint.config.js -import react from 'eslint-plugin-react' +import react from "eslint-plugin-react"; export default tseslint.config({ - // Set the react version - settings: { react: { version: '18.3' } }, - plugins: { - // Add the react plugin - react, - }, - rules: { - // other rules... - // Enable its recommended rules - ...react.configs.recommended.rules, - ...react.configs['jsx-runtime'].rules, - }, -}) + // Set the react version + settings: { react: { version: "18.3" } }, + plugins: { + // Add the react plugin + react, + }, + rules: { + // other rules... + // Enable its recommended rules + ...react.configs.recommended.rules, + ...react.configs["jsx-runtime"].rules, + }, +}); ``` diff --git a/client/components.json b/client/components.json index 1d282e64084..9efb29d6726 100644 --- a/client/components.json +++ b/client/components.json @@ -1,21 +1,21 @@ { - "$schema": "https://ui.shadcn.com/schema.json", - "style": "new-york", - "rsc": false, - "tsx": true, - "tailwind": { - "config": "tailwind.config.js", - "css": "src/index.css", - "baseColor": "neutral", - "cssVariables": true, - "prefix": "" - }, - "aliases": { - "components": "@/components", - "utils": "@/lib/utils", - "ui": "@/components/ui", - "lib": "@/lib", - "hooks": "@/hooks" - }, - "iconLibrary": "lucide" -} \ No newline at end of file + "$schema": "https://ui.shadcn.com/schema.json", + "style": "new-york", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "tailwind.config.js", + "css": "src/index.css", + "baseColor": "neutral", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "hooks": "@/hooks" + }, + "iconLibrary": "lucide" +} diff --git a/client/eslint.config.js b/client/eslint.config.js index 092408a9f09..9d1c0c63b18 100644 --- a/client/eslint.config.js +++ b/client/eslint.config.js @@ -1,28 +1,28 @@ -import js from '@eslint/js' -import globals from 'globals' -import reactHooks from 'eslint-plugin-react-hooks' -import reactRefresh from 'eslint-plugin-react-refresh' -import tseslint from 'typescript-eslint' +import js from "@eslint/js"; +import globals from "globals"; +import reactHooks from "eslint-plugin-react-hooks"; +import reactRefresh from "eslint-plugin-react-refresh"; +import tseslint from "typescript-eslint"; export default tseslint.config( - { ignores: ['dist'] }, - { - extends: [js.configs.recommended, ...tseslint.configs.recommended], - files: ['**/*.{ts,tsx}'], - languageOptions: { - ecmaVersion: 2020, - globals: globals.browser, - }, - plugins: { - 'react-hooks': reactHooks, - 'react-refresh': reactRefresh, - }, - rules: { - ...reactHooks.configs.recommended.rules, - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, - ], - }, - }, -) + { ignores: ["dist"] }, + { + extends: [js.configs.recommended, ...tseslint.configs.recommended], + files: ["**/*.{ts,tsx}"], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + plugins: { + "react-hooks": reactHooks, + "react-refresh": reactRefresh, + }, + rules: { + ...reactHooks.configs.recommended.rules, + "react-refresh/only-export-components": [ + "warn", + { allowConstantExport: true }, + ], + }, + } +); diff --git a/client/index.html b/client/index.html index e4b78eae123..e0ef3be8332 100644 --- a/client/index.html +++ b/client/index.html @@ -1,13 +1,13 @@ - - - - - Vite + React + TS - - -
- - + + + + + Vite + React + TS + + +
+ + diff --git a/client/postcss.config.js b/client/postcss.config.js index 2e7af2b7f1a..49c0612d5c2 100644 --- a/client/postcss.config.js +++ b/client/postcss.config.js @@ -1,6 +1,6 @@ export default { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; diff --git a/client/src/App.css b/client/src/App.css index b9d355df2a5..f44fb79ad33 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -1,42 +1,42 @@ #root { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - text-align: center; + max-width: 1280px; + margin: 0 auto; + padding: 2rem; + text-align: center; } .logo { - height: 6em; - padding: 1.5em; - will-change: filter; - transition: filter 300ms; + height: 6em; + padding: 1.5em; + will-change: filter; + transition: filter 300ms; } .logo:hover { - filter: drop-shadow(0 0 2em #646cffaa); + filter: drop-shadow(0 0 2em #646cffaa); } .logo.react:hover { - filter: drop-shadow(0 0 2em #61dafbaa); + filter: drop-shadow(0 0 2em #61dafbaa); } @keyframes logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } } @media (prefers-reduced-motion: no-preference) { - a:nth-of-type(2) .logo { - animation: logo-spin infinite 20s linear; - } + a:nth-of-type(2) .logo { + animation: logo-spin infinite 20s linear; + } } .card { - padding: 2em; + padding: 2em; } .read-the-docs { - color: #888; + color: #888; } diff --git a/client/src/components/ui/button.tsx b/client/src/components/ui/button.tsx index 65d4fcd9ca7..8c1b26a1652 100644 --- a/client/src/components/ui/button.tsx +++ b/client/src/components/ui/button.tsx @@ -1,57 +1,57 @@ -import * as React from "react" -import { Slot } from "@radix-ui/react-slot" -import { cva, type VariantProps } from "class-variance-authority" +import * as React from "react"; +import { Slot } from "@radix-ui/react-slot"; +import { cva, type VariantProps } from "class-variance-authority"; -import { cn } from "@/lib/utils" +import { cn } from "@/lib/utils"; const buttonVariants = cva( - "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", - { - variants: { - variant: { - default: - "bg-primary text-primary-foreground shadow hover:bg-primary/90", - destructive: - "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90", - outline: - "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground", - secondary: - "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80", - ghost: "hover:bg-accent hover:text-accent-foreground", - link: "text-primary underline-offset-4 hover:underline", - }, - size: { - default: "h-9 px-4 py-2", - sm: "h-8 rounded-md px-3 text-xs", - lg: "h-10 rounded-md px-8", - icon: "h-9 w-9", - }, - }, - defaultVariants: { - variant: "default", - size: "default", - }, - } -) + "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", + { + variants: { + variant: { + default: + "bg-primary text-primary-foreground shadow hover:bg-primary/90", + destructive: + "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90", + outline: + "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground", + secondary: + "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80", + ghost: "hover:bg-accent hover:text-accent-foreground", + link: "text-primary underline-offset-4 hover:underline", + }, + size: { + default: "h-9 px-4 py-2", + sm: "h-8 rounded-md px-3 text-xs", + lg: "h-10 rounded-md px-8", + icon: "h-9 w-9", + }, + }, + defaultVariants: { + variant: "default", + size: "default", + }, + } +); export interface ButtonProps - extends React.ButtonHTMLAttributes, - VariantProps { - asChild?: boolean + extends React.ButtonHTMLAttributes, + VariantProps { + asChild?: boolean; } const Button = React.forwardRef( - ({ className, variant, size, asChild = false, ...props }, ref) => { - const Comp = asChild ? Slot : "button" - return ( - - ) - } -) -Button.displayName = "Button" + ({ className, variant, size, asChild = false, ...props }, ref) => { + const Comp = asChild ? Slot : "button"; + return ( + + ); + } +); +Button.displayName = "Button"; -export { Button, buttonVariants } +export { Button, buttonVariants }; diff --git a/client/src/components/ui/card.tsx b/client/src/components/ui/card.tsx index cabfbfc59d9..25157bf2d3c 100644 --- a/client/src/components/ui/card.tsx +++ b/client/src/components/ui/card.tsx @@ -1,76 +1,83 @@ -import * as React from "react" +import * as React from "react"; -import { cn } from "@/lib/utils" +import { cn } from "@/lib/utils"; const Card = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes + HTMLDivElement, + React.HTMLAttributes >(({ className, ...props }, ref) => ( -
-)) -Card.displayName = "Card" +
+)); +Card.displayName = "Card"; const CardHeader = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes + HTMLDivElement, + React.HTMLAttributes >(({ className, ...props }, ref) => ( -
-)) -CardHeader.displayName = "CardHeader" +
+)); +CardHeader.displayName = "CardHeader"; const CardTitle = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes + HTMLDivElement, + React.HTMLAttributes >(({ className, ...props }, ref) => ( -
-)) -CardTitle.displayName = "CardTitle" +
+)); +CardTitle.displayName = "CardTitle"; const CardDescription = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes + HTMLDivElement, + React.HTMLAttributes >(({ className, ...props }, ref) => ( -
-)) -CardDescription.displayName = "CardDescription" +
+)); +CardDescription.displayName = "CardDescription"; const CardContent = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes + HTMLDivElement, + React.HTMLAttributes >(({ className, ...props }, ref) => ( -
-)) -CardContent.displayName = "CardContent" +
+)); +CardContent.displayName = "CardContent"; const CardFooter = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes + HTMLDivElement, + React.HTMLAttributes >(({ className, ...props }, ref) => ( -
-)) -CardFooter.displayName = "CardFooter" +
+)); +CardFooter.displayName = "CardFooter"; -export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } +export { + Card, + CardHeader, + CardFooter, + CardTitle, + CardDescription, + CardContent, +}; diff --git a/client/src/components/ui/input.tsx b/client/src/components/ui/input.tsx index 69b64fb2455..9661e332a70 100644 --- a/client/src/components/ui/input.tsx +++ b/client/src/components/ui/input.tsx @@ -1,22 +1,22 @@ -import * as React from "react" +import * as React from "react"; -import { cn } from "@/lib/utils" +import { cn } from "@/lib/utils"; const Input = React.forwardRef>( - ({ className, type, ...props }, ref) => { - return ( - - ) - } -) -Input.displayName = "Input" + ({ className, type, ...props }, ref) => { + return ( + + ); + } +); +Input.displayName = "Input"; -export { Input } +export { Input }; diff --git a/client/src/index.css b/client/src/index.css index e3adb31bcb2..afc95589b40 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -3,67 +3,67 @@ @tailwind utilities; @layer base { - :root { - --background: 0 0% 100%; - --foreground: 20 14.3% 4.1%; - --card: 0 0% 100%; - --card-foreground: 20 14.3% 4.1%; - --popover: 0 0% 100%; - --popover-foreground: 20 14.3% 4.1%; - --primary: 24.6 95% 53.1%; - --primary-foreground: 60 9.1% 97.8%; - --secondary: 60 4.8% 95.9%; - --secondary-foreground: 24 9.8% 10%; - --muted: 60 4.8% 95.9%; - --muted-foreground: 25 5.3% 44.7%; - --accent: 60 4.8% 95.9%; - --accent-foreground: 24 9.8% 10%; - --destructive: 0 84.2% 60.2%; - --destructive-foreground: 60 9.1% 97.8%; - --border: 20 5.9% 90%; - --input: 20 5.9% 90%; - --ring: 24.6 95% 53.1%; - --radius: 0.5rem; - --chart-1: 12 76% 61%; - --chart-2: 173 58% 39%; - --chart-3: 197 37% 24%; - --chart-4: 43 74% 66%; - --chart-5: 27 87% 67%; - } + :root { + --background: 0 0% 100%; + --foreground: 20 14.3% 4.1%; + --card: 0 0% 100%; + --card-foreground: 20 14.3% 4.1%; + --popover: 0 0% 100%; + --popover-foreground: 20 14.3% 4.1%; + --primary: 24.6 95% 53.1%; + --primary-foreground: 60 9.1% 97.8%; + --secondary: 60 4.8% 95.9%; + --secondary-foreground: 24 9.8% 10%; + --muted: 60 4.8% 95.9%; + --muted-foreground: 25 5.3% 44.7%; + --accent: 60 4.8% 95.9%; + --accent-foreground: 24 9.8% 10%; + --destructive: 0 84.2% 60.2%; + --destructive-foreground: 60 9.1% 97.8%; + --border: 20 5.9% 90%; + --input: 20 5.9% 90%; + --ring: 24.6 95% 53.1%; + --radius: 0.5rem; + --chart-1: 12 76% 61%; + --chart-2: 173 58% 39%; + --chart-3: 197 37% 24%; + --chart-4: 43 74% 66%; + --chart-5: 27 87% 67%; + } - .dark { - --background: 20 14.3% 4.1%; - --foreground: 60 9.1% 97.8%; - --card: 20 14.3% 4.1%; - --card-foreground: 60 9.1% 97.8%; - --popover: 20 14.3% 4.1%; - --popover-foreground: 60 9.1% 97.8%; - --primary: 20.5 90.2% 48.2%; - --primary-foreground: 60 9.1% 97.8%; - --secondary: 12 6.5% 15.1%; - --secondary-foreground: 60 9.1% 97.8%; - --muted: 12 6.5% 15.1%; - --muted-foreground: 24 5.4% 63.9%; - --accent: 12 6.5% 15.1%; - --accent-foreground: 60 9.1% 97.8%; - --destructive: 0 72.2% 50.6%; - --destructive-foreground: 60 9.1% 97.8%; - --border: 12 6.5% 15.1%; - --input: 12 6.5% 15.1%; - --ring: 20.5 90.2% 48.2%; - --chart-1: 220 70% 50%; - --chart-2: 160 60% 45%; - --chart-3: 30 80% 55%; - --chart-4: 280 65% 60%; - --chart-5: 340 75% 55%; - } + .dark { + --background: 20 14.3% 4.1%; + --foreground: 60 9.1% 97.8%; + --card: 20 14.3% 4.1%; + --card-foreground: 60 9.1% 97.8%; + --popover: 20 14.3% 4.1%; + --popover-foreground: 60 9.1% 97.8%; + --primary: 20.5 90.2% 48.2%; + --primary-foreground: 60 9.1% 97.8%; + --secondary: 12 6.5% 15.1%; + --secondary-foreground: 60 9.1% 97.8%; + --muted: 12 6.5% 15.1%; + --muted-foreground: 24 5.4% 63.9%; + --accent: 12 6.5% 15.1%; + --accent-foreground: 60 9.1% 97.8%; + --destructive: 0 72.2% 50.6%; + --destructive-foreground: 60 9.1% 97.8%; + --border: 12 6.5% 15.1%; + --input: 12 6.5% 15.1%; + --ring: 20.5 90.2% 48.2%; + --chart-1: 220 70% 50%; + --chart-2: 160 60% 45%; + --chart-3: 30 80% 55%; + --chart-4: 280 65% 60%; + --chart-5: 340 75% 55%; + } } @layer base { - * { - @apply border-border; - } - body { - @apply bg-background text-foreground; - } + * { + @apply border-border; + } + body { + @apply bg-background text-foreground; + } } diff --git a/client/src/lib/utils.ts b/client/src/lib/utils.ts index bd0c391ddd1..e6a8be071e9 100644 --- a/client/src/lib/utils.ts +++ b/client/src/lib/utils.ts @@ -1,6 +1,6 @@ -import { clsx, type ClassValue } from "clsx" -import { twMerge } from "tailwind-merge" +import { clsx, type ClassValue } from "clsx"; +import { twMerge } from "tailwind-merge"; export function cn(...inputs: ClassValue[]) { - return twMerge(clsx(inputs)) + return twMerge(clsx(inputs)); } diff --git a/client/tailwind.config.js b/client/tailwind.config.js index e25bb17e42d..295d4283663 100644 --- a/client/tailwind.config.js +++ b/client/tailwind.config.js @@ -3,55 +3,55 @@ export default { darkMode: ["class"], content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"], theme: { - extend: { - borderRadius: { - lg: 'var(--radius)', - md: 'calc(var(--radius) - 2px)', - sm: 'calc(var(--radius) - 4px)' - }, - colors: { - background: 'hsl(var(--background))', - foreground: 'hsl(var(--foreground))', - card: { - DEFAULT: 'hsl(var(--card))', - foreground: 'hsl(var(--card-foreground))' - }, - popover: { - DEFAULT: 'hsl(var(--popover))', - foreground: 'hsl(var(--popover-foreground))' - }, - primary: { - DEFAULT: 'hsl(var(--primary))', - foreground: 'hsl(var(--primary-foreground))' - }, - secondary: { - DEFAULT: 'hsl(var(--secondary))', - foreground: 'hsl(var(--secondary-foreground))' - }, - muted: { - DEFAULT: 'hsl(var(--muted))', - foreground: 'hsl(var(--muted-foreground))' - }, - accent: { - DEFAULT: 'hsl(var(--accent))', - foreground: 'hsl(var(--accent-foreground))' - }, - destructive: { - DEFAULT: 'hsl(var(--destructive))', - foreground: 'hsl(var(--destructive-foreground))' - }, - border: 'hsl(var(--border))', - input: 'hsl(var(--input))', - ring: 'hsl(var(--ring))', - chart: { - '1': 'hsl(var(--chart-1))', - '2': 'hsl(var(--chart-2))', - '3': 'hsl(var(--chart-3))', - '4': 'hsl(var(--chart-4))', - '5': 'hsl(var(--chart-5))' - } - } - } + extend: { + borderRadius: { + lg: "var(--radius)", + md: "calc(var(--radius) - 2px)", + sm: "calc(var(--radius) - 4px)", + }, + colors: { + background: "hsl(var(--background))", + foreground: "hsl(var(--foreground))", + card: { + DEFAULT: "hsl(var(--card))", + foreground: "hsl(var(--card-foreground))", + }, + popover: { + DEFAULT: "hsl(var(--popover))", + foreground: "hsl(var(--popover-foreground))", + }, + primary: { + DEFAULT: "hsl(var(--primary))", + foreground: "hsl(var(--primary-foreground))", + }, + secondary: { + DEFAULT: "hsl(var(--secondary))", + foreground: "hsl(var(--secondary-foreground))", + }, + muted: { + DEFAULT: "hsl(var(--muted))", + foreground: "hsl(var(--muted-foreground))", + }, + accent: { + DEFAULT: "hsl(var(--accent))", + foreground: "hsl(var(--accent-foreground))", + }, + destructive: { + DEFAULT: "hsl(var(--destructive))", + foreground: "hsl(var(--destructive-foreground))", + }, + border: "hsl(var(--border))", + input: "hsl(var(--input))", + ring: "hsl(var(--ring))", + chart: { + 1: "hsl(var(--chart-1))", + 2: "hsl(var(--chart-2))", + 3: "hsl(var(--chart-3))", + 4: "hsl(var(--chart-4))", + 5: "hsl(var(--chart-5))", + }, + }, + }, }, plugins: [require("tailwindcss-animate")], }; diff --git a/docs/README_FR.md b/docs/README_FR.md index e02f71c0dad..a337222ff2a 100644 --- a/docs/README_FR.md +++ b/docs/README_FR.md @@ -18,9 +18,9 @@ _Utilisée dans [@DegenSpartanAI](https://x.com/degenspartanai) et [@MarcAIndree **Pré-requis (obligatoire) :** -- [Python 2.7+](https://www.python.org/downloads/) -- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) -- [pnpm](https://pnpm.io/installation) +- [Python 2.7+](https://www.python.org/downloads/) +- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) +- [pnpm](https://pnpm.io/installation) ### Edit the .env file @@ -32,12 +32,12 @@ _Utilisée dans [@DegenSpartanAI](https://x.com/degenspartanai) et [@MarcAIndree 1. Ouvrir le document `src/core/defaultCharacter.ts` afin de modifier le personnage par défaut 2. Pour ajouter des personnages personnalisés : - - Lancer la commande `pnpm start --characters="path/to/your/character.json"` - - Plusieurs fichiers personnages peuvent être ajoutés en même temps + - Lancer la commande `pnpm start --characters="path/to/your/character.json"` + - Plusieurs fichiers personnages peuvent être ajoutés en même temps ### Lancer Eliza -Après avoir terminé la configuration et les fichiers personnage, lancer le bot en tapant la ligne de commande suivante: +Après avoir terminé la configuration et les fichiers personnage, lancer le bot en tapant la ligne de commande suivante: ```bash pnpm i @@ -70,7 +70,7 @@ Vous pouvez exécuter le modèle OpenAI en définissant la variable d’environn ## Ressources additionnelles -Il vous faudra peut-être installer Sharp. +Il vous faudra peut-être installer Sharp. Si il y a une erreur lors du lancement du bot, essayez d'installer Sharp comme ceci : ``` @@ -88,7 +88,7 @@ DISCORD_API_TOKEN= # Bot token OPENAI_API_KEY=sk-* # OpenAI API key, starting with sk- ELEVENLABS_XI_API_KEY= # API key from elevenlabs -# Parmètres ELEVENLABS +# Parmètres ELEVENLABS ELEVENLABS_MODEL_ID=eleven_multilingual_v2 ELEVENLABS_VOICE_ID=21m00Tcm4TlvDq8ikWAM ELEVENLABS_VOICE_STABILITY=0.5 @@ -149,7 +149,7 @@ Llama](#run-with-llama) - Vous pouvez laisser les valeurs X_SERVER_URL et XAI_AP # Clients -## Bot Discord +## Bot Discord Pour savoir comment configurer votre bot Discord, vous pouvez consulter la documentation officielle de Discord : https://discordjs.guide/preparations/setting-up-a-bot-application.html diff --git a/docs/api/classes/AgentRuntime.md b/docs/api/classes/AgentRuntime.md index 8987bd1b35d..4221daffd88 100644 --- a/docs/api/classes/AgentRuntime.md +++ b/docs/api/classes/AgentRuntime.md @@ -97,7 +97,7 @@ The ID of the agent [packages/core/src/runtime.ts:59](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L59) -*** +--- ### serverUrl @@ -113,7 +113,7 @@ The base URL of the server where the agent's requests are processed. [packages/core/src/runtime.ts:63](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L63) -*** +--- ### databaseAdapter @@ -129,7 +129,7 @@ The database adapter used for interacting with the database. [packages/core/src/runtime.ts:68](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L68) -*** +--- ### token @@ -145,7 +145,7 @@ Authentication token used for securing requests. [packages/core/src/runtime.ts:73](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L73) -*** +--- ### actions @@ -161,7 +161,7 @@ Custom actions that the agent can perform. [packages/core/src/runtime.ts:78](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L78) -*** +--- ### evaluators @@ -177,7 +177,7 @@ Evaluators used to assess and guide the agent's responses. [packages/core/src/runtime.ts:83](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L83) -*** +--- ### providers @@ -193,7 +193,7 @@ Context providers used to provide context for message generation. [packages/core/src/runtime.ts:88](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L88) -*** +--- ### modelProvider @@ -209,7 +209,7 @@ The model to use for generateText. [packages/core/src/runtime.ts:93](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L93) -*** +--- ### fetch() @@ -244,7 +244,7 @@ Some environments may not have access to the global fetch function and need a cu [packages/core/src/runtime.ts:99](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L99) -*** +--- ### character @@ -260,7 +260,7 @@ The character to use for the agent [packages/core/src/runtime.ts:104](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L104) -*** +--- ### messageManager @@ -276,7 +276,7 @@ Store messages that are sent and received by the agent. [packages/core/src/runtime.ts:109](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L109) -*** +--- ### descriptionManager @@ -292,7 +292,7 @@ Store and recall descriptions of users based on conversations. [packages/core/src/runtime.ts:114](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L114) -*** +--- ### loreManager @@ -308,7 +308,7 @@ Manage the creation and recall of static information (documents, historical game [packages/core/src/runtime.ts:119](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L119) -*** +--- ### documentsManager @@ -320,7 +320,7 @@ Hold large documents that can be referenced [packages/core/src/runtime.ts:124](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L124) -*** +--- ### knowledgeManager @@ -332,7 +332,7 @@ Searchable document fragments [packages/core/src/runtime.ts:129](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L129) -*** +--- ### services @@ -346,7 +346,7 @@ Searchable document fragments [packages/core/src/runtime.ts:131](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L131) -*** +--- ### memoryManagers @@ -378,7 +378,7 @@ Searchable document fragments [packages/core/src/runtime.ts:134](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L134) -*** +--- ### getMemoryManager() @@ -400,11 +400,11 @@ Searchable document fragments [packages/core/src/runtime.ts:149](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L149) -*** +--- ### getService() -> **getService**(`service`): *typeof* [`Service`](Service.md) +> **getService**(`service`): _typeof_ [`Service`](Service.md) #### Parameters @@ -412,7 +412,7 @@ Searchable document fragments #### Returns -*typeof* [`Service`](Service.md) +_typeof_ [`Service`](Service.md) #### Implementation of @@ -422,7 +422,7 @@ Searchable document fragments [packages/core/src/runtime.ts:153](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L153) -*** +--- ### registerService() @@ -444,7 +444,7 @@ Searchable document fragments [packages/core/src/runtime.ts:161](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L161) -*** +--- ### getSetting() @@ -466,7 +466,7 @@ Searchable document fragments [packages/core/src/runtime.ts:368](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L368) -*** +--- ### getConversationLength() @@ -488,7 +488,7 @@ The number of recent messages to be kept in memory. [packages/core/src/runtime.ts:390](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L390) -*** +--- ### registerAction() @@ -514,7 +514,7 @@ The action to register. [packages/core/src/runtime.ts:398](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L398) -*** +--- ### registerEvaluator() @@ -536,7 +536,7 @@ The evaluator to register. [packages/core/src/runtime.ts:407](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L407) -*** +--- ### registerContextProvider() @@ -558,7 +558,7 @@ The context provider to register. [packages/core/src/runtime.ts:415](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L415) -*** +--- ### processActions() @@ -590,7 +590,7 @@ The message to process. [packages/core/src/runtime.ts:424](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L424) -*** +--- ### evaluate() @@ -626,7 +626,7 @@ The results of the evaluation. [packages/core/src/runtime.ts:497](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L497) -*** +--- ### ensureParticipantExists() @@ -658,7 +658,7 @@ An error if the participant cannot be added. [packages/core/src/runtime.ts:567](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L567) -*** +--- ### ensureUserExists() @@ -694,7 +694,7 @@ The user name to ensure the existence of. [packages/core/src/runtime.ts:583](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L583) -*** +--- ### ensureParticipantInRoom() @@ -718,7 +718,7 @@ The user name to ensure the existence of. [packages/core/src/runtime.ts:603](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L603) -*** +--- ### ensureConnection() @@ -748,7 +748,7 @@ The user name to ensure the existence of. [packages/core/src/runtime.ts:614](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L614) -*** +--- ### ensureRoomExists() @@ -779,7 +779,7 @@ An error if the room cannot be created. [packages/core/src/runtime.ts:650](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L650) -*** +--- ### composeState() @@ -809,7 +809,7 @@ The state of the agent. [packages/core/src/runtime.ts:663](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L663) -*** +--- ### updateRecentMessageState() diff --git a/docs/api/classes/DatabaseAdapter.md b/docs/api/classes/DatabaseAdapter.md index 74de091a3ec..26e39894ed1 100644 --- a/docs/api/classes/DatabaseAdapter.md +++ b/docs/api/classes/DatabaseAdapter.md @@ -63,7 +63,7 @@ A Promise that resolves to the Account object or null if not found. [packages/core/src/database.ts:27](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L27) -*** +--- ### createAccount() @@ -91,7 +91,7 @@ A Promise that resolves when the account creation is complete. [packages/core/src/database.ts:34](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L34) -*** +--- ### getMemories() @@ -127,7 +127,7 @@ A Promise that resolves to an array of Memory objects. [packages/core/src/database.ts:41](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L41) -*** +--- ### getMemoriesByRoomIds() @@ -155,7 +155,7 @@ A Promise that resolves to an array of Memory objects. [packages/core/src/database.ts:48](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L48) -*** +--- ### getMemoryById() @@ -177,7 +177,7 @@ A Promise that resolves to an array of Memory objects. [packages/core/src/database.ts:54](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L54) -*** +--- ### getCachedEmbeddings() @@ -191,17 +191,17 @@ Retrieves cached embeddings based on the specified query parameters. An object containing parameters for the embedding retrieval. -• **params.query\_table\_name**: `string` +• **params.query_table_name**: `string` -• **params.query\_threshold**: `number` +• **params.query_threshold**: `number` -• **params.query\_input**: `string` +• **params.query_input**: `string` -• **params.query\_field\_name**: `string` +• **params.query_field_name**: `string` -• **params.query\_field\_sub\_name**: `string` +• **params.query_field_sub_name**: `string` -• **params.query\_match\_count**: `number` +• **params.query_match_count**: `number` #### Returns @@ -217,7 +217,7 @@ A Promise that resolves to an array of objects containing embeddings and levensh [packages/core/src/database.ts:61](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L61) -*** +--- ### log() @@ -253,7 +253,7 @@ A Promise that resolves when the log entry has been saved. [packages/core/src/database.ts:87](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L87) -*** +--- ### getActorDetails() @@ -283,7 +283,7 @@ A Promise that resolves to an array of Actor objects. [packages/core/src/database.ts:99](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L99) -*** +--- ### searchMemories() @@ -303,9 +303,9 @@ An object containing parameters for the memory search. • **params.embedding**: `number`[] -• **params.match\_threshold**: `number` +• **params.match_threshold**: `number` -• **params.match\_count**: `number` +• **params.match_count**: `number` • **params.unique**: `boolean` @@ -323,7 +323,7 @@ A Promise that resolves to an array of Memory objects. [packages/core/src/database.ts:106](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L106) -*** +--- ### updateGoalStatus() @@ -355,7 +355,7 @@ A Promise that resolves when the goal status has been updated. [packages/core/src/database.ts:120](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L120) -*** +--- ### searchMemoriesByEmbedding() @@ -373,7 +373,7 @@ The embedding vector to search with. Additional parameters for the search. -• **params.match\_threshold?**: `number` +• **params.match_threshold?**: `number` • **params.count?**: `number` @@ -399,7 +399,7 @@ A Promise that resolves to an array of Memory objects. [packages/core/src/database.ts:131](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L131) -*** +--- ### createMemory() @@ -435,7 +435,7 @@ A Promise that resolves when the memory has been created. [packages/core/src/database.ts:150](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L150) -*** +--- ### removeMemory() @@ -467,7 +467,7 @@ A Promise that resolves when the memory has been removed. [packages/core/src/database.ts:162](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L162) -*** +--- ### removeAllMemories() @@ -499,7 +499,7 @@ A Promise that resolves when all memories have been removed. [packages/core/src/database.ts:170](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L170) -*** +--- ### countMemories() @@ -535,7 +535,7 @@ A Promise that resolves to the number of memories. [packages/core/src/database.ts:179](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L179) -*** +--- ### getGoals() @@ -571,7 +571,7 @@ A Promise that resolves to an array of Goal objects. [packages/core/src/database.ts:190](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L190) -*** +--- ### updateGoal() @@ -599,7 +599,7 @@ A Promise that resolves when the goal has been updated. [packages/core/src/database.ts:202](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L202) -*** +--- ### createGoal() @@ -627,7 +627,7 @@ A Promise that resolves when the goal has been created. [packages/core/src/database.ts:209](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L209) -*** +--- ### removeGoal() @@ -655,7 +655,7 @@ A Promise that resolves when the goal has been removed. [packages/core/src/database.ts:216](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L216) -*** +--- ### removeAllGoals() @@ -683,7 +683,7 @@ A Promise that resolves when all goals have been removed. [packages/core/src/database.ts:223](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L223) -*** +--- ### getRoom() @@ -711,7 +711,7 @@ A Promise that resolves to the room ID or null if not found. [packages/core/src/database.ts:230](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L230) -*** +--- ### createRoom() @@ -739,7 +739,7 @@ A Promise that resolves to the UUID of the created room. [packages/core/src/database.ts:237](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L237) -*** +--- ### removeRoom() @@ -767,7 +767,7 @@ A Promise that resolves when the room has been removed. [packages/core/src/database.ts:244](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L244) -*** +--- ### getRoomsForParticipant() @@ -795,7 +795,7 @@ A Promise that resolves to an array of room IDs. [packages/core/src/database.ts:251](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L251) -*** +--- ### getRoomsForParticipants() @@ -823,7 +823,7 @@ A Promise that resolves to an array of room IDs. [packages/core/src/database.ts:258](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L258) -*** +--- ### addParticipant() @@ -855,7 +855,7 @@ A Promise that resolves to a boolean indicating success or failure. [packages/core/src/database.ts:266](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L266) -*** +--- ### removeParticipant() @@ -887,7 +887,7 @@ A Promise that resolves to a boolean indicating success or failure. [packages/core/src/database.ts:274](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L274) -*** +--- ### getParticipantsForAccount() @@ -943,7 +943,7 @@ A Promise that resolves to an array of Participant objects. [packages/core/src/database.ts:288](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L288) -*** +--- ### getParticipantsForRoom() @@ -971,7 +971,7 @@ A Promise that resolves to an array of UUIDs representing the participants. [packages/core/src/database.ts:295](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L295) -*** +--- ### getParticipantUserState() @@ -995,7 +995,7 @@ A Promise that resolves to an array of UUIDs representing the participants. [packages/core/src/database.ts:297](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L297) -*** +--- ### setParticipantUserState() @@ -1021,7 +1021,7 @@ A Promise that resolves to an array of UUIDs representing the participants. [packages/core/src/database.ts:301](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L301) -*** +--- ### createRelationship() @@ -1053,7 +1053,7 @@ A Promise that resolves to a boolean indicating success or failure of the creati [packages/core/src/database.ts:312](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L312) -*** +--- ### getRelationship() @@ -1085,7 +1085,7 @@ A Promise that resolves to the Relationship object or null if not found. [packages/core/src/database.ts:322](https://github.com/ai16z/eliza/blob/main/packages/core/src/database.ts#L322) -*** +--- ### getRelationships() diff --git a/docs/api/classes/MemoryManager.md b/docs/api/classes/MemoryManager.md index 8beb89e784c..c7991909787 100644 --- a/docs/api/classes/MemoryManager.md +++ b/docs/api/classes/MemoryManager.md @@ -54,7 +54,7 @@ The AgentRuntime instance associated with this manager. [packages/core/src/memory.ts:22](https://github.com/ai16z/eliza/blob/main/packages/core/src/memory.ts#L22) -*** +--- ### tableName @@ -98,7 +98,7 @@ A Promise resolving to the memory object, potentially updated with an embedding [packages/core/src/memory.ts:45](https://github.com/ai16z/eliza/blob/main/packages/core/src/memory.ts#L45) -*** +--- ### getMemories() @@ -144,7 +144,7 @@ A Promise resolving to an array of Memory objects. [packages/core/src/memory.ts:66](https://github.com/ai16z/eliza/blob/main/packages/core/src/memory.ts#L66) -*** +--- ### getCachedEmbeddings() @@ -166,7 +166,7 @@ A Promise resolving to an array of Memory objects. [packages/core/src/memory.ts:93](https://github.com/ai16z/eliza/blob/main/packages/core/src/memory.ts#L93) -*** +--- ### searchMemoriesByEmbedding() @@ -184,7 +184,7 @@ The embedding vector to search with. Options including match threshold, count, user IDs, and uniqueness. -• **opts.match\_threshold?**: `number` +• **opts.match_threshold?**: `number` The similarity threshold for matching memories. @@ -216,7 +216,7 @@ A Promise resolving to an array of Memory objects that match the embedding. [packages/core/src/memory.ts:120](https://github.com/ai16z/eliza/blob/main/packages/core/src/memory.ts#L120) -*** +--- ### createMemory() @@ -248,7 +248,7 @@ A Promise that resolves when the operation completes. [packages/core/src/memory.ts:158](https://github.com/ai16z/eliza/blob/main/packages/core/src/memory.ts#L158) -*** +--- ### getMemoriesByRoomIds() @@ -274,7 +274,7 @@ A Promise that resolves when the operation completes. [packages/core/src/memory.ts:173](https://github.com/ai16z/eliza/blob/main/packages/core/src/memory.ts#L173) -*** +--- ### getMemoryById() @@ -296,7 +296,7 @@ A Promise that resolves when the operation completes. [packages/core/src/memory.ts:184](https://github.com/ai16z/eliza/blob/main/packages/core/src/memory.ts#L184) -*** +--- ### removeMemory() @@ -324,7 +324,7 @@ A Promise that resolves when the operation completes. [packages/core/src/memory.ts:194](https://github.com/ai16z/eliza/blob/main/packages/core/src/memory.ts#L194) -*** +--- ### removeAllMemories() @@ -352,7 +352,7 @@ A Promise that resolves when the operation completes. [packages/core/src/memory.ts:206](https://github.com/ai16z/eliza/blob/main/packages/core/src/memory.ts#L206) -*** +--- ### countMemories() diff --git a/docs/api/classes/Service.md b/docs/api/classes/Service.md index ac9a27129a1..472c53012bd 100644 --- a/docs/api/classes/Service.md +++ b/docs/api/classes/Service.md @@ -40,7 +40,7 @@ #### Type Parameters -• **T** *extends* [`Service`](Service.md) +• **T** _extends_ [`Service`](Service.md) #### Returns diff --git a/docs/api/enumerations/Clients.md b/docs/api/enumerations/Clients.md index 9dd05e6ceb9..4822e4915e4 100644 --- a/docs/api/enumerations/Clients.md +++ b/docs/api/enumerations/Clients.md @@ -12,7 +12,7 @@ [packages/core/src/types.ts:323](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L323) -*** +--- ### DIRECT @@ -22,7 +22,7 @@ [packages/core/src/types.ts:324](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L324) -*** +--- ### TWITTER @@ -32,7 +32,7 @@ [packages/core/src/types.ts:325](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L325) -*** +--- ### TELEGRAM diff --git a/docs/api/enumerations/GoalStatus.md b/docs/api/enumerations/GoalStatus.md index f8c11f9fc2a..1608c034ed1 100644 --- a/docs/api/enumerations/GoalStatus.md +++ b/docs/api/enumerations/GoalStatus.md @@ -12,7 +12,7 @@ [packages/core/src/types.ts:57](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L57) -*** +--- ### FAILED @@ -22,11 +22,11 @@ [packages/core/src/types.ts:58](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L58) -*** +--- -### IN\_PROGRESS +### IN_PROGRESS -> **IN\_PROGRESS**: `"IN_PROGRESS"` +> **IN_PROGRESS**: `"IN_PROGRESS"` #### Defined in diff --git a/docs/api/enumerations/ModelClass.md b/docs/api/enumerations/ModelClass.md index 2ee04c649b4..d4f3cafaf3f 100644 --- a/docs/api/enumerations/ModelClass.md +++ b/docs/api/enumerations/ModelClass.md @@ -12,7 +12,7 @@ [packages/core/src/types.ts:75](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L75) -*** +--- ### MEDIUM @@ -22,7 +22,7 @@ [packages/core/src/types.ts:76](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L76) -*** +--- ### LARGE @@ -32,7 +32,7 @@ [packages/core/src/types.ts:77](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L77) -*** +--- ### EMBEDDING @@ -42,7 +42,7 @@ [packages/core/src/types.ts:78](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L78) -*** +--- ### IMAGE diff --git a/docs/api/enumerations/ModelProviderName.md b/docs/api/enumerations/ModelProviderName.md index 46a1d05618d..92560871762 100644 --- a/docs/api/enumerations/ModelProviderName.md +++ b/docs/api/enumerations/ModelProviderName.md @@ -12,7 +12,7 @@ [packages/core/src/types.ts:121](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L121) -*** +--- ### ANTHROPIC @@ -22,7 +22,7 @@ [packages/core/src/types.ts:122](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L122) -*** +--- ### GROK @@ -32,7 +32,7 @@ [packages/core/src/types.ts:123](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L123) -*** +--- ### GROQ @@ -42,7 +42,7 @@ [packages/core/src/types.ts:124](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L124) -*** +--- ### LLAMACLOUD @@ -52,7 +52,7 @@ [packages/core/src/types.ts:125](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L125) -*** +--- ### LLAMALOCAL @@ -62,7 +62,7 @@ [packages/core/src/types.ts:126](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L126) -*** +--- ### GOOGLE @@ -72,17 +72,17 @@ [packages/core/src/types.ts:127](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L127) -*** +--- -### CLAUDE\_VERTEX +### CLAUDE_VERTEX -> **CLAUDE\_VERTEX**: `"claude_vertex"` +> **CLAUDE_VERTEX**: `"claude_vertex"` #### Defined in [packages/core/src/types.ts:128](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L128) -*** +--- ### REDPILL @@ -92,7 +92,7 @@ [packages/core/src/types.ts:129](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L129) -*** +--- ### OPENROUTER @@ -102,7 +102,7 @@ [packages/core/src/types.ts:130](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L130) -*** +--- ### OLLAMA @@ -112,7 +112,7 @@ [packages/core/src/types.ts:131](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L131) -*** +--- ### HEURIST diff --git a/docs/api/enumerations/ServiceType.md b/docs/api/enumerations/ServiceType.md index 340e1987e01..ab704c6558d 100644 --- a/docs/api/enumerations/ServiceType.md +++ b/docs/api/enumerations/ServiceType.md @@ -4,15 +4,15 @@ ## Enumeration Members -### IMAGE\_DESCRIPTION +### IMAGE_DESCRIPTION -> **IMAGE\_DESCRIPTION**: `"image_description"` +> **IMAGE_DESCRIPTION**: `"image_description"` #### Defined in [packages/core/src/types.ts:658](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L658) -*** +--- ### TRANSCRIPTION @@ -22,7 +22,7 @@ [packages/core/src/types.ts:659](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L659) -*** +--- ### VIDEO @@ -32,17 +32,17 @@ [packages/core/src/types.ts:660](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L660) -*** +--- -### TEXT\_GENERATION +### TEXT_GENERATION -> **TEXT\_GENERATION**: `"text_generation"` +> **TEXT_GENERATION**: `"text_generation"` #### Defined in [packages/core/src/types.ts:661](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L661) -*** +--- ### BROWSER @@ -52,17 +52,17 @@ [packages/core/src/types.ts:662](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L662) -*** +--- -### SPEECH\_GENERATION +### SPEECH_GENERATION -> **SPEECH\_GENERATION**: `"speech_generation"` +> **SPEECH_GENERATION**: `"speech_generation"` #### Defined in [packages/core/src/types.ts:663](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L663) -*** +--- ### PDF diff --git a/docs/api/interfaces/Account.md b/docs/api/interfaces/Account.md index 3591b68e7b1..b28d0af497d 100644 --- a/docs/api/interfaces/Account.md +++ b/docs/api/interfaces/Account.md @@ -14,7 +14,7 @@ Represents a user, including their name, details, and a unique identifier. [packages/core/src/types.ts:275](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L275) -*** +--- ### name @@ -24,7 +24,7 @@ Represents a user, including their name, details, and a unique identifier. [packages/core/src/types.ts:276](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L276) -*** +--- ### username @@ -34,7 +34,7 @@ Represents a user, including their name, details, and a unique identifier. [packages/core/src/types.ts:277](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L277) -*** +--- ### details? @@ -42,13 +42,13 @@ Represents a user, including their name, details, and a unique identifier. #### Index Signature - \[`key`: `string`\]: `any` +\[`key`: `string`\]: `any` #### Defined in [packages/core/src/types.ts:278](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L278) -*** +--- ### email? @@ -58,7 +58,7 @@ Represents a user, including their name, details, and a unique identifier. [packages/core/src/types.ts:279](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L279) -*** +--- ### avatarUrl? diff --git a/docs/api/interfaces/Action.md b/docs/api/interfaces/Action.md index 65ea3990aba..f60a0f9bddf 100644 --- a/docs/api/interfaces/Action.md +++ b/docs/api/interfaces/Action.md @@ -14,7 +14,7 @@ Represents an action that the agent can perform, including conditions for its us [packages/core/src/types.ts:217](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L217) -*** +--- ### description @@ -24,7 +24,7 @@ Represents an action that the agent can perform, including conditions for its us [packages/core/src/types.ts:218](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L218) -*** +--- ### examples @@ -34,7 +34,7 @@ Represents an action that the agent can perform, including conditions for its us [packages/core/src/types.ts:219](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L219) -*** +--- ### handler @@ -44,7 +44,7 @@ Represents an action that the agent can perform, including conditions for its us [packages/core/src/types.ts:220](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L220) -*** +--- ### name @@ -54,7 +54,7 @@ Represents an action that the agent can perform, including conditions for its us [packages/core/src/types.ts:221](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L221) -*** +--- ### validate diff --git a/docs/api/interfaces/ActionExample.md b/docs/api/interfaces/ActionExample.md index 4b9857324df..c17ef42017f 100644 --- a/docs/api/interfaces/ActionExample.md +++ b/docs/api/interfaces/ActionExample.md @@ -14,7 +14,7 @@ Represents an example of content, typically used for demonstrating or testing pu [packages/core/src/types.ts:25](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L25) -*** +--- ### content diff --git a/docs/api/interfaces/Actor.md b/docs/api/interfaces/Actor.md index f6d2aac0238..0e613ce860c 100644 --- a/docs/api/interfaces/Actor.md +++ b/docs/api/interfaces/Actor.md @@ -14,7 +14,7 @@ Represents an actor in the conversation, which could be a user or the agent itse [packages/core/src/types.ts:41](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L41) -*** +--- ### username @@ -24,7 +24,7 @@ Represents an actor in the conversation, which could be a user or the agent itse [packages/core/src/types.ts:42](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L42) -*** +--- ### details @@ -46,7 +46,7 @@ Represents an actor in the conversation, which could be a user or the agent itse [packages/core/src/types.ts:43](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L43) -*** +--- ### id diff --git a/docs/api/interfaces/Content.md b/docs/api/interfaces/Content.md index 8ed06147ca9..fbdbbdc6491 100644 --- a/docs/api/interfaces/Content.md +++ b/docs/api/interfaces/Content.md @@ -6,7 +6,7 @@ Represents the content of a message, including its main text (`content`), any as ## Indexable - \[`key`: `string`\]: `unknown` +\[`key`: `string`\]: `unknown` ## Properties @@ -18,7 +18,7 @@ Represents the content of a message, including its main text (`content`), any as [packages/core/src/types.ts:12](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L12) -*** +--- ### action? @@ -28,7 +28,7 @@ Represents the content of a message, including its main text (`content`), any as [packages/core/src/types.ts:13](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L13) -*** +--- ### source? @@ -38,7 +38,7 @@ Represents the content of a message, including its main text (`content`), any as [packages/core/src/types.ts:14](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L14) -*** +--- ### url? @@ -48,7 +48,7 @@ Represents the content of a message, including its main text (`content`), any as [packages/core/src/types.ts:15](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L15) -*** +--- ### inReplyTo? @@ -58,7 +58,7 @@ Represents the content of a message, including its main text (`content`), any as [packages/core/src/types.ts:16](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L16) -*** +--- ### attachments? diff --git a/docs/api/interfaces/ConversationExample.md b/docs/api/interfaces/ConversationExample.md index 85d70796dd2..28f7f975a5d 100644 --- a/docs/api/interfaces/ConversationExample.md +++ b/docs/api/interfaces/ConversationExample.md @@ -14,7 +14,7 @@ Represents an example of content, typically used for demonstrating or testing pu [packages/core/src/types.ts:33](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L33) -*** +--- ### content diff --git a/docs/api/interfaces/EvaluationExample.md b/docs/api/interfaces/EvaluationExample.md index 69a591cab26..c1dab7cea23 100644 --- a/docs/api/interfaces/EvaluationExample.md +++ b/docs/api/interfaces/EvaluationExample.md @@ -14,7 +14,7 @@ Represents an example for evaluation, including the context, an array of message [packages/core/src/types.ts:229](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L229) -*** +--- ### messages @@ -24,7 +24,7 @@ Represents an example for evaluation, including the context, an array of message [packages/core/src/types.ts:230](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L230) -*** +--- ### outcome diff --git a/docs/api/interfaces/Evaluator.md b/docs/api/interfaces/Evaluator.md index 301acc1d78b..dcb4daae488 100644 --- a/docs/api/interfaces/Evaluator.md +++ b/docs/api/interfaces/Evaluator.md @@ -14,7 +14,7 @@ Represents an evaluator, which is used to assess and guide the agent's responses [packages/core/src/types.ts:238](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L238) -*** +--- ### description @@ -24,7 +24,7 @@ Represents an evaluator, which is used to assess and guide the agent's responses [packages/core/src/types.ts:239](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L239) -*** +--- ### similes @@ -34,7 +34,7 @@ Represents an evaluator, which is used to assess and guide the agent's responses [packages/core/src/types.ts:240](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L240) -*** +--- ### examples @@ -44,7 +44,7 @@ Represents an evaluator, which is used to assess and guide the agent's responses [packages/core/src/types.ts:241](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L241) -*** +--- ### handler @@ -54,7 +54,7 @@ Represents an evaluator, which is used to assess and guide the agent's responses [packages/core/src/types.ts:242](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L242) -*** +--- ### name @@ -64,7 +64,7 @@ Represents an evaluator, which is used to assess and guide the agent's responses [packages/core/src/types.ts:243](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L243) -*** +--- ### validate diff --git a/docs/api/interfaces/GenerationOptions.md b/docs/api/interfaces/GenerationOptions.md index b2d781563f3..5e76feb36e6 100644 --- a/docs/api/interfaces/GenerationOptions.md +++ b/docs/api/interfaces/GenerationOptions.md @@ -14,7 +14,7 @@ Configuration options for generating objects with a model. [packages/core/src/generation.ts:867](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L867) -*** +--- ### context @@ -24,7 +24,7 @@ Configuration options for generating objects with a model. [packages/core/src/generation.ts:868](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L868) -*** +--- ### modelClass @@ -34,7 +34,7 @@ Configuration options for generating objects with a model. [packages/core/src/generation.ts:869](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L869) -*** +--- ### schema? @@ -44,7 +44,7 @@ Configuration options for generating objects with a model. [packages/core/src/generation.ts:870](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L870) -*** +--- ### schemaName? @@ -54,7 +54,7 @@ Configuration options for generating objects with a model. [packages/core/src/generation.ts:871](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L871) -*** +--- ### schemaDescription? @@ -64,7 +64,7 @@ Configuration options for generating objects with a model. [packages/core/src/generation.ts:872](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L872) -*** +--- ### stop? @@ -74,7 +74,7 @@ Configuration options for generating objects with a model. [packages/core/src/generation.ts:873](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L873) -*** +--- ### mode? @@ -84,11 +84,11 @@ Configuration options for generating objects with a model. [packages/core/src/generation.ts:874](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L874) -*** +--- -### experimental\_providerMetadata? +### experimental_providerMetadata? -> `optional` **experimental\_providerMetadata**: `Record`\<`string`, `unknown`\> +> `optional` **experimental_providerMetadata**: `Record`\<`string`, `unknown`\> #### Defined in diff --git a/docs/api/interfaces/Goal.md b/docs/api/interfaces/Goal.md index ddc338ab47e..41456943b3c 100644 --- a/docs/api/interfaces/Goal.md +++ b/docs/api/interfaces/Goal.md @@ -14,7 +14,7 @@ Represents a goal, which is a higher-level aim composed of one or more objective [packages/core/src/types.ts:66](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L66) -*** +--- ### roomId @@ -24,7 +24,7 @@ Represents a goal, which is a higher-level aim composed of one or more objective [packages/core/src/types.ts:67](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L67) -*** +--- ### userId @@ -34,7 +34,7 @@ Represents a goal, which is a higher-level aim composed of one or more objective [packages/core/src/types.ts:68](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L68) -*** +--- ### name @@ -44,7 +44,7 @@ Represents a goal, which is a higher-level aim composed of one or more objective [packages/core/src/types.ts:69](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L69) -*** +--- ### status @@ -54,7 +54,7 @@ Represents a goal, which is a higher-level aim composed of one or more objective [packages/core/src/types.ts:70](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L70) -*** +--- ### objectives diff --git a/docs/api/interfaces/IAgentRuntime.md b/docs/api/interfaces/IAgentRuntime.md index 7c493e60b1c..40d442301fe 100644 --- a/docs/api/interfaces/IAgentRuntime.md +++ b/docs/api/interfaces/IAgentRuntime.md @@ -14,7 +14,7 @@ Properties [packages/core/src/types.ts:532](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L532) -*** +--- ### serverUrl @@ -24,7 +24,7 @@ Properties [packages/core/src/types.ts:533](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L533) -*** +--- ### databaseAdapter @@ -34,7 +34,7 @@ Properties [packages/core/src/types.ts:534](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L534) -*** +--- ### token @@ -44,7 +44,7 @@ Properties [packages/core/src/types.ts:535](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L535) -*** +--- ### modelProvider @@ -54,7 +54,7 @@ Properties [packages/core/src/types.ts:536](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L536) -*** +--- ### character @@ -64,7 +64,7 @@ Properties [packages/core/src/types.ts:537](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L537) -*** +--- ### providers @@ -74,7 +74,7 @@ Properties [packages/core/src/types.ts:538](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L538) -*** +--- ### actions @@ -84,7 +84,7 @@ Properties [packages/core/src/types.ts:539](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L539) -*** +--- ### evaluators @@ -94,7 +94,7 @@ Properties [packages/core/src/types.ts:540](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L540) -*** +--- ### messageManager @@ -104,7 +104,7 @@ Properties [packages/core/src/types.ts:542](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L542) -*** +--- ### descriptionManager @@ -114,7 +114,7 @@ Properties [packages/core/src/types.ts:543](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L543) -*** +--- ### loreManager @@ -124,7 +124,7 @@ Properties [packages/core/src/types.ts:544](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L544) -*** +--- ### services @@ -152,7 +152,7 @@ Properties [packages/core/src/types.ts:547](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L547) -*** +--- ### getMemoryManager() @@ -170,11 +170,11 @@ Properties [packages/core/src/types.ts:549](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L549) -*** +--- ### getService() -> **getService**(`service`): *typeof* [`Service`](../classes/Service.md) +> **getService**(`service`): _typeof_ [`Service`](../classes/Service.md) #### Parameters @@ -182,13 +182,13 @@ Properties #### Returns -*typeof* [`Service`](../classes/Service.md) +_typeof_ [`Service`](../classes/Service.md) #### Defined in [packages/core/src/types.ts:551](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L551) -*** +--- ### registerService() @@ -206,7 +206,7 @@ Properties [packages/core/src/types.ts:553](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L553) -*** +--- ### getSetting() @@ -224,7 +224,7 @@ Properties [packages/core/src/types.ts:555](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L555) -*** +--- ### getConversationLength() @@ -240,7 +240,7 @@ Methods [packages/core/src/types.ts:558](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L558) -*** +--- ### processActions() @@ -264,7 +264,7 @@ Methods [packages/core/src/types.ts:559](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L559) -*** +--- ### evaluate() @@ -286,7 +286,7 @@ Methods [packages/core/src/types.ts:565](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L565) -*** +--- ### ensureParticipantExists() @@ -306,7 +306,7 @@ Methods [packages/core/src/types.ts:570](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L570) -*** +--- ### ensureUserExists() @@ -330,7 +330,7 @@ Methods [packages/core/src/types.ts:571](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L571) -*** +--- ### registerAction() @@ -348,7 +348,7 @@ Methods [packages/core/src/types.ts:577](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L577) -*** +--- ### ensureConnection() @@ -374,7 +374,7 @@ Methods [packages/core/src/types.ts:578](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L578) -*** +--- ### ensureParticipantInRoom() @@ -394,7 +394,7 @@ Methods [packages/core/src/types.ts:585](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L585) -*** +--- ### ensureRoomExists() @@ -412,7 +412,7 @@ Methods [packages/core/src/types.ts:586](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L586) -*** +--- ### composeState() @@ -432,7 +432,7 @@ Methods [packages/core/src/types.ts:587](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L587) -*** +--- ### updateRecentMessageState() diff --git a/docs/api/interfaces/IBrowserService.md b/docs/api/interfaces/IBrowserService.md index 7360d1de07d..1960e7f069a 100644 --- a/docs/api/interfaces/IBrowserService.md +++ b/docs/api/interfaces/IBrowserService.md @@ -20,7 +20,7 @@ [packages/core/src/types.ts:641](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L641) -*** +--- ### closeBrowser() @@ -34,7 +34,7 @@ [packages/core/src/types.ts:642](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L642) -*** +--- ### getPageContent() diff --git a/docs/api/interfaces/IDatabaseAdapter.md b/docs/api/interfaces/IDatabaseAdapter.md index 116e38251fb..110080ba08f 100644 --- a/docs/api/interfaces/IDatabaseAdapter.md +++ b/docs/api/interfaces/IDatabaseAdapter.md @@ -30,7 +30,7 @@ [packages/core/src/types.ts:376](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L376) -*** +--- ### createAccount() @@ -48,7 +48,7 @@ [packages/core/src/types.ts:377](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L377) -*** +--- ### getMemories() @@ -80,7 +80,7 @@ [packages/core/src/types.ts:378](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L378) -*** +--- ### getMemoryById() @@ -98,7 +98,7 @@ [packages/core/src/types.ts:387](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L387) -*** +--- ### getMemoriesByRoomIds() @@ -120,7 +120,7 @@ [packages/core/src/types.ts:388](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L388) -*** +--- ### getCachedEmbeddings() @@ -130,17 +130,17 @@ • **params** -• **params.query\_table\_name**: `string` +• **params.query_table_name**: `string` -• **params.query\_threshold**: `number` +• **params.query_threshold**: `number` -• **params.query\_input**: `string` +• **params.query_input**: `string` -• **params.query\_field\_name**: `string` +• **params.query_field_name**: `string` -• **params.query\_field\_sub\_name**: `string` +• **params.query_field_sub_name**: `string` -• **params.query\_match\_count**: `number` +• **params.query_match_count**: `number` #### Returns @@ -150,7 +150,7 @@ [packages/core/src/types.ts:392](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L392) -*** +--- ### log() @@ -176,7 +176,7 @@ [packages/core/src/types.ts:400](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L400) -*** +--- ### getActorDetails() @@ -196,7 +196,7 @@ [packages/core/src/types.ts:406](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L406) -*** +--- ### searchMemories() @@ -212,9 +212,9 @@ • **params.embedding**: `number`[] -• **params.match\_threshold**: `number` +• **params.match_threshold**: `number` -• **params.match\_count**: `number` +• **params.match_count**: `number` • **params.unique**: `boolean` @@ -226,7 +226,7 @@ [packages/core/src/types.ts:407](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L407) -*** +--- ### updateGoalStatus() @@ -248,7 +248,7 @@ [packages/core/src/types.ts:415](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L415) -*** +--- ### searchMemoriesByEmbedding() @@ -260,7 +260,7 @@ • **params** -• **params.match\_threshold?**: `number` +• **params.match_threshold?**: `number` • **params.count?**: `number` @@ -280,7 +280,7 @@ [packages/core/src/types.ts:419](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L419) -*** +--- ### createMemory() @@ -302,7 +302,7 @@ [packages/core/src/types.ts:430](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L430) -*** +--- ### removeMemory() @@ -322,7 +322,7 @@ [packages/core/src/types.ts:435](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L435) -*** +--- ### removeAllMemories() @@ -342,7 +342,7 @@ [packages/core/src/types.ts:436](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L436) -*** +--- ### countMemories() @@ -364,7 +364,7 @@ [packages/core/src/types.ts:437](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L437) -*** +--- ### getGoals() @@ -390,7 +390,7 @@ [packages/core/src/types.ts:442](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L442) -*** +--- ### updateGoal() @@ -408,7 +408,7 @@ [packages/core/src/types.ts:448](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L448) -*** +--- ### createGoal() @@ -426,7 +426,7 @@ [packages/core/src/types.ts:449](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L449) -*** +--- ### removeGoal() @@ -444,7 +444,7 @@ [packages/core/src/types.ts:450](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L450) -*** +--- ### removeAllGoals() @@ -462,7 +462,7 @@ [packages/core/src/types.ts:451](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L451) -*** +--- ### getRoom() @@ -480,7 +480,7 @@ [packages/core/src/types.ts:452](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L452) -*** +--- ### createRoom() @@ -498,7 +498,7 @@ [packages/core/src/types.ts:453](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L453) -*** +--- ### removeRoom() @@ -516,7 +516,7 @@ [packages/core/src/types.ts:454](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L454) -*** +--- ### getRoomsForParticipant() @@ -534,7 +534,7 @@ [packages/core/src/types.ts:455](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L455) -*** +--- ### getRoomsForParticipants() @@ -552,7 +552,7 @@ [packages/core/src/types.ts:456](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L456) -*** +--- ### addParticipant() @@ -572,7 +572,7 @@ [packages/core/src/types.ts:457](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L457) -*** +--- ### removeParticipant() @@ -592,7 +592,7 @@ [packages/core/src/types.ts:458](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L458) -*** +--- ### getParticipantsForAccount() @@ -610,7 +610,7 @@ [packages/core/src/types.ts:459](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L459) -*** +--- ### getParticipantsForRoom() @@ -628,7 +628,7 @@ [packages/core/src/types.ts:460](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L460) -*** +--- ### getParticipantUserState() @@ -648,7 +648,7 @@ [packages/core/src/types.ts:461](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L461) -*** +--- ### setParticipantUserState() @@ -670,7 +670,7 @@ [packages/core/src/types.ts:465](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L465) -*** +--- ### createRelationship() @@ -692,7 +692,7 @@ [packages/core/src/types.ts:470](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L470) -*** +--- ### getRelationship() @@ -714,7 +714,7 @@ [packages/core/src/types.ts:471](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L471) -*** +--- ### getRelationships() diff --git a/docs/api/interfaces/IImageDescriptionService.md b/docs/api/interfaces/IImageDescriptionService.md index 17cc8833bd0..5f29d8a9970 100644 --- a/docs/api/interfaces/IImageDescriptionService.md +++ b/docs/api/interfaces/IImageDescriptionService.md @@ -20,7 +20,7 @@ [packages/core/src/types.ts:595](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L595) -*** +--- ### initialize() @@ -40,7 +40,7 @@ [packages/core/src/types.ts:596](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L596) -*** +--- ### describeImage() diff --git a/docs/api/interfaces/IMemoryManager.md b/docs/api/interfaces/IMemoryManager.md index 84f44e69fbe..a10169784be 100644 --- a/docs/api/interfaces/IMemoryManager.md +++ b/docs/api/interfaces/IMemoryManager.md @@ -12,7 +12,7 @@ [packages/core/src/types.ts:479](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L479) -*** +--- ### tableName @@ -22,7 +22,7 @@ [packages/core/src/types.ts:480](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L480) -*** +--- ### constructor @@ -50,7 +50,7 @@ [packages/core/src/types.ts:484](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L484) -*** +--- ### getMemories() @@ -80,7 +80,7 @@ [packages/core/src/types.ts:485](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L485) -*** +--- ### getCachedEmbeddings() @@ -98,7 +98,7 @@ [packages/core/src/types.ts:493](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L493) -*** +--- ### getMemoryById() @@ -116,7 +116,7 @@ [packages/core/src/types.ts:496](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L496) -*** +--- ### getMemoriesByRoomIds() @@ -138,7 +138,7 @@ [packages/core/src/types.ts:497](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L497) -*** +--- ### searchMemoriesByEmbedding() @@ -150,7 +150,7 @@ • **opts** -• **opts.match\_threshold?**: `number` +• **opts.match_threshold?**: `number` • **opts.count?**: `number` @@ -168,7 +168,7 @@ [packages/core/src/types.ts:501](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L501) -*** +--- ### createMemory() @@ -188,7 +188,7 @@ [packages/core/src/types.ts:511](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L511) -*** +--- ### removeMemory() @@ -206,7 +206,7 @@ [packages/core/src/types.ts:512](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L512) -*** +--- ### removeAllMemories() @@ -224,7 +224,7 @@ [packages/core/src/types.ts:513](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L513) -*** +--- ### countMemories() diff --git a/docs/api/interfaces/ITextGenerationService.md b/docs/api/interfaces/ITextGenerationService.md index 8d6efe38ebb..5be0dbf0405 100644 --- a/docs/api/interfaces/ITextGenerationService.md +++ b/docs/api/interfaces/ITextGenerationService.md @@ -20,7 +20,7 @@ [packages/core/src/types.ts:619](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L619) -*** +--- ### initializeModel() @@ -34,7 +34,7 @@ [packages/core/src/types.ts:620](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L620) -*** +--- ### queueMessageCompletion() @@ -48,11 +48,11 @@ • **stop**: `string`[] -• **frequency\_penalty**: `number` +• **frequency_penalty**: `number` -• **presence\_penalty**: `number` +• **presence_penalty**: `number` -• **max\_tokens**: `number` +• **max_tokens**: `number` #### Returns @@ -62,7 +62,7 @@ [packages/core/src/types.ts:621](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L621) -*** +--- ### queueTextCompletion() @@ -76,11 +76,11 @@ • **stop**: `string`[] -• **frequency\_penalty**: `number` +• **frequency_penalty**: `number` -• **presence\_penalty**: `number` +• **presence_penalty**: `number` -• **max\_tokens**: `number` +• **max_tokens**: `number` #### Returns @@ -90,7 +90,7 @@ [packages/core/src/types.ts:629](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L629) -*** +--- ### getEmbeddingResponse() diff --git a/docs/api/interfaces/ITranscriptionService.md b/docs/api/interfaces/ITranscriptionService.md index 30f85965531..5634219f53b 100644 --- a/docs/api/interfaces/ITranscriptionService.md +++ b/docs/api/interfaces/ITranscriptionService.md @@ -24,7 +24,7 @@ [packages/core/src/types.ts:603](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L603) -*** +--- ### transcribeAttachmentLocally() @@ -42,7 +42,7 @@ [packages/core/src/types.ts:604](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L604) -*** +--- ### transcribe() @@ -60,7 +60,7 @@ [packages/core/src/types.ts:607](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L607) -*** +--- ### transcribeLocally() diff --git a/docs/api/interfaces/IVideoService.md b/docs/api/interfaces/IVideoService.md index cd20ae6c111..f62ab655dbc 100644 --- a/docs/api/interfaces/IVideoService.md +++ b/docs/api/interfaces/IVideoService.md @@ -24,7 +24,7 @@ [packages/core/src/types.ts:612](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L612) -*** +--- ### processVideo() @@ -42,7 +42,7 @@ [packages/core/src/types.ts:613](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L613) -*** +--- ### fetchVideoInfo() @@ -60,7 +60,7 @@ [packages/core/src/types.ts:614](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L614) -*** +--- ### downloadVideo() diff --git a/docs/api/interfaces/Memory.md b/docs/api/interfaces/Memory.md index f4797d87552..040cdf1e71a 100644 --- a/docs/api/interfaces/Memory.md +++ b/docs/api/interfaces/Memory.md @@ -14,7 +14,7 @@ Represents a memory record, which could be a message or any other piece of infor [packages/core/src/types.ts:169](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L169) -*** +--- ### userId @@ -24,7 +24,7 @@ Represents a memory record, which could be a message or any other piece of infor [packages/core/src/types.ts:170](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L170) -*** +--- ### agentId @@ -34,7 +34,7 @@ Represents a memory record, which could be a message or any other piece of infor [packages/core/src/types.ts:171](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L171) -*** +--- ### createdAt? @@ -44,7 +44,7 @@ Represents a memory record, which could be a message or any other piece of infor [packages/core/src/types.ts:172](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L172) -*** +--- ### content @@ -54,7 +54,7 @@ Represents a memory record, which could be a message or any other piece of infor [packages/core/src/types.ts:173](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L173) -*** +--- ### embedding? @@ -64,7 +64,7 @@ Represents a memory record, which could be a message or any other piece of infor [packages/core/src/types.ts:174](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L174) -*** +--- ### roomId @@ -74,7 +74,7 @@ Represents a memory record, which could be a message or any other piece of infor [packages/core/src/types.ts:175](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L175) -*** +--- ### unique? diff --git a/docs/api/interfaces/MessageExample.md b/docs/api/interfaces/MessageExample.md index b59046d7864..dbc07ae96c1 100644 --- a/docs/api/interfaces/MessageExample.md +++ b/docs/api/interfaces/MessageExample.md @@ -14,7 +14,7 @@ Represents an example of a message, typically used for demonstrating or testing [packages/core/src/types.ts:183](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L183) -*** +--- ### content diff --git a/docs/api/interfaces/Objective.md b/docs/api/interfaces/Objective.md index 554e13b00ac..4a9c5854f71 100644 --- a/docs/api/interfaces/Objective.md +++ b/docs/api/interfaces/Objective.md @@ -14,7 +14,7 @@ Represents an objective within a goal, detailing what needs to be achieved and w [packages/core/src/types.ts:51](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L51) -*** +--- ### description @@ -24,7 +24,7 @@ Represents an objective within a goal, detailing what needs to be achieved and w [packages/core/src/types.ts:52](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L52) -*** +--- ### completed diff --git a/docs/api/interfaces/Participant.md b/docs/api/interfaces/Participant.md index 833d1146296..74b1096c000 100644 --- a/docs/api/interfaces/Participant.md +++ b/docs/api/interfaces/Participant.md @@ -14,7 +14,7 @@ Represents a participant in a room, including their ID and account details. [packages/core/src/types.ts:287](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L287) -*** +--- ### account diff --git a/docs/api/interfaces/Relationship.md b/docs/api/interfaces/Relationship.md index e0790ebf5f5..9dbafcb2fc5 100644 --- a/docs/api/interfaces/Relationship.md +++ b/docs/api/interfaces/Relationship.md @@ -14,7 +14,7 @@ Represents a relationship between two users, including their IDs, the status of [packages/core/src/types.ts:262](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L262) -*** +--- ### userA @@ -24,7 +24,7 @@ Represents a relationship between two users, including their IDs, the status of [packages/core/src/types.ts:263](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L263) -*** +--- ### userB @@ -34,7 +34,7 @@ Represents a relationship between two users, including their IDs, the status of [packages/core/src/types.ts:264](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L264) -*** +--- ### userId @@ -44,7 +44,7 @@ Represents a relationship between two users, including their IDs, the status of [packages/core/src/types.ts:265](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L265) -*** +--- ### roomId @@ -54,7 +54,7 @@ Represents a relationship between two users, including their IDs, the status of [packages/core/src/types.ts:266](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L266) -*** +--- ### status @@ -64,7 +64,7 @@ Represents a relationship between two users, including their IDs, the status of [packages/core/src/types.ts:267](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L267) -*** +--- ### createdAt? diff --git a/docs/api/interfaces/Room.md b/docs/api/interfaces/Room.md index 9911152e482..ab9ce15c57a 100644 --- a/docs/api/interfaces/Room.md +++ b/docs/api/interfaces/Room.md @@ -14,7 +14,7 @@ Represents a room or conversation context, including its ID and a list of partic [packages/core/src/types.ts:295](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L295) -*** +--- ### participants diff --git a/docs/api/interfaces/State.md b/docs/api/interfaces/State.md index 6ea2c76c0cb..6897899d263 100644 --- a/docs/api/interfaces/State.md +++ b/docs/api/interfaces/State.md @@ -6,7 +6,7 @@ Represents the state of the conversation or context in which the agent is operat ## Indexable - \[`key`: `string`\]: `unknown` +\[`key`: `string`\]: `unknown` ## Properties @@ -18,7 +18,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:139](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L139) -*** +--- ### agentId? @@ -28,7 +28,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:140](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L140) -*** +--- ### bio @@ -38,7 +38,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:141](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L141) -*** +--- ### lore @@ -48,7 +48,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:142](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L142) -*** +--- ### messageDirections @@ -58,7 +58,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:143](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L143) -*** +--- ### postDirections @@ -68,7 +68,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:144](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L144) -*** +--- ### roomId @@ -78,7 +78,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:145](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L145) -*** +--- ### agentName? @@ -88,7 +88,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:146](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L146) -*** +--- ### senderName? @@ -98,7 +98,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:147](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L147) -*** +--- ### actors @@ -108,7 +108,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:148](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L148) -*** +--- ### actorsData? @@ -118,7 +118,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:149](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L149) -*** +--- ### goals? @@ -128,7 +128,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:150](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L150) -*** +--- ### goalsData? @@ -138,7 +138,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:151](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L151) -*** +--- ### recentMessages @@ -148,7 +148,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:152](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L152) -*** +--- ### recentMessagesData @@ -158,7 +158,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:153](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L153) -*** +--- ### actionNames? @@ -168,7 +168,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:154](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L154) -*** +--- ### actions? @@ -178,7 +178,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:155](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L155) -*** +--- ### actionsData? @@ -188,7 +188,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:156](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L156) -*** +--- ### actionExamples? @@ -198,7 +198,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:157](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L157) -*** +--- ### providers? @@ -208,7 +208,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:158](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L158) -*** +--- ### responseData? @@ -218,7 +218,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:159](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L159) -*** +--- ### recentInteractionsData? @@ -228,7 +228,7 @@ Represents the state of the conversation or context in which the agent is operat [packages/core/src/types.ts:160](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L160) -*** +--- ### recentInteractions? diff --git a/docs/api/type-aliases/Character.md b/docs/api/type-aliases/Character.md index 810eef4c640..508aefc3a30 100644 --- a/docs/api/type-aliases/Character.md +++ b/docs/api/type-aliases/Character.md @@ -32,7 +32,7 @@ #### Index Signature - \[`key`: `string`\]: `string` +\[`key`: `string`\]: `string` ### bio @@ -84,7 +84,7 @@ #### Index Signature - \[`key`: `string`\]: `string` +\[`key`: `string`\]: `string` ### settings.voice? diff --git a/docs/api/type-aliases/Model.md b/docs/api/type-aliases/Model.md index de42259011c..4d5a45b9d59 100644 --- a/docs/api/type-aliases/Model.md +++ b/docs/api/type-aliases/Model.md @@ -22,17 +22,17 @@ > **maxOutputTokens**: `number` -### settings.frequency\_penalty? +### settings.frequency_penalty? -> `optional` **frequency\_penalty**: `number` +> `optional` **frequency_penalty**: `number` -### settings.presence\_penalty? +### settings.presence_penalty? -> `optional` **presence\_penalty**: `number` +> `optional` **presence_penalty**: `number` -### settings.repetition\_penalty? +### settings.repetition_penalty? -> `optional` **repetition\_penalty**: `number` +> `optional` **repetition_penalty**: `number` ### settings.stop diff --git a/docs/api/type-aliases/Models.md b/docs/api/type-aliases/Models.md index 73f34915666..ded8014918d 100644 --- a/docs/api/type-aliases/Models.md +++ b/docs/api/type-aliases/Models.md @@ -22,21 +22,21 @@ > **groq**: [`Model`](Model.md) -### llama\_cloud +### llama_cloud -> **llama\_cloud**: [`Model`](Model.md) +> **llama_cloud**: [`Model`](Model.md) -### llama\_local +### llama_local -> **llama\_local**: [`Model`](Model.md) +> **llama_local**: [`Model`](Model.md) ### google > **google**: [`Model`](Model.md) -### claude\_vertex +### claude_vertex -> **claude\_vertex**: [`Model`](Model.md) +> **claude_vertex**: [`Model`](Model.md) ### redpill diff --git a/docs/api/typedoc-sidebar.cjs b/docs/api/typedoc-sidebar.cjs index 5a314c8c8bb..cb7e9697647 100644 --- a/docs/api/typedoc-sidebar.cjs +++ b/docs/api/typedoc-sidebar.cjs @@ -1,4 +1,352 @@ // @ts-check /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ -const typedocSidebar = { items: [{"type":"category","label":"Enumerations","items":[{"type":"doc","id":"enumerations/GoalStatus","label":"GoalStatus"},{"type":"doc","id":"enumerations/ModelClass","label":"ModelClass"},{"type":"doc","id":"enumerations/ModelProviderName","label":"ModelProviderName"},{"type":"doc","id":"enumerations/Clients","label":"Clients"},{"type":"doc","id":"enumerations/ServiceType","label":"ServiceType"}]},{"type":"category","label":"Classes","items":[{"type":"doc","id":"classes/DatabaseAdapter","label":"DatabaseAdapter"},{"type":"doc","id":"classes/MemoryManager","label":"MemoryManager"},{"type":"doc","id":"classes/AgentRuntime","label":"AgentRuntime"},{"type":"doc","id":"classes/Service","label":"Service"}]},{"type":"category","label":"Interfaces","items":[{"type":"doc","id":"interfaces/GenerationOptions","label":"GenerationOptions"},{"type":"doc","id":"interfaces/Content","label":"Content"},{"type":"doc","id":"interfaces/ActionExample","label":"ActionExample"},{"type":"doc","id":"interfaces/ConversationExample","label":"ConversationExample"},{"type":"doc","id":"interfaces/Actor","label":"Actor"},{"type":"doc","id":"interfaces/Objective","label":"Objective"},{"type":"doc","id":"interfaces/Goal","label":"Goal"},{"type":"doc","id":"interfaces/State","label":"State"},{"type":"doc","id":"interfaces/Memory","label":"Memory"},{"type":"doc","id":"interfaces/MessageExample","label":"MessageExample"},{"type":"doc","id":"interfaces/Action","label":"Action"},{"type":"doc","id":"interfaces/EvaluationExample","label":"EvaluationExample"},{"type":"doc","id":"interfaces/Evaluator","label":"Evaluator"},{"type":"doc","id":"interfaces/Provider","label":"Provider"},{"type":"doc","id":"interfaces/Relationship","label":"Relationship"},{"type":"doc","id":"interfaces/Account","label":"Account"},{"type":"doc","id":"interfaces/Participant","label":"Participant"},{"type":"doc","id":"interfaces/Room","label":"Room"},{"type":"doc","id":"interfaces/IDatabaseAdapter","label":"IDatabaseAdapter"},{"type":"doc","id":"interfaces/IMemoryManager","label":"IMemoryManager"},{"type":"doc","id":"interfaces/IAgentRuntime","label":"IAgentRuntime"},{"type":"doc","id":"interfaces/IImageDescriptionService","label":"IImageDescriptionService"},{"type":"doc","id":"interfaces/ITranscriptionService","label":"ITranscriptionService"},{"type":"doc","id":"interfaces/IVideoService","label":"IVideoService"},{"type":"doc","id":"interfaces/ITextGenerationService","label":"ITextGenerationService"},{"type":"doc","id":"interfaces/IBrowserService","label":"IBrowserService"},{"type":"doc","id":"interfaces/ISpeechService","label":"ISpeechService"},{"type":"doc","id":"interfaces/IPdfService","label":"IPdfService"}]},{"type":"category","label":"Type Aliases","items":[{"type":"doc","id":"type-aliases/UUID","label":"UUID"},{"type":"doc","id":"type-aliases/Model","label":"Model"},{"type":"doc","id":"type-aliases/Models","label":"Models"},{"type":"doc","id":"type-aliases/Handler","label":"Handler"},{"type":"doc","id":"type-aliases/HandlerCallback","label":"HandlerCallback"},{"type":"doc","id":"type-aliases/Validator","label":"Validator"},{"type":"doc","id":"type-aliases/Media","label":"Media"},{"type":"doc","id":"type-aliases/Client","label":"Client"},{"type":"doc","id":"type-aliases/Plugin","label":"Plugin"},{"type":"doc","id":"type-aliases/Character","label":"Character"}]},{"type":"category","label":"Variables","items":[{"type":"doc","id":"variables/defaultCharacter","label":"defaultCharacter"},{"type":"doc","id":"variables/evaluationTemplate","label":"evaluationTemplate"},{"type":"doc","id":"variables/elizaLogger","label":"elizaLogger"},{"type":"doc","id":"variables/embeddingDimension","label":"embeddingDimension"},{"type":"doc","id":"variables/embeddingZeroVector","label":"embeddingZeroVector"},{"type":"doc","id":"variables/models","label":"models"},{"type":"doc","id":"variables/messageCompletionFooter","label":"messageCompletionFooter"},{"type":"doc","id":"variables/shouldRespondFooter","label":"shouldRespondFooter"},{"type":"doc","id":"variables/booleanFooter","label":"booleanFooter"},{"type":"doc","id":"variables/stringArrayFooter","label":"stringArrayFooter"},{"type":"doc","id":"variables/settings","label":"settings"}]},{"type":"category","label":"Functions","items":[{"type":"doc","id":"functions/composeActionExamples","label":"composeActionExamples"},{"type":"doc","id":"functions/formatActionNames","label":"formatActionNames"},{"type":"doc","id":"functions/formatActions","label":"formatActions"},{"type":"doc","id":"functions/composeContext","label":"composeContext"},{"type":"doc","id":"functions/addHeader","label":"addHeader"},{"type":"doc","id":"functions/embed","label":"embed"},{"type":"doc","id":"functions/retrieveCachedEmbedding","label":"retrieveCachedEmbedding"},{"type":"doc","id":"functions/formatEvaluatorNames","label":"formatEvaluatorNames"},{"type":"doc","id":"functions/formatEvaluators","label":"formatEvaluators"},{"type":"doc","id":"functions/formatEvaluatorExamples","label":"formatEvaluatorExamples"},{"type":"doc","id":"functions/formatEvaluatorExampleDescriptions","label":"formatEvaluatorExampleDescriptions"},{"type":"doc","id":"functions/generateText","label":"generateText"},{"type":"doc","id":"functions/trimTokens","label":"trimTokens"},{"type":"doc","id":"functions/generateShouldRespond","label":"generateShouldRespond"},{"type":"doc","id":"functions/splitChunks","label":"splitChunks"},{"type":"doc","id":"functions/generateTrueOrFalse","label":"generateTrueOrFalse"},{"type":"doc","id":"functions/generateTextArray","label":"generateTextArray"},{"type":"doc","id":"functions/generateObject","label":"generateObject"},{"type":"doc","id":"functions/generateObjectArray","label":"generateObjectArray"},{"type":"doc","id":"functions/generateMessageResponse","label":"generateMessageResponse"},{"type":"doc","id":"functions/generateImage","label":"generateImage"},{"type":"doc","id":"functions/generateCaption","label":"generateCaption"},{"type":"doc","id":"functions/generateObjectV2","label":"generateObjectV2"},{"type":"doc","id":"functions/handleProvider","label":"handleProvider"},{"type":"doc","id":"functions/getGoals","label":"getGoals"},{"type":"doc","id":"functions/formatGoalsAsString","label":"formatGoalsAsString"},{"type":"doc","id":"functions/updateGoal","label":"updateGoal"},{"type":"doc","id":"functions/createGoal","label":"createGoal"},{"type":"doc","id":"functions/getActorDetails","label":"getActorDetails"},{"type":"doc","id":"functions/formatActors","label":"formatActors"},{"type":"doc","id":"functions/formatMessages","label":"formatMessages"},{"type":"doc","id":"functions/formatTimestamp","label":"formatTimestamp"},{"type":"doc","id":"functions/getModel","label":"getModel"},{"type":"doc","id":"functions/getEndpoint","label":"getEndpoint"},{"type":"doc","id":"functions/parseShouldRespondFromText","label":"parseShouldRespondFromText"},{"type":"doc","id":"functions/parseBooleanFromText","label":"parseBooleanFromText"},{"type":"doc","id":"functions/parseJsonArrayFromText","label":"parseJsonArrayFromText"},{"type":"doc","id":"functions/parseJSONObjectFromText","label":"parseJSONObjectFromText"},{"type":"doc","id":"functions/formatPosts","label":"formatPosts"},{"type":"doc","id":"functions/getProviders","label":"getProviders"},{"type":"doc","id":"functions/createRelationship","label":"createRelationship"},{"type":"doc","id":"functions/getRelationship","label":"getRelationship"},{"type":"doc","id":"functions/getRelationships","label":"getRelationships"},{"type":"doc","id":"functions/formatRelationships","label":"formatRelationships"},{"type":"doc","id":"functions/findNearestEnvFile","label":"findNearestEnvFile"},{"type":"doc","id":"functions/loadEnvConfig","label":"loadEnvConfig"},{"type":"doc","id":"functions/stringToUuid","label":"stringToUuid"}]}]}; -module.exports = typedocSidebar.items; \ No newline at end of file +const typedocSidebar = { + items: [ + { + type: "category", + label: "Enumerations", + items: [ + { type: "doc", id: "enumerations/GoalStatus", label: "GoalStatus" }, + { type: "doc", id: "enumerations/ModelClass", label: "ModelClass" }, + { + type: "doc", + id: "enumerations/ModelProviderName", + label: "ModelProviderName", + }, + { type: "doc", id: "enumerations/Clients", label: "Clients" }, + { type: "doc", id: "enumerations/ServiceType", label: "ServiceType" }, + ], + }, + { + type: "category", + label: "Classes", + items: [ + { + type: "doc", + id: "classes/DatabaseAdapter", + label: "DatabaseAdapter", + }, + { type: "doc", id: "classes/MemoryManager", label: "MemoryManager" }, + { type: "doc", id: "classes/AgentRuntime", label: "AgentRuntime" }, + { type: "doc", id: "classes/Service", label: "Service" }, + ], + }, + { + type: "category", + label: "Interfaces", + items: [ + { + type: "doc", + id: "interfaces/GenerationOptions", + label: "GenerationOptions", + }, + { type: "doc", id: "interfaces/Content", label: "Content" }, + { type: "doc", id: "interfaces/ActionExample", label: "ActionExample" }, + { + type: "doc", + id: "interfaces/ConversationExample", + label: "ConversationExample", + }, + { type: "doc", id: "interfaces/Actor", label: "Actor" }, + { type: "doc", id: "interfaces/Objective", label: "Objective" }, + { type: "doc", id: "interfaces/Goal", label: "Goal" }, + { type: "doc", id: "interfaces/State", label: "State" }, + { type: "doc", id: "interfaces/Memory", label: "Memory" }, + { + type: "doc", + id: "interfaces/MessageExample", + label: "MessageExample", + }, + { type: "doc", id: "interfaces/Action", label: "Action" }, + { + type: "doc", + id: "interfaces/EvaluationExample", + label: "EvaluationExample", + }, + { type: "doc", id: "interfaces/Evaluator", label: "Evaluator" }, + { type: "doc", id: "interfaces/Provider", label: "Provider" }, + { type: "doc", id: "interfaces/Relationship", label: "Relationship" }, + { type: "doc", id: "interfaces/Account", label: "Account" }, + { type: "doc", id: "interfaces/Participant", label: "Participant" }, + { type: "doc", id: "interfaces/Room", label: "Room" }, + { + type: "doc", + id: "interfaces/IDatabaseAdapter", + label: "IDatabaseAdapter", + }, + { + type: "doc", + id: "interfaces/IMemoryManager", + label: "IMemoryManager", + }, + { type: "doc", id: "interfaces/IAgentRuntime", label: "IAgentRuntime" }, + { + type: "doc", + id: "interfaces/IImageDescriptionService", + label: "IImageDescriptionService", + }, + { + type: "doc", + id: "interfaces/ITranscriptionService", + label: "ITranscriptionService", + }, + { type: "doc", id: "interfaces/IVideoService", label: "IVideoService" }, + { + type: "doc", + id: "interfaces/ITextGenerationService", + label: "ITextGenerationService", + }, + { + type: "doc", + id: "interfaces/IBrowserService", + label: "IBrowserService", + }, + { + type: "doc", + id: "interfaces/ISpeechService", + label: "ISpeechService", + }, + { type: "doc", id: "interfaces/IPdfService", label: "IPdfService" }, + ], + }, + { + type: "category", + label: "Type Aliases", + items: [ + { type: "doc", id: "type-aliases/UUID", label: "UUID" }, + { type: "doc", id: "type-aliases/Model", label: "Model" }, + { type: "doc", id: "type-aliases/Models", label: "Models" }, + { type: "doc", id: "type-aliases/Handler", label: "Handler" }, + { + type: "doc", + id: "type-aliases/HandlerCallback", + label: "HandlerCallback", + }, + { type: "doc", id: "type-aliases/Validator", label: "Validator" }, + { type: "doc", id: "type-aliases/Media", label: "Media" }, + { type: "doc", id: "type-aliases/Client", label: "Client" }, + { type: "doc", id: "type-aliases/Plugin", label: "Plugin" }, + { type: "doc", id: "type-aliases/Character", label: "Character" }, + ], + }, + { + type: "category", + label: "Variables", + items: [ + { + type: "doc", + id: "variables/defaultCharacter", + label: "defaultCharacter", + }, + { + type: "doc", + id: "variables/evaluationTemplate", + label: "evaluationTemplate", + }, + { type: "doc", id: "variables/elizaLogger", label: "elizaLogger" }, + { + type: "doc", + id: "variables/embeddingDimension", + label: "embeddingDimension", + }, + { + type: "doc", + id: "variables/embeddingZeroVector", + label: "embeddingZeroVector", + }, + { type: "doc", id: "variables/models", label: "models" }, + { + type: "doc", + id: "variables/messageCompletionFooter", + label: "messageCompletionFooter", + }, + { + type: "doc", + id: "variables/shouldRespondFooter", + label: "shouldRespondFooter", + }, + { type: "doc", id: "variables/booleanFooter", label: "booleanFooter" }, + { + type: "doc", + id: "variables/stringArrayFooter", + label: "stringArrayFooter", + }, + { type: "doc", id: "variables/settings", label: "settings" }, + ], + }, + { + type: "category", + label: "Functions", + items: [ + { + type: "doc", + id: "functions/composeActionExamples", + label: "composeActionExamples", + }, + { + type: "doc", + id: "functions/formatActionNames", + label: "formatActionNames", + }, + { type: "doc", id: "functions/formatActions", label: "formatActions" }, + { + type: "doc", + id: "functions/composeContext", + label: "composeContext", + }, + { type: "doc", id: "functions/addHeader", label: "addHeader" }, + { type: "doc", id: "functions/embed", label: "embed" }, + { + type: "doc", + id: "functions/retrieveCachedEmbedding", + label: "retrieveCachedEmbedding", + }, + { + type: "doc", + id: "functions/formatEvaluatorNames", + label: "formatEvaluatorNames", + }, + { + type: "doc", + id: "functions/formatEvaluators", + label: "formatEvaluators", + }, + { + type: "doc", + id: "functions/formatEvaluatorExamples", + label: "formatEvaluatorExamples", + }, + { + type: "doc", + id: "functions/formatEvaluatorExampleDescriptions", + label: "formatEvaluatorExampleDescriptions", + }, + { type: "doc", id: "functions/generateText", label: "generateText" }, + { type: "doc", id: "functions/trimTokens", label: "trimTokens" }, + { + type: "doc", + id: "functions/generateShouldRespond", + label: "generateShouldRespond", + }, + { type: "doc", id: "functions/splitChunks", label: "splitChunks" }, + { + type: "doc", + id: "functions/generateTrueOrFalse", + label: "generateTrueOrFalse", + }, + { + type: "doc", + id: "functions/generateTextArray", + label: "generateTextArray", + }, + { + type: "doc", + id: "functions/generateObject", + label: "generateObject", + }, + { + type: "doc", + id: "functions/generateObjectArray", + label: "generateObjectArray", + }, + { + type: "doc", + id: "functions/generateMessageResponse", + label: "generateMessageResponse", + }, + { type: "doc", id: "functions/generateImage", label: "generateImage" }, + { + type: "doc", + id: "functions/generateCaption", + label: "generateCaption", + }, + { + type: "doc", + id: "functions/generateObjectV2", + label: "generateObjectV2", + }, + { + type: "doc", + id: "functions/handleProvider", + label: "handleProvider", + }, + { type: "doc", id: "functions/getGoals", label: "getGoals" }, + { + type: "doc", + id: "functions/formatGoalsAsString", + label: "formatGoalsAsString", + }, + { type: "doc", id: "functions/updateGoal", label: "updateGoal" }, + { type: "doc", id: "functions/createGoal", label: "createGoal" }, + { + type: "doc", + id: "functions/getActorDetails", + label: "getActorDetails", + }, + { type: "doc", id: "functions/formatActors", label: "formatActors" }, + { + type: "doc", + id: "functions/formatMessages", + label: "formatMessages", + }, + { + type: "doc", + id: "functions/formatTimestamp", + label: "formatTimestamp", + }, + { type: "doc", id: "functions/getModel", label: "getModel" }, + { type: "doc", id: "functions/getEndpoint", label: "getEndpoint" }, + { + type: "doc", + id: "functions/parseShouldRespondFromText", + label: "parseShouldRespondFromText", + }, + { + type: "doc", + id: "functions/parseBooleanFromText", + label: "parseBooleanFromText", + }, + { + type: "doc", + id: "functions/parseJsonArrayFromText", + label: "parseJsonArrayFromText", + }, + { + type: "doc", + id: "functions/parseJSONObjectFromText", + label: "parseJSONObjectFromText", + }, + { type: "doc", id: "functions/formatPosts", label: "formatPosts" }, + { type: "doc", id: "functions/getProviders", label: "getProviders" }, + { + type: "doc", + id: "functions/createRelationship", + label: "createRelationship", + }, + { + type: "doc", + id: "functions/getRelationship", + label: "getRelationship", + }, + { + type: "doc", + id: "functions/getRelationships", + label: "getRelationships", + }, + { + type: "doc", + id: "functions/formatRelationships", + label: "formatRelationships", + }, + { + type: "doc", + id: "functions/findNearestEnvFile", + label: "findNearestEnvFile", + }, + { type: "doc", id: "functions/loadEnvConfig", label: "loadEnvConfig" }, + { type: "doc", id: "functions/stringToUuid", label: "stringToUuid" }, + ], + }, + ], +}; +module.exports = typedocSidebar.items; diff --git a/docs/api/variables/stringArrayFooter.md b/docs/api/variables/stringArrayFooter.md index 00c2643942e..c44ee2b3f8d 100644 --- a/docs/api/variables/stringArrayFooter.md +++ b/docs/api/variables/stringArrayFooter.md @@ -2,7 +2,7 @@ # Variable: stringArrayFooter -> `const` **stringArrayFooter**: "Respond with a JSON array containing the values in a JSON block formatted for markdown with this structure:\n\`\`\`json\n\[\n 'value',\n 'value'\n\]\n\`\`\`\n\nYour response must include the JSON block." +> `const` **stringArrayFooter**: "Respond with a JSON array containing the values in a JSON block formatted for markdown with this structure:\n\`\`\`json\n\[\n 'value',\n 'value'\n\]\n\`\`\`\n\nYour response must include the JSON block." ## Defined in diff --git a/docs/docs/api/_media/README_FR.md b/docs/docs/api/_media/README_FR.md index a0e96bda4e8..dc582288dbb 100644 --- a/docs/docs/api/_media/README_FR.md +++ b/docs/docs/api/_media/README_FR.md @@ -23,10 +23,10 @@ Que pouvez-vous faire avec Eliza? **pré-requis (obligatoire) :** -- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) -- installation Nodejs -- [pnpm](https://pnpm.io/installation) -- travailler avec PNPM +- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) +- installation Nodejs +- [pnpm](https://pnpm.io/installation) +- travailler avec PNPM ### éditer le fichier.env @@ -35,12 +35,11 @@ Que pouvez-vous faire avec Eliza? ### modifier les fichiers de rôles -- voir le document ` src/core/defaultCharacter ts ` - vous pouvez le modifier +- voir le document `src/core/defaultCharacter ts` - vous pouvez le modifier - vous pouvez également utiliser `node --loader ts-node/esm src/index.ts --characters="path/to/your/character.json" ` et simultanément plusieurs robots. Après avoir terminé la configuration des fichiers de compte et de rôle, lancez votre bot en tapant la ligne de commande suivante: - ``` pnpm i pnpm start @@ -169,4 +168,4 @@ Les tests sont écrits en Jest et se trouvent dans le fichier SRC /\*_/_.test.ts - support du module ESM - exécuter les tests dans l’ordre (--runInBand) -Pour créer un nouveau test, ajoutez un fichier.test.ts à côté du code à tester. \ No newline at end of file +Pour créer un nouveau test, ajoutez un fichier.test.ts à côté du code à tester. diff --git a/docs/docs/api/_media/README_KOR.md b/docs/docs/api/_media/README_KOR.md index 6cbc3063ba4..ec563bbad02 100644 --- a/docs/docs/api/_media/README_KOR.md +++ b/docs/docs/api/_media/README_KOR.md @@ -4,39 +4,39 @@ ## 기능 -- 🛠 지지 discord 트위터/telegram 연결 -- 👥 지지여 모드 agent -- 📚 간단 한 문서를 가져오기와 문서를 번갈아 -- 💾 검색 할 수 있는 메모리와 문서 저장 -- 🚀 확장 가능 성이 높은, 사용자 정의 클라이언트와 행위를 확장 기능 -- ☁ ️여 모형 지지 llama · openai grok anthropic 등 -- 📦 간단 하기도 좋습니다. +- 🛠 지지 discord 트위터/telegram 연결 +- 👥 지지여 모드 agent +- 📚 간단 한 문서를 가져오기와 문서를 번갈아 +- 💾 검색 할 수 있는 메모리와 문서 저장 +- 🚀 확장 가능 성이 높은, 사용자 정의 클라이언트와 행위를 확장 기능 +- ☁ ️여 모형 지지 llama · openai grok anthropic 등 +- 📦 간단 하기도 좋습니다. eliza로 뭘 할 수 있나요? -- 🤖 챗 봇 -- 🕵 ️ 자주 agents -- 📈 업무 처리 과정을 자동화 -- 🎮 게임 npc +- 🤖 챗 봇 +- 🕵 ️ 자주 agents +- 📈 업무 처리 과정을 자동화 +- 🎮 게임 npc # 사용시작 **전제 요구(필수):** -- [Node.js 22 +](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) -- Nodejs 설치 -- [pnpm](https://pnpm.io/installation) -- pnpm을사용한다 +- [Node.js 22 +](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) +- Nodejs 설치 +- [pnpm](https://pnpm.io/installation) +- pnpm을사용한다 ## 편집.env 파일 -- .env.example을.env로 복사하고 적절한 값을 입력한다 -- 트위터 환경을 편집하고, 트위터 계정과 비밀번호를 입력한다 +- .env.example을.env로 복사하고 적절한 값을 입력한다 +- 트위터 환경을 편집하고, 트위터 계정과 비밀번호를 입력한다 ## 캐릭터 파일 편집 -- 파일 `src/core/defaultcharacter.ts ` - 그것을 수정 할 수 있다 -- 사용하셔도됩니다 `node --loader ts-node/esm src/index.ts --characters="path/to/your/character.json"` 여러 로봇을 동시에 실행하여 캐릭터를 불러옵니다. +- 파일 `src/core/defaultcharacter.ts ` - 그것을 수정 할 수 있다 +- 사용하셔도됩니다 `node --loader ts-node/esm src/index.ts --characters="path/to/your/character.json"` 여러 로봇을 동시에 실행하여 캐릭터를 불러옵니다. 아이디와 캐릭터 파일 설정이 완료되었다면, 다음 명령줄을 입력하여 로봇을 실행시키십시오: @@ -163,9 +163,9 @@ pnpm test:sqljs # Run tests with SQL.js 테스트는 src/\*_/_.test.ts 파일에 있는 Jest로 작성된다.테스트 환경 설정은 다음과 같습니다: -- .env.test에서 환경 변수를 불러온다 -- 장기 실행 테스트를 실행하기 위해 2분 제한 시간을 사용합니다 -- esm 모듈을 지원한다 -- 테스트 실행 순서 (--runInBand) +- .env.test에서 환경 변수를 불러온다 +- 장기 실행 테스트를 실행하기 위해 2분 제한 시간을 사용합니다 +- esm 모듈을 지원한다 +- 테스트 실행 순서 (--runInBand) -새 테스트를 만들려면, 테스트할 코드 옆에.test.ts 파일을 추가하세요. \ No newline at end of file +새 테스트를 만들려면, 테스트할 코드 옆에.test.ts 파일을 추가하세요. diff --git a/docs/docs/community/streams/2024-11-10.md b/docs/docs/community/streams/2024-11-10.md index bbf7ed10928..abf87377baa 100644 --- a/docs/docs/community/streams/2024-11-10.md +++ b/docs/docs/community/streams/2024-11-10.md @@ -10,9 +10,11 @@ description: "Threadguy interviews Shaw live on Twitch" - VOD: https://www.twitch.tv/videos/2298718699 ## Overview + Shaw discusses the intersection of AI and crypto, the development of AI agents on Twitter, and the vision for AI-powered trading and investing. He shares insights into the Eliza framework, the AI16Z universe, and the future of AI in the crypto space. ## Notes + - 00:02:16 - Shaw is having the most fun in his life with the recent developments in AI and crypto. - 00:03:36 - Crypto Twitter has embraced AI, calling agents "meme coins". Shaw discusses the relationship between AI developers and the crypto community. - 00:08:50 - They discuss the recreation of DegenSpartan, AI characters, as a callback to "make crypto Twitter great again." diff --git a/docs/docs/community/streams/2024-11-15.md b/docs/docs/community/streams/2024-11-15.md index 7532d094c67..c842ac7c20a 100644 --- a/docs/docs/community/streams/2024-11-15.md +++ b/docs/docs/community/streams/2024-11-15.md @@ -8,41 +8,41 @@ description: "WDYGDTW: Social Agents / Advancing towards AGI" Link to space: https://x.com/i/spaces/1gqxvNpZVljxB/peek -- 00:02:02 - Meeting Start -- 00:03:10 - Audio Check -- 00:04:04 - Call Purpose: Team Updates on Agents, Social Agents & AGI -- 00:05:03 - Time Limit: 5-10 mins per speaker -- 00:06:01 - Speaker Queue: Logan, Kyle (Raid Guild), Glue, Ropey, Loaf, Odie, SomewheresHe, Robin -- 00:06:32 - Logan's Update: Trust Marketplace -- 00:09:57 - Shaw explains Trust Marketplace -- 00:10:49 - Kyle (Raid Guild) Update: DevCon, EVM Wallet Integration, Bridging for AI agents -- 00:14:19 - Glue Update: Ducky AI, Open Sourcing Prompts & Tools -- 00:17:31 - Ropey Update: Eliza Repo, Base Model Steering, Telegram Fixes, Dynamic Platform Access -- 00:21:29 - Loaf Update: Eliza Architecture, Starknet Wallet Plugin, On-chain Games Plugins -- 00:24:59 - Max Update: Helping Users Set Up -- 00:25:45 - SomewheresHe Update: Sentience, Media Generation, Discord Launch, Brand Integration & Future of Media -- 00:29:46 - Robin Update: God's Fun, Agent Autonomy & OpenRouter -- 00:32:08 - IQ6900 Update: Building a Cooler Website -- 00:34:19 - Marvin Update: Running Eliza on TEEs, Security & Transparency -- 00:35:42 - Dot Update: Streamer Platform for Eliza Agents -- 00:37:35 - JW Update: Decentralized AI Cloud, Heurist Integration -- 00:43:08 - Neo Update: Pump Fun Data Analysis & Twitter Bot -- 00:44:57 - Bloom Update: AI-Centric Project, Agent Integration, Future Vision -- 00:49:49 - Reality Spiral Update: Twitter Client PR, JSON Outputs, Github Adapter -- 00:55:35 - Call for Open Sharing: Encourage non-Eliza projects -- 00:55:58 - Jen Update: Documentation for AI Agents -- 00:58:50 - OFI Update: Olama & OpenRouter Model, Solana Transactions, Pump Fun on Image Gen -- 01:14:44 - Butoshi Update: Satoshi AI, Boop Memory System -- 01:20:37 - Doc (Geon Reborn) Update: Echo Chambers Client Launch -- 01:23:16 - HCP Update: Bringing Agent Designs to Eliza, Embeddings on ARM64 -- 01:27:13 - Garrett Update: Deep Writer, Diagrams for Planning & Feedback Loops -- 01:30:16 - Lady Liberty Update: Music Agent Project -- 01:31:34 - BoyaLockser Update: Learning the Project -- 01:32:53 - Amy Update: Psychic AI, Twitter Bot for Psychic Readings -- 01:34:42 - Griffin Update: Seeking Contribution Opportunities -- 01:38:19 - Frank (Heurist) Update: Heurist API Integration -- 01:44:12 - Shaw's Update & Vision: Focus on Knowledge Transfer, Tutorials & Vision Sharing -- 01:50:31 - Trust Marketplace & Alpha Chat Announcement -- 01:56:41 - Emergent Narrative & Agent Operators -- 02:00:54 - Tim Update: Dashboard for Visualizing ELIZA Agents, Tribute Model -- 02:16:41 - Closing Thoughts and Thanks +- 00:02:02 - Meeting Start +- 00:03:10 - Audio Check +- 00:04:04 - Call Purpose: Team Updates on Agents, Social Agents & AGI +- 00:05:03 - Time Limit: 5-10 mins per speaker +- 00:06:01 - Speaker Queue: Logan, Kyle (Raid Guild), Glue, Ropey, Loaf, Odie, SomewheresHe, Robin +- 00:06:32 - Logan's Update: Trust Marketplace +- 00:09:57 - Shaw explains Trust Marketplace +- 00:10:49 - Kyle (Raid Guild) Update: DevCon, EVM Wallet Integration, Bridging for AI agents +- 00:14:19 - Glue Update: Ducky AI, Open Sourcing Prompts & Tools +- 00:17:31 - Ropey Update: Eliza Repo, Base Model Steering, Telegram Fixes, Dynamic Platform Access +- 00:21:29 - Loaf Update: Eliza Architecture, Starknet Wallet Plugin, On-chain Games Plugins +- 00:24:59 - Max Update: Helping Users Set Up +- 00:25:45 - SomewheresHe Update: Sentience, Media Generation, Discord Launch, Brand Integration & Future of Media +- 00:29:46 - Robin Update: God's Fun, Agent Autonomy & OpenRouter +- 00:32:08 - IQ6900 Update: Building a Cooler Website +- 00:34:19 - Marvin Update: Running Eliza on TEEs, Security & Transparency +- 00:35:42 - Dot Update: Streamer Platform for Eliza Agents +- 00:37:35 - JW Update: Decentralized AI Cloud, Heurist Integration +- 00:43:08 - Neo Update: Pump Fun Data Analysis & Twitter Bot +- 00:44:57 - Bloom Update: AI-Centric Project, Agent Integration, Future Vision +- 00:49:49 - Reality Spiral Update: Twitter Client PR, JSON Outputs, Github Adapter +- 00:55:35 - Call for Open Sharing: Encourage non-Eliza projects +- 00:55:58 - Jen Update: Documentation for AI Agents +- 00:58:50 - OFI Update: Olama & OpenRouter Model, Solana Transactions, Pump Fun on Image Gen +- 01:14:44 - Butoshi Update: Satoshi AI, Boop Memory System +- 01:20:37 - Doc (Geon Reborn) Update: Echo Chambers Client Launch +- 01:23:16 - HCP Update: Bringing Agent Designs to Eliza, Embeddings on ARM64 +- 01:27:13 - Garrett Update: Deep Writer, Diagrams for Planning & Feedback Loops +- 01:30:16 - Lady Liberty Update: Music Agent Project +- 01:31:34 - BoyaLockser Update: Learning the Project +- 01:32:53 - Amy Update: Psychic AI, Twitter Bot for Psychic Readings +- 01:34:42 - Griffin Update: Seeking Contribution Opportunities +- 01:38:19 - Frank (Heurist) Update: Heurist API Integration +- 01:44:12 - Shaw's Update & Vision: Focus on Knowledge Transfer, Tutorials & Vision Sharing +- 01:50:31 - Trust Marketplace & Alpha Chat Announcement +- 01:56:41 - Emergent Narrative & Agent Operators +- 02:00:54 - Tim Update: Dashboard for Visualizing ELIZA Agents, Tribute Model +- 02:16:41 - Closing Thoughts and Thanks diff --git a/docs/docs/guides/configuration.md b/docs/docs/guides/configuration.md index 074337fdbdb..bc51efda0bf 100644 --- a/docs/docs/guides/configuration.md +++ b/docs/docs/guides/configuration.md @@ -99,7 +99,8 @@ Example usage: ```typescript const result = await generateImage( { - prompt: "A cute anime girl with big breasts and straight long black hair wearing orange T-shirt. The T-shirt has \"ai16z\" texts in the front. The girl is looking at the viewer", + prompt: + 'A cute anime girl with big breasts and straight long black hair wearing orange T-shirt. The T-shirt has "ai16z" texts in the front. The girl is looking at the viewer', width: 1024, height: 1024, numIterations: 20, // optional diff --git a/packages/client-twitter/src/utils.ts b/packages/client-twitter/src/utils.ts index 004e49fa06c..5849c71c6bb 100644 --- a/packages/client-twitter/src/utils.ts +++ b/packages/client-twitter/src/utils.ts @@ -42,7 +42,7 @@ export async function buildConversationThread( elizaLogger.debug("Processing tweet:", { id: currentTweet.id, inReplyToStatusId: currentTweet.inReplyToStatusId, - depth: depth + depth: depth, }); if (!currentTweet) { @@ -108,49 +108,58 @@ export async function buildConversationThread( visited.add(currentTweet.id); thread.unshift(currentTweet); - + elizaLogger.debug("Current thread state:", { length: thread.length, currentDepth: depth, - tweetId: currentTweet.id + tweetId: currentTweet.id, }); // If there's a parent tweet, fetch and process it if (currentTweet.inReplyToStatusId) { - elizaLogger.debug("Fetching parent tweet:", currentTweet.inReplyToStatusId); + elizaLogger.debug( + "Fetching parent tweet:", + currentTweet.inReplyToStatusId + ); try { const parentTweet = await client.twitterClient.getTweet( - currentTweet.inReplyToStatusId, + currentTweet.inReplyToStatusId ); if (parentTweet) { elizaLogger.debug("Found parent tweet:", { id: parentTweet.id, - text: parentTweet.text?.slice(0, 50) + text: parentTweet.text?.slice(0, 50), }); await processThread(parentTweet, depth + 1); } else { - elizaLogger.debug("No parent tweet found for:", currentTweet.inReplyToStatusId); + elizaLogger.debug( + "No parent tweet found for:", + currentTweet.inReplyToStatusId + ); } } catch (error) { elizaLogger.error("Error fetching parent tweet:", { tweetId: currentTweet.inReplyToStatusId, - error + error, }); } } else { - elizaLogger.debug("Reached end of reply chain at:", currentTweet.id); + elizaLogger.debug( + "Reached end of reply chain at:", + currentTweet.id + ); } } await processThread(tweet, 0); - + elizaLogger.debug("Final thread built:", { totalTweets: thread.length, - tweetIds: thread.map(t => ({ + tweetIds: thread.map((t) => ({ id: t.id, - text: t.text?.slice(0, 50) - })) + text: t.text?.slice(0, 50), + })), }); return thread; diff --git a/packages/core/README-TESTS.md b/packages/core/README-TESTS.md index 85a14eb8f69..2d9ab7d6d01 100644 --- a/packages/core/README-TESTS.md +++ b/packages/core/README-TESTS.md @@ -5,31 +5,34 @@ This package contains a test suite for evaluating functionalities using **Jest** ## Prerequisites 1. **pnpm**: Ensure you have `pnpm` installed. If not, you can install it globally using: - ```bash - npm install -g pnpm - ``` + + ```bash + npm install -g pnpm + ``` 2. **Environment Variables - NOT REQUIRED** : Set up a `.env` file in the project root (eliza) with the necessary environment variables. Copy .env.example file and add required variables. ## Setup 1. Navigate to the `packages/core` directory: - ```bash - cd packages/core - ``` + + ```bash + cd packages/core + ``` 2. Install dependencies: - ```bash - pnpm install - ``` + ```bash + pnpm install + ``` ## Running Tests Run all tests using: + ```bash pnpm test ``` The test results will be displayed in the terminal. ---- \ No newline at end of file +--- diff --git a/packages/core/src/tests/database.test.ts b/packages/core/src/tests/database.test.ts index 9922d169300..cab1b659732 100644 --- a/packages/core/src/tests/database.test.ts +++ b/packages/core/src/tests/database.test.ts @@ -1,126 +1,206 @@ /* eslint-disable no-dupe-class-members */ -import { DatabaseAdapter } from '../database.ts'; // Adjust the import based on your project structure -import { Memory, Actor, Account, Goal, GoalStatus, Participant, Relationship, UUID } from '../types'; // Adjust based on your types location +import { DatabaseAdapter } from "../database.ts"; // Adjust the import based on your project structure +import { + Memory, + Actor, + Account, + Goal, + GoalStatus, + Participant, + Relationship, + UUID, +} from "../types"; // Adjust based on your types location class MockDatabaseAdapter extends DatabaseAdapter { getMemoryById(_id: UUID): Promise { - throw new Error('Method not implemented.'); - } - log(_params: { body: { [key: string]: unknown; }; userId: UUID; roomId: UUID; type: string; }): Promise { - throw new Error('Method not implemented.'); - } - getActorDetails(_params: { roomId: UUID; }): Promise { - throw new Error('Method not implemented.'); - } - searchMemoriesByEmbedding(_embedding: number[], _params: { match_threshold?: number; count?: number; roomId?: UUID; agentId?: UUID; unique?: boolean; tableName: string; }): Promise { - throw new Error('Method not implemented.'); - } - createMemory(_memory: Memory, _tableName: string, _unique?: boolean): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); + } + log(_params: { + body: { [key: string]: unknown }; + userId: UUID; + roomId: UUID; + type: string; + }): Promise { + throw new Error("Method not implemented."); + } + getActorDetails(_params: { roomId: UUID }): Promise { + throw new Error("Method not implemented."); + } + searchMemoriesByEmbedding( + _embedding: number[], + _params: { + match_threshold?: number; + count?: number; + roomId?: UUID; + agentId?: UUID; + unique?: boolean; + tableName: string; + } + ): Promise { + throw new Error("Method not implemented."); + } + createMemory( + _memory: Memory, + _tableName: string, + _unique?: boolean + ): Promise { + throw new Error("Method not implemented."); } removeMemory(_memoryId: UUID, _tableName: string): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); } removeAllMemories(_roomId: UUID, _tableName: string): Promise { - throw new Error('Method not implemented.'); - } - countMemories(_roomId: UUID, _unique?: boolean, _tableName?: string): Promise { - throw new Error('Method not implemented.'); - } - getGoals(_params: { roomId: UUID; userId?: UUID | null; onlyInProgress?: boolean; count?: number; }): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); + } + countMemories( + _roomId: UUID, + _unique?: boolean, + _tableName?: string + ): Promise { + throw new Error("Method not implemented."); + } + getGoals(_params: { + roomId: UUID; + userId?: UUID | null; + onlyInProgress?: boolean; + count?: number; + }): Promise { + throw new Error("Method not implemented."); } updateGoal(_goal: Goal): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); } createGoal(_goal: Goal): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); } removeGoal(_goalId: UUID): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); } removeAllGoals(_roomId: UUID): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); } getRoom(_roomId: UUID): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); } createRoom(_roomId?: UUID): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); } removeRoom(_roomId: UUID): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); } getRoomsForParticipant(_userId: UUID): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); } getRoomsForParticipants(_userIds: UUID[]): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); } addParticipant(_userId: UUID, _roomId: UUID): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); } removeParticipant(_userId: UUID, _roomId: UUID): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); } getParticipantsForAccount(userId: UUID): Promise; getParticipantsForAccount(userId: UUID): Promise; - getParticipantsForAccount(_userId: unknown): Promise { - throw new Error('Method not implemented.'); + getParticipantsForAccount( + _userId: unknown + ): Promise { + throw new Error("Method not implemented."); } getParticipantsForRoom(_roomId: UUID): Promise { - throw new Error('Method not implemented.'); - } - getParticipantUserState(_roomId: UUID, _userId: UUID): Promise<'FOLLOWED' | 'MUTED' | null> { - throw new Error('Method not implemented.'); - } - setParticipantUserState(_roomId: UUID, _userId: UUID, _state: 'FOLLOWED' | 'MUTED' | null): Promise { - throw new Error('Method not implemented.'); - } - createRelationship(_params: { userA: UUID; userB: UUID; }): Promise { - throw new Error('Method not implemented.'); - } - getRelationship(_params: { userA: UUID; userB: UUID; }): Promise { - throw new Error('Method not implemented.'); - } - getRelationships(_params: { userId: UUID; }): Promise { - throw new Error('Method not implemented.'); + throw new Error("Method not implemented."); + } + getParticipantUserState( + _roomId: UUID, + _userId: UUID + ): Promise<"FOLLOWED" | "MUTED" | null> { + throw new Error("Method not implemented."); + } + setParticipantUserState( + _roomId: UUID, + _userId: UUID, + _state: "FOLLOWED" | "MUTED" | null + ): Promise { + throw new Error("Method not implemented."); + } + createRelationship(_params: { + userA: UUID; + userB: UUID; + }): Promise { + throw new Error("Method not implemented."); + } + getRelationship(_params: { + userA: UUID; + userB: UUID; + }): Promise { + throw new Error("Method not implemented."); + } + getRelationships(_params: { userId: UUID }): Promise { + throw new Error("Method not implemented."); } db: any = {}; // Mock method for getting memories by room IDs - async getMemoriesByRoomIds(params: { roomIds: `${string}-${string}-${string}-${string}-${string}`[]; agentId?: `${string}-${string}-${string}-${string}-${string}`; tableName: string }): Promise { - return [{ - id: 'memory-id' as UUID, - content: 'Test Memory', - roomId: params.roomIds[0], - userId: 'user-id' as UUID, - agentId: params.agentId ?? 'agent-id' as UUID - }] as unknown as Memory[]; + async getMemoriesByRoomIds(params: { + roomIds: `${string}-${string}-${string}-${string}-${string}`[]; + agentId?: `${string}-${string}-${string}-${string}-${string}`; + tableName: string; + }): Promise { + return [ + { + id: "memory-id" as UUID, + content: "Test Memory", + roomId: params.roomIds[0], + userId: "user-id" as UUID, + agentId: params.agentId ?? ("agent-id" as UUID), + }, + ] as unknown as Memory[]; } // Mock method for getting cached embeddings - async getCachedEmbeddings(_params: { query_table_name: string; query_threshold: number; query_input: string; query_field_name: string; query_field_sub_name: string; query_match_count: number }): Promise { - return [{ - embedding: [0.1, 0.2, 0.3], - levenshtein_distance: 0.4 - }]; + async getCachedEmbeddings(_params: { + query_table_name: string; + query_threshold: number; + query_input: string; + query_field_name: string; + query_field_sub_name: string; + query_match_count: number; + }): Promise { + return [ + { + embedding: [0.1, 0.2, 0.3], + levenshtein_distance: 0.4, + }, + ]; } // Mock method for searching memories - async searchMemories(params: { tableName: string; roomId: `${string}-${string}-${string}-${string}-${string}`; embedding: number[]; match_threshold: number; match_count: number; unique: boolean }): Promise { - return [{ - id: 'memory-id' as UUID, - content: 'Test Memory', - roomId: params.roomId, - userId: 'user-id' as UUID, - agentId: 'agent-id' as UUID - }] as unknown as Memory[]; + async searchMemories(params: { + tableName: string; + roomId: `${string}-${string}-${string}-${string}-${string}`; + embedding: number[]; + match_threshold: number; + match_count: number; + unique: boolean; + }): Promise { + return [ + { + id: "memory-id" as UUID, + content: "Test Memory", + roomId: params.roomId, + userId: "user-id" as UUID, + agentId: "agent-id" as UUID, + }, + ] as unknown as Memory[]; } // Mock method for getting account by ID async getAccountById(userId: UUID): Promise { - return { id: userId, username: 'testuser', name: 'Test Account' } as Account; + return { + id: userId, + username: "testuser", + name: "Test Account", + } as Account; } // Other methods stay the same... @@ -128,26 +208,38 @@ class MockDatabaseAdapter extends DatabaseAdapter { return true; } - async getMemories(params: { roomId: UUID; count?: number; unique?: boolean; tableName: string }): Promise { - return [{ - id: 'memory-id' as UUID, - content: 'Test Memory', - roomId: params.roomId, - userId: 'user-id' as UUID, - agentId: 'agent-id' as UUID - }] as unknown as Memory[]; + async getMemories(params: { + roomId: UUID; + count?: number; + unique?: boolean; + tableName: string; + }): Promise { + return [ + { + id: "memory-id" as UUID, + content: "Test Memory", + roomId: params.roomId, + userId: "user-id" as UUID, + agentId: "agent-id" as UUID, + }, + ] as unknown as Memory[]; } async getActors(_params: { roomId: UUID }): Promise { - return [{ - id: 'actor-id' as UUID, - name: 'Test Actor', - username: 'testactor', - roomId: 'room-id' as UUID // Ensure roomId is provided - }] as unknown as Actor[]; + return [ + { + id: "actor-id" as UUID, + name: "Test Actor", + username: "testactor", + roomId: "room-id" as UUID, // Ensure roomId is provided + }, + ] as unknown as Actor[]; } - async updateGoalStatus(_params: { goalId: UUID, status: GoalStatus }): Promise { + async updateGoalStatus(_params: { + goalId: UUID; + status: GoalStatus; + }): Promise { return Promise.resolve(); } @@ -155,83 +247,91 @@ class MockDatabaseAdapter extends DatabaseAdapter { return { id: goalId, status: GoalStatus.IN_PROGRESS, - roomId: 'room-id' as UUID, - userId: 'user-id' as UUID, - name: 'Test Goal', - objectives: [] + roomId: "room-id" as UUID, + userId: "user-id" as UUID, + name: "Test Goal", + objectives: [], } as Goal; } } // Now, let’s fix the test suite. -describe('DatabaseAdapter Tests', () => { +describe("DatabaseAdapter Tests", () => { let adapter: MockDatabaseAdapter; - const roomId = 'room-id' as UUID; + const roomId = "room-id" as UUID; beforeEach(() => { adapter = new MockDatabaseAdapter(); }); - it('should return memories by room ID', async () => { + it("should return memories by room ID", async () => { const memories = await adapter.getMemoriesByRoomIds({ - roomIds: ['room-id' as `${string}-${string}-${string}-${string}-${string}`], - tableName: 'test_table' + roomIds: [ + "room-id" as `${string}-${string}-${string}-${string}-${string}`, + ], + tableName: "test_table", }); expect(memories).toHaveLength(1); - expect(memories[0].roomId).toBe('room-id'); + expect(memories[0].roomId).toBe("room-id"); }); - it('should return cached embeddings', async () => { + it("should return cached embeddings", async () => { const embeddings = await adapter.getCachedEmbeddings({ - query_table_name: 'test_table', + query_table_name: "test_table", query_threshold: 0.5, - query_input: 'test query', - query_field_name: 'field', - query_field_sub_name: 'subfield', - query_match_count: 5 + query_input: "test query", + query_field_name: "field", + query_field_sub_name: "subfield", + query_match_count: 5, }); expect(embeddings).toHaveLength(1); expect(embeddings[0].embedding).toEqual([0.1, 0.2, 0.3]); }); - it('should search memories based on embedding', async () => { + it("should search memories based on embedding", async () => { const memories = await adapter.searchMemories({ - tableName: 'test_table', - roomId: 'room-id' as `${string}-${string}-${string}-${string}-${string}`, + tableName: "test_table", + roomId: "room-id" as `${string}-${string}-${string}-${string}-${string}`, embedding: [0.1, 0.2, 0.3], match_threshold: 0.5, match_count: 3, - unique: true + unique: true, }); expect(memories).toHaveLength(1); - expect(memories[0].roomId).toBe('room-id'); + expect(memories[0].roomId).toBe("room-id"); }); - it('should get an account by user ID', async () => { - const account = await adapter.getAccountById('test-user-id' as UUID); + it("should get an account by user ID", async () => { + const account = await adapter.getAccountById("test-user-id" as UUID); expect(account).not.toBeNull(); - expect(account.username).toBe('testuser'); + expect(account.username).toBe("testuser"); }); - it('should create a new account', async () => { - const newAccount: Account = { id: 'new-user-id' as UUID, username: 'newuser', name: 'New Account' }; + it("should create a new account", async () => { + const newAccount: Account = { + id: "new-user-id" as UUID, + username: "newuser", + name: "New Account", + }; const result = await adapter.createAccount(newAccount); expect(result).toBe(true); }); - it('should update the goal status', async () => { - const goalId = 'goal-id' as UUID; - await expect(adapter.updateGoalStatus({ goalId, status: GoalStatus.IN_PROGRESS })).resolves.toBeUndefined(); + it("should update the goal status", async () => { + const goalId = "goal-id" as UUID; + await expect( + adapter.updateGoalStatus({ goalId, status: GoalStatus.IN_PROGRESS }) + ).resolves.toBeUndefined(); }); - it('should return actors by room ID', async () => { + it("should return actors by room ID", async () => { const actors = await adapter.getActors({ roomId }); expect(actors).toHaveLength(1); }); - it('should get a goal by ID', async () => { - const goalId = 'goal-id' as UUID; + it("should get a goal by ID", async () => { + const goalId = "goal-id" as UUID; const goal = await adapter.getGoalById(goalId); expect(goal).not.toBeNull(); expect(goal?.status).toBe(GoalStatus.IN_PROGRESS); diff --git a/packages/core/src/tests/defaultCharacters.test.ts b/packages/core/src/tests/defaultCharacters.test.ts index 32b916b7412..e22f9d592a8 100644 --- a/packages/core/src/tests/defaultCharacters.test.ts +++ b/packages/core/src/tests/defaultCharacters.test.ts @@ -1,48 +1,52 @@ -import { defaultCharacter } from '../defaultCharacter'; -import { ModelProviderName } from '../types'; - -describe('defaultCharacter', () => { - it('should have the correct name', () => { - expect(defaultCharacter.name).toBe('Eliza'); - }); - - it('should have an empty plugins array', () => { - expect(defaultCharacter.plugins).toEqual([]); - }); - - it('should have an empty clients array', () => { - expect(defaultCharacter.clients).toEqual([]); - }); - - it('should have the correct modelProvider', () => { - expect(defaultCharacter.modelProvider).toBe(ModelProviderName.OPENAI); - }); - - it('should have the correct voice model', () => { - expect(defaultCharacter.settings.voice.model).toBe('en_US-hfc_female-medium'); - }); - - it('should have a system description', () => { - expect(defaultCharacter.system).toBe('Roleplay and generate interesting on behalf of Eliza.'); - }); - - it('should have a bio array with at least one entry', () => { - expect(defaultCharacter.bio.length).toBeGreaterThan(0); - }); - - it('should have a lore array with at least one entry', () => { - expect(defaultCharacter.lore.length).toBeGreaterThan(0); - }); - - it('should have messageExamples array with at least one example', () => { - expect(defaultCharacter.messageExamples.length).toBeGreaterThan(0); - }); - - it('should have a topics array with at least one broad topic', () => { - expect(defaultCharacter.topics).toContain('metaphysics'); - }); - - it('should have style settings with "all" array', () => { - expect(defaultCharacter.style.all.length).toBeGreaterThan(0); - }); +import { defaultCharacter } from "../defaultCharacter"; +import { ModelProviderName } from "../types"; + +describe("defaultCharacter", () => { + it("should have the correct name", () => { + expect(defaultCharacter.name).toBe("Eliza"); + }); + + it("should have an empty plugins array", () => { + expect(defaultCharacter.plugins).toEqual([]); + }); + + it("should have an empty clients array", () => { + expect(defaultCharacter.clients).toEqual([]); + }); + + it("should have the correct modelProvider", () => { + expect(defaultCharacter.modelProvider).toBe(ModelProviderName.OPENAI); + }); + + it("should have the correct voice model", () => { + expect(defaultCharacter.settings.voice.model).toBe( + "en_US-hfc_female-medium" + ); + }); + + it("should have a system description", () => { + expect(defaultCharacter.system).toBe( + "Roleplay and generate interesting on behalf of Eliza." + ); + }); + + it("should have a bio array with at least one entry", () => { + expect(defaultCharacter.bio.length).toBeGreaterThan(0); + }); + + it("should have a lore array with at least one entry", () => { + expect(defaultCharacter.lore.length).toBeGreaterThan(0); + }); + + it("should have messageExamples array with at least one example", () => { + expect(defaultCharacter.messageExamples.length).toBeGreaterThan(0); + }); + + it("should have a topics array with at least one broad topic", () => { + expect(defaultCharacter.topics).toContain("metaphysics"); + }); + + it('should have style settings with "all" array', () => { + expect(defaultCharacter.style.all.length).toBeGreaterThan(0); + }); }); diff --git a/packages/core/src/tests/evaluators.test.ts b/packages/core/src/tests/evaluators.test.ts index ef9c2995c13..090f3f482aa 100644 --- a/packages/core/src/tests/evaluators.test.ts +++ b/packages/core/src/tests/evaluators.test.ts @@ -1,80 +1,117 @@ -import { formatEvaluatorNames, formatEvaluators, formatEvaluatorExamples, formatEvaluatorExampleDescriptions } from '../evaluators'; -import { Evaluator, HandlerCallback, IAgentRuntime, Memory, State } from '../types'; +import { + formatEvaluatorNames, + formatEvaluators, + formatEvaluatorExamples, + formatEvaluatorExampleDescriptions, +} from "../evaluators"; +import { + Evaluator, + HandlerCallback, + IAgentRuntime, + Memory, + State, +} from "../types"; // Mock data for evaluators const mockEvaluators: Evaluator[] = [ - { - name: "Evaluator1", - description: "This is the first evaluator.", - examples: [ - { - context: "Context 1 with {{user1}}.", - outcome: "Outcome 1 with {{user1}}.", - messages: [ - { user: "user1", content: { text: "Message 1", action: "action1" } }, - { user: "user2", content: { text: "Message 2" } }, - ], - }, - ], - similes: [], - handler: function (_runtime: IAgentRuntime, _message: Memory, _state?: State, _options?: { [key: string]: unknown; }, _callback?: HandlerCallback): Promise { - throw new Error('Function not implemented.'); - }, - validate: function (_runtime: IAgentRuntime, _message: Memory, _state?: State): Promise { - throw new Error('Function not implemented.'); - } - }, - { - name: "Evaluator2", - description: "This is the second evaluator.", - examples: [ - { - context: "Context 2 with {{user1}} and {{user2}}.", - outcome: "Outcome 2 with {{user1}} and {{user2}}.", - messages: [ - { user: "user1", content: { text: "Message 1", action: "action1" } }, - { user: "user2", content: { text: "Message 2" } }, - ], - }, - ], - similes: [], - handler: function (_runtime: IAgentRuntime, _message: Memory, _state?: State, _options?: { [key: string]: unknown; }, _callback?: HandlerCallback): Promise { - throw new Error('Function not implemented.'); - }, - validate: function (_runtime: IAgentRuntime, _message: Memory, _state?: State): Promise { - throw new Error('Function not implemented.'); - } - }, + { + name: "Evaluator1", + description: "This is the first evaluator.", + examples: [ + { + context: "Context 1 with {{user1}}.", + outcome: "Outcome 1 with {{user1}}.", + messages: [ + { + user: "user1", + content: { text: "Message 1", action: "action1" }, + }, + { user: "user2", content: { text: "Message 2" } }, + ], + }, + ], + similes: [], + handler: function ( + _runtime: IAgentRuntime, + _message: Memory, + _state?: State, + _options?: { [key: string]: unknown }, + _callback?: HandlerCallback + ): Promise { + throw new Error("Function not implemented."); + }, + validate: function ( + _runtime: IAgentRuntime, + _message: Memory, + _state?: State + ): Promise { + throw new Error("Function not implemented."); + }, + }, + { + name: "Evaluator2", + description: "This is the second evaluator.", + examples: [ + { + context: "Context 2 with {{user1}} and {{user2}}.", + outcome: "Outcome 2 with {{user1}} and {{user2}}.", + messages: [ + { + user: "user1", + content: { text: "Message 1", action: "action1" }, + }, + { user: "user2", content: { text: "Message 2" } }, + ], + }, + ], + similes: [], + handler: function ( + _runtime: IAgentRuntime, + _message: Memory, + _state?: State, + _options?: { [key: string]: unknown }, + _callback?: HandlerCallback + ): Promise { + throw new Error("Function not implemented."); + }, + validate: function ( + _runtime: IAgentRuntime, + _message: Memory, + _state?: State + ): Promise { + throw new Error("Function not implemented."); + }, + }, ]; // Unit test for formatEvaluatorNames -test('formats evaluator names correctly', () => { - const result = formatEvaluatorNames(mockEvaluators); - expect(result).toBe("'Evaluator1',\n'Evaluator2'"); +test("formats evaluator names correctly", () => { + const result = formatEvaluatorNames(mockEvaluators); + expect(result).toBe("'Evaluator1',\n'Evaluator2'"); }); // Unit test for formatEvaluators -test('formats evaluators correctly', () => { - const result = formatEvaluators(mockEvaluators); - expect(result).toBe( - "'Evaluator1: This is the first evaluator.',\n'Evaluator2: This is the second evaluator.'" - ); +test("formats evaluators correctly", () => { + const result = formatEvaluators(mockEvaluators); + expect(result).toBe( + "'Evaluator1: This is the first evaluator.',\n'Evaluator2: This is the second evaluator.'" + ); }); // Unit test for formatEvaluatorExamples -test('formats evaluator examples correctly', () => { - const result = formatEvaluatorExamples(mockEvaluators); - expect(result).toContain('Context:\nContext 1 with'); - expect(result).toContain('Outcome:\nOutcome 1 with'); - expect(result).toContain('Messages:\nuser1: Message 1 (action1)'); +test("formats evaluator examples correctly", () => { + const result = formatEvaluatorExamples(mockEvaluators); + expect(result).toContain("Context:\nContext 1 with"); + expect(result).toContain("Outcome:\nOutcome 1 with"); + expect(result).toContain("Messages:\nuser1: Message 1 (action1)"); }); // Unit test for formatEvaluatorExampleDescriptions -test('formats evaluator example descriptions correctly', () => { - const result = formatEvaluatorExampleDescriptions(mockEvaluators); - expect(result).toBe( - "Evaluator1 Example 1: This is the first evaluator.\n\nEvaluator2 Example 1: This is the second evaluator." - ); +test("formats evaluator example descriptions correctly", () => { + const result = formatEvaluatorExampleDescriptions(mockEvaluators); + expect(result).toBe( + "Evaluator1 Example 1: This is the first evaluator.\n\nEvaluator2 Example 1: This is the second evaluator." + ); }); // Additional tests can be added to ensure edge cases and larger inputs are handled diff --git a/packages/core/src/tests/goals.test.ts b/packages/core/src/tests/goals.test.ts index 65f0adde2d0..cd845d12209 100644 --- a/packages/core/src/tests/goals.test.ts +++ b/packages/core/src/tests/goals.test.ts @@ -1,5 +1,22 @@ -import { getGoals, formatGoalsAsString, updateGoal, createGoal } from "../goals"; -import { type Goal, type IAgentRuntime, type UUID, Action, GoalStatus, HandlerCallback, IMemoryManager, Memory, ModelProviderName, Service, State } from "../types"; +import { + getGoals, + formatGoalsAsString, + updateGoal, + createGoal, +} from "../goals"; +import { + type Goal, + type IAgentRuntime, + type UUID, + Action, + GoalStatus, + HandlerCallback, + IMemoryManager, + Memory, + ModelProviderName, + Service, + State, +} from "../types"; // Mock the database adapter const mockDatabaseAdapter = { @@ -36,26 +53,26 @@ const mockRuntime: IAgentRuntime = { secrets: {}, voice: { model: "", - url: "" + url: "", }, model: "", - embeddingModel: "" + embeddingModel: "", }, clientConfig: { discord: { shouldIgnoreBotMessages: false, - shouldIgnoreDirectMessages: false + shouldIgnoreDirectMessages: false, }, telegram: { shouldIgnoreBotMessages: false, - shouldIgnoreDirectMessages: false - } + shouldIgnoreDirectMessages: false, + }, }, style: { all: [], chat: [], - post: [] - } + post: [], + }, }, providers: [], actions: [], @@ -79,31 +96,60 @@ const mockRuntime: IAgentRuntime = { getConversationLength: function (): number { throw new Error("Function not implemented."); }, - processActions: function (_message: Memory, _responses: Memory[], _state?: State, _callback?: HandlerCallback): Promise { + processActions: function ( + _message: Memory, + _responses: Memory[], + _state?: State, + _callback?: HandlerCallback + ): Promise { throw new Error("Function not implemented."); }, - evaluate: function (_message: Memory, _state?: State, _didRespond?: boolean): Promise { + evaluate: function ( + _message: Memory, + _state?: State, + _didRespond?: boolean + ): Promise { throw new Error("Function not implemented."); }, - ensureParticipantExists: function (_userId: UUID, _roomId: UUID): Promise { + ensureParticipantExists: function ( + _userId: UUID, + _roomId: UUID + ): Promise { throw new Error("Function not implemented."); }, - ensureUserExists: function (_userId: UUID, _userName: string | null, _name: string | null, _source: string | null): Promise { + ensureUserExists: function ( + _userId: UUID, + _userName: string | null, + _name: string | null, + _source: string | null + ): Promise { throw new Error("Function not implemented."); }, registerAction: function (_action: Action): void { throw new Error("Function not implemented."); }, - ensureConnection: function (_userId: UUID, _roomId: UUID, _userName?: string, _userScreenName?: string, _source?: string): Promise { + ensureConnection: function ( + _userId: UUID, + _roomId: UUID, + _userName?: string, + _userScreenName?: string, + _source?: string + ): Promise { throw new Error("Function not implemented."); }, - ensureParticipantInRoom: function (_userId: UUID, _roomId: UUID): Promise { + ensureParticipantInRoom: function ( + _userId: UUID, + _roomId: UUID + ): Promise { throw new Error("Function not implemented."); }, ensureRoomExists: function (_roomId: UUID): Promise { throw new Error("Function not implemented."); }, - composeState: function (_message: Memory, _additionalKeys?: { [key: string]: unknown; }): Promise { + composeState: function ( + _message: Memory, + _additionalKeys?: { [key: string]: unknown } + ): Promise { throw new Error("Function not implemented."); }, updateRecentMessageState: function (_state: State): Promise { @@ -111,7 +157,7 @@ const mockRuntime: IAgentRuntime = { }, getService: function (_service: string): typeof Service | null { throw new Error("Function not implemented."); - } + }, }; // Sample data @@ -129,7 +175,9 @@ const sampleGoal: Goal = { describe("getGoals", () => { it("retrieves goals successfully", async () => { - (mockDatabaseAdapter.getGoals as jest.Mock).mockResolvedValue([sampleGoal]); + (mockDatabaseAdapter.getGoals as jest.Mock).mockResolvedValue([ + sampleGoal, + ]); const result = await getGoals({ runtime: mockRuntime, @@ -172,9 +220,13 @@ describe("formatGoalsAsString", () => { describe("updateGoal", () => { it("updates a goal successfully", async () => { - (mockDatabaseAdapter.updateGoal as jest.Mock).mockResolvedValue(undefined); + (mockDatabaseAdapter.updateGoal as jest.Mock).mockResolvedValue( + undefined + ); - await expect(updateGoal({ runtime: mockRuntime, goal: sampleGoal })).resolves.toBeUndefined(); + await expect( + updateGoal({ runtime: mockRuntime, goal: sampleGoal }) + ).resolves.toBeUndefined(); expect(mockDatabaseAdapter.updateGoal).toHaveBeenCalledWith(sampleGoal); }); @@ -183,17 +235,21 @@ describe("updateGoal", () => { new Error("Failed to update goal") ); - await expect(updateGoal({ runtime: mockRuntime, goal: sampleGoal })).rejects.toThrow( - "Failed to update goal" - ); + await expect( + updateGoal({ runtime: mockRuntime, goal: sampleGoal }) + ).rejects.toThrow("Failed to update goal"); }); }); describe("createGoal", () => { it("creates a goal successfully", async () => { - (mockDatabaseAdapter.createGoal as jest.Mock).mockResolvedValue(undefined); + (mockDatabaseAdapter.createGoal as jest.Mock).mockResolvedValue( + undefined + ); - await expect(createGoal({ runtime: mockRuntime, goal: sampleGoal })).resolves.toBeUndefined(); + await expect( + createGoal({ runtime: mockRuntime, goal: sampleGoal }) + ).resolves.toBeUndefined(); expect(mockDatabaseAdapter.createGoal).toHaveBeenCalledWith(sampleGoal); }); @@ -202,8 +258,8 @@ describe("createGoal", () => { new Error("Failed to create goal") ); - await expect(createGoal({ runtime: mockRuntime, goal: sampleGoal })).rejects.toThrow( - "Failed to create goal" - ); + await expect( + createGoal({ runtime: mockRuntime, goal: sampleGoal }) + ).rejects.toThrow("Failed to create goal"); }); }); diff --git a/packages/core/src/tests/messages.test.ts b/packages/core/src/tests/messages.test.ts index 10f6db22e6c..4fef72a4ff8 100644 --- a/packages/core/src/tests/messages.test.ts +++ b/packages/core/src/tests/messages.test.ts @@ -1,4 +1,9 @@ -import { formatActors, formatMessages, getActorDetails, formatTimestamp } from "../messages.ts"; +import { + formatActors, + formatMessages, + getActorDetails, + formatTimestamp, +} from "../messages.ts"; import { IAgentRuntime, Actor, Content, Memory, UUID } from "../types.ts"; describe("Messages Library", () => { @@ -26,7 +31,7 @@ describe("Messages Library", () => { details: { tagline: "A test user", summary: "This is a test user for the system.", - quote: "" + quote: "", }, }, ]; @@ -37,16 +42,20 @@ describe("Messages Library", () => { const roomId: UUID = "room1234-1234-1234-1234-123456789abc" as UUID; // Properly mocking the resolved values of the mocked methods - (runtime.databaseAdapter.getParticipantsForRoom as jest.Mock).mockResolvedValue([userId]); - (runtime.databaseAdapter.getAccountById as jest.Mock).mockResolvedValue({ - id: userId, - name: "Test User", - username: "testuser", - details: { - tagline: "A test user", - summary: "This is a test user for the system.", - }, - }); + ( + runtime.databaseAdapter.getParticipantsForRoom as jest.Mock + ).mockResolvedValue([userId]); + (runtime.databaseAdapter.getAccountById as jest.Mock).mockResolvedValue( + { + id: userId, + name: "Test User", + username: "testuser", + details: { + tagline: "A test user", + summary: "This is a test user for the system.", + }, + } + ); // Calling the function under test const result = await getActorDetails({ runtime, roomId }); @@ -63,7 +72,9 @@ describe("Messages Library", () => { // Assertions expect(formattedActors).toContain("Test User"); expect(formattedActors).toContain("A test user"); - expect(formattedActors).toContain("This is a test user for the system."); + expect(formattedActors).toContain( + "This is a test user for the system." + ); }); test("formatMessages should format messages into a readable string", () => { @@ -73,7 +84,7 @@ describe("Messages Library", () => { userId: userId, roomId: "room1234-1234-1234-1234-123456789abc" as UUID, createdAt: new Date().getTime(), - agentId: "" as UUID // assuming agentId is an empty string here + agentId: "" as UUID, // assuming agentId is an empty string here }, ]; @@ -98,13 +109,17 @@ describe("Messages Library", () => { content: { text: "Check this attachment", attachments: [ - { id: "1", title: "Image", url: "http://example.com/image.jpg" }, + { + id: "1", + title: "Image", + url: "http://example.com/image.jpg", + }, ], } as Content, userId: userId, roomId: "room1234-1234-1234-1234-123456789abc" as UUID, createdAt: new Date().getTime(), - agentId: "" as UUID // assuming agentId is an empty string here + agentId: "" as UUID, // assuming agentId is an empty string here }, ]; @@ -112,7 +127,9 @@ describe("Messages Library", () => { // Assertions expect(formattedMessages).toContain("Check this attachment"); - expect(formattedMessages).toContain("Attachments: [1 - Image (http://example.com/image.jpg)]"); + expect(formattedMessages).toContain( + "Attachments: [1 - Image (http://example.com/image.jpg)]" + ); }); test("formatMessages should handle empty attachments gracefully", () => { @@ -124,7 +141,7 @@ describe("Messages Library", () => { userId: userId, roomId: "room1234-1234-1234-1234-123456789abc" as UUID, createdAt: new Date().getTime(), - agentId: "" as UUID // assuming agentId is an empty string here + agentId: "" as UUID, // assuming agentId is an empty string here }, ]; diff --git a/packages/core/src/tests/models.test.ts b/packages/core/src/tests/models.test.ts index 66cbb101d7c..fd602abe060 100644 --- a/packages/core/src/tests/models.test.ts +++ b/packages/core/src/tests/models.test.ts @@ -1,37 +1,39 @@ -import { getModel, getEndpoint } from '../models.ts'; -import { ModelProviderName, ModelClass } from '../types.ts'; +import { getModel, getEndpoint } from "../models.ts"; +import { ModelProviderName, ModelClass } from "../types.ts"; -jest.mock('../settings', () => ({ - loadEnv: jest.fn(), // Mock the loadEnv function +jest.mock("../settings", () => ({ + loadEnv: jest.fn(), // Mock the loadEnv function })); -describe('Model Provider Tests', () => { - test('should retrieve the correct model for OpenAI SMALL', () => { - const model = getModel(ModelProviderName.OPENAI, ModelClass.SMALL); - expect(model).toBe('gpt-4o-mini'); - }); +describe("Model Provider Tests", () => { + test("should retrieve the correct model for OpenAI SMALL", () => { + const model = getModel(ModelProviderName.OPENAI, ModelClass.SMALL); + expect(model).toBe("gpt-4o-mini"); + }); - test('should retrieve the correct model for Google MEDIUM', () => { - const model = getModel(ModelProviderName.GOOGLE, ModelClass.MEDIUM); - expect(model).toBe('gemini-1.5-flash-latest'); - }); + test("should retrieve the correct model for Google MEDIUM", () => { + const model = getModel(ModelProviderName.GOOGLE, ModelClass.MEDIUM); + expect(model).toBe("gemini-1.5-flash-latest"); + }); - test('should retrieve the correct model for Groq LARGE', () => { - const model = getModel(ModelProviderName.GROQ, ModelClass.LARGE); - expect(model).toBe('llama-3.2-90b-text-preview'); - }); + test("should retrieve the correct model for Groq LARGE", () => { + const model = getModel(ModelProviderName.GROQ, ModelClass.LARGE); + expect(model).toBe("llama-3.2-90b-text-preview"); + }); - test('should retrieve the correct endpoint for OpenAI', () => { - const endpoint = getEndpoint(ModelProviderName.OPENAI); - expect(endpoint).toBe('https://api.openai.com/v1'); - }); + test("should retrieve the correct endpoint for OpenAI", () => { + const endpoint = getEndpoint(ModelProviderName.OPENAI); + expect(endpoint).toBe("https://api.openai.com/v1"); + }); - test('should retrieve the correct endpoint for Anthropic', () => { - const endpoint = getEndpoint(ModelProviderName.ANTHROPIC); - expect(endpoint).toBe('https://api.anthropic.com/v1'); - }); + test("should retrieve the correct endpoint for Anthropic", () => { + const endpoint = getEndpoint(ModelProviderName.ANTHROPIC); + expect(endpoint).toBe("https://api.anthropic.com/v1"); + }); - test('should handle invalid model provider', () => { - expect(() => getModel('INVALID_PROVIDER' as any, ModelClass.SMALL)).toThrow(); - }); + test("should handle invalid model provider", () => { + expect(() => + getModel("INVALID_PROVIDER" as any, ModelClass.SMALL) + ).toThrow(); + }); }); diff --git a/packages/core/src/tests/posts.test.ts b/packages/core/src/tests/posts.test.ts index f45dd73c6c1..c83911a0a41 100644 --- a/packages/core/src/tests/posts.test.ts +++ b/packages/core/src/tests/posts.test.ts @@ -1,100 +1,117 @@ -import { formatPosts } from '../posts.ts'; -import { Actor, Memory } from '../types.ts'; +import { formatPosts } from "../posts.ts"; +import { Actor, Memory } from "../types.ts"; // Mocked data with consistent conversation IDs const mockActors: Actor[] = [ - { - id: 'f9c8b107-953b-473d-8c87-2894c6e3fe25', name: 'Alice', username: 'alice123', - details: { - tagline: 'The quick brown fox', - summary: 'Lorem ipsum dolor sit amet.', - quote: 'To be or not to be.' - } - }, - { - id: 'e4928cd1-8007-40b1-93ff-7c5da3c39e36', name: 'Bob', username: 'bob456', - details: { - tagline: 'A journey of a thousand miles', - summary: 'Sed ut perspiciatis unde omnis iste.', - quote: 'Knowledge is power.' - } - }, - { - id: 'b62e64da-5699-4c8e-b58c-8d447b2f2014', name: 'Charlie', username: 'charlie789', - details: { - tagline: 'Hello, world!', - summary: 'Lorem ipsum dolor sit.', - quote: 'Live and let live.' - } - }, + { + id: "f9c8b107-953b-473d-8c87-2894c6e3fe25", + name: "Alice", + username: "alice123", + details: { + tagline: "The quick brown fox", + summary: "Lorem ipsum dolor sit amet.", + quote: "To be or not to be.", + }, + }, + { + id: "e4928cd1-8007-40b1-93ff-7c5da3c39e36", + name: "Bob", + username: "bob456", + details: { + tagline: "A journey of a thousand miles", + summary: "Sed ut perspiciatis unde omnis iste.", + quote: "Knowledge is power.", + }, + }, + { + id: "b62e64da-5699-4c8e-b58c-8d447b2f2014", + name: "Charlie", + username: "charlie789", + details: { + tagline: "Hello, world!", + summary: "Lorem ipsum dolor sit.", + quote: "Live and let live.", + }, + }, ]; const mockMessages: Memory[] = [ { - id: '0db429f4-9ad9-44db-b2c6-0cf6d6cb2dfe', - userId: 'f9c8b107-953b-473d-8c87-2894c6e3fe25', - roomId: 'aae8df56-e890-4876-a3ba-2cbfc94cbd97', + id: "0db429f4-9ad9-44db-b2c6-0cf6d6cb2dfe", + userId: "f9c8b107-953b-473d-8c87-2894c6e3fe25", + roomId: "aae8df56-e890-4876-a3ba-2cbfc94cbd97", createdAt: 2000, - content: { text: 'Hi Bob, how are you?', inReplyTo: 'f9c8b107-953b-473d-8c87-2894c6e3fe25' }, - agentId: 'f9c8b107-953b-473d-8c87-2894c6e3fe25' + content: { + text: "Hi Bob, how are you?", + inReplyTo: "f9c8b107-953b-473d-8c87-2894c6e3fe25", + }, + agentId: "f9c8b107-953b-473d-8c87-2894c6e3fe25", }, { - id: 'cdb70b0f-bcfe-44ea-b940-1d7e7e981768', - userId: 'e4928cd1-8007-40b1-93ff-7c5da3c39e36', - roomId: 'aae8df56-e890-4876-a3ba-2cbfc94cbd97', + id: "cdb70b0f-bcfe-44ea-b940-1d7e7e981768", + userId: "e4928cd1-8007-40b1-93ff-7c5da3c39e36", + roomId: "aae8df56-e890-4876-a3ba-2cbfc94cbd97", createdAt: 2500, - content: { text: 'Hi Alice, how are you?', inReplyTo: 'f9c8b107-953b-473d-8c87-2894c6e3fe25' }, - agentId: 'e4928cd1-8007-40b1-93ff-7c5da3c39e36' + content: { + text: "Hi Alice, how are you?", + inReplyTo: "f9c8b107-953b-473d-8c87-2894c6e3fe25", + }, + agentId: "e4928cd1-8007-40b1-93ff-7c5da3c39e36", }, { - id: '88297c98-3d95-4ab5-9c88-b7f01e10f7a7', - userId: 'b62e64da-5699-4c8e-b58c-8d447b2f2014', - roomId: 'c57bc580-dabf-4e56-9526-1ca1982f1d0c', + id: "88297c98-3d95-4ab5-9c88-b7f01e10f7a7", + userId: "b62e64da-5699-4c8e-b58c-8d447b2f2014", + roomId: "c57bc580-dabf-4e56-9526-1ca1982f1d0c", createdAt: 1500, - content: { text: 'Hello, how’s it going?', inReplyTo: null }, - agentId: 'b62e64da-5699-4c8e-b58c-8d447b2f2014' + content: { text: "Hello, how’s it going?", inReplyTo: null }, + agentId: "b62e64da-5699-4c8e-b58c-8d447b2f2014", }, { - id: 'f9c8f0f5-2aef-4a07-96d8-43b980cb7325', - userId: 'f9c8b107-953b-473d-8c87-2894c6e3fe25', - roomId: 'aae8df56-e890-4876-a3ba-2cbfc94cbd97', + id: "f9c8f0f5-2aef-4a07-96d8-43b980cb7325", + userId: "f9c8b107-953b-473d-8c87-2894c6e3fe25", + roomId: "aae8df56-e890-4876-a3ba-2cbfc94cbd97", createdAt: 3000, - content: { text: 'Let’s catch up later.', inReplyTo: 'e4928cd1-8007-40b1-93ff-7c5da3c39e36' }, - agentId: 'f9c8b107-953b-473d-8c87-2894c6e3fe25' + content: { + text: "Let’s catch up later.", + inReplyTo: "e4928cd1-8007-40b1-93ff-7c5da3c39e36", + }, + agentId: "f9c8b107-953b-473d-8c87-2894c6e3fe25", }, ]; // Unit tests for formatPosts -test('formats posts correctly with conversation header', () => { - const result = formatPosts({ - messages: mockMessages, - actors: mockActors, - conversationHeader: true, - }); +test("formats posts correctly with conversation header", () => { + const result = formatPosts({ + messages: mockMessages, + actors: mockActors, + conversationHeader: true, + }); - expect(result).toContain('Name: Alice (@alice123)'); - expect(result).toContain('ID: 0db429f4-9ad9-44db-b2c6-0cf6d6cb2dfe'); - expect(result).toContain('In reply to: f9c8b107-953b-473d-8c87-2894c6e3fe25'); - expect(result).toContain('Text:\nHi Bob, how are you?'); + expect(result).toContain("Name: Alice (@alice123)"); + expect(result).toContain("ID: 0db429f4-9ad9-44db-b2c6-0cf6d6cb2dfe"); + expect(result).toContain( + "In reply to: f9c8b107-953b-473d-8c87-2894c6e3fe25" + ); + expect(result).toContain("Text:\nHi Bob, how are you?"); }); -test('formats posts correctly with multiple rooms', () => { - const result = formatPosts({ - messages: mockMessages, - actors: mockActors, - conversationHeader: true, - }); +test("formats posts correctly with multiple rooms", () => { + const result = formatPosts({ + messages: mockMessages, + actors: mockActors, + conversationHeader: true, + }); - expect(result).toContain('Name: Alice (@alice123)'); - expect(result).toContain('Text:\nHello, how’s it going?'); + expect(result).toContain("Name: Alice (@alice123)"); + expect(result).toContain("Text:\nHello, how’s it going?"); }); -test('handles empty messages array', () => { - const result = formatPosts({ - messages: [], - actors: mockActors, - conversationHeader: true, - }); +test("handles empty messages array", () => { + const result = formatPosts({ + messages: [], + actors: mockActors, + conversationHeader: true, + }); - expect(result).toBe(''); + expect(result).toBe(""); }); diff --git a/packages/core/src/tests/providers.test.ts b/packages/core/src/tests/providers.test.ts index c031a89ab2c..62171f631a3 100644 --- a/packages/core/src/tests/providers.test.ts +++ b/packages/core/src/tests/providers.test.ts @@ -1,5 +1,11 @@ import { getProviders } from "../providers"; -import { IAgentRuntime, type Memory, type State, type Provider, UUID } from "../types.ts"; +import { + IAgentRuntime, + type Memory, + type State, + type Provider, + UUID, +} from "../types.ts"; describe("getProviders", () => { let runtime: IAgentRuntime; @@ -7,19 +13,31 @@ describe("getProviders", () => { // Mock providers for testing const MockProvider1: Provider = { - get: async (_runtime: IAgentRuntime, _message: Memory, _state?: State) => { + get: async ( + _runtime: IAgentRuntime, + _message: Memory, + _state?: State + ) => { return "Response from Provider 1"; }, }; const MockProvider2: Provider = { - get: async (_runtime: IAgentRuntime, _message: Memory, _state?: State) => { + get: async ( + _runtime: IAgentRuntime, + _message: Memory, + _state?: State + ) => { return "Response from Provider 2"; }, }; const MockProvider3: Provider = { - get: async (_runtime: IAgentRuntime, _message: Memory, _state?: State) => { + get: async ( + _runtime: IAgentRuntime, + _message: Memory, + _state?: State + ) => { return "Response from Provider 3"; }, }; @@ -37,11 +55,11 @@ describe("getProviders", () => { userId: "00000000-0000-0000-0000-000000000001", content: { text: "" }, roomId: roomId, - agentId: "00000000-0000-0000-0000-000000000002" + agentId: "00000000-0000-0000-0000-000000000002", }; const result = await getProviders(runtime, message, {} as State); - + // Check if the responses are concatenated correctly with newline separators expect(result).toBe( "Response from Provider 1\nResponse from Provider 2\nResponse from Provider 3" @@ -55,18 +73,22 @@ describe("getProviders", () => { userId: "00000000-0000-0000-0000-000000000001", content: { text: "" }, roomId: roomId, - agentId: "00000000-0000-0000-0000-000000000002" + agentId: "00000000-0000-0000-0000-000000000002", }; const result = await getProviders(runtime, message, {} as State); - + // No providers, should return an empty string expect(result).toBe(""); }); test("getProviders should handle providers returning undefined", async () => { const MockProviderWithUndefinedResponse: Provider = { - get: async (_runtime: IAgentRuntime, _message: Memory, _state?: State) => { + get: async ( + _runtime: IAgentRuntime, + _message: Memory, + _state?: State + ) => { return undefined; // Simulate undefined return }, }; @@ -77,7 +99,7 @@ describe("getProviders", () => { userId: "00000000-0000-0000-0000-000000000001", content: { text: "" }, roomId: roomId, - agentId: "00000000-0000-0000-0000-000000000002" + agentId: "00000000-0000-0000-0000-000000000002", }; const result = await getProviders(runtime, message, {} as State); @@ -88,13 +110,21 @@ describe("getProviders", () => { test("getProviders should concatenate valid responses and ignore undefined", async () => { const MockProviderWithValidAndUndefinedResponse: Provider = { - get: async (_runtime: IAgentRuntime, _message: Memory, _state?: State) => { + get: async ( + _runtime: IAgentRuntime, + _message: Memory, + _state?: State + ) => { return "Valid response"; }, }; const MockProviderWithUndefinedResponse: Provider = { - get: async (_runtime: IAgentRuntime, _message: Memory, _state?: State) => { + get: async ( + _runtime: IAgentRuntime, + _message: Memory, + _state?: State + ) => { return undefined; }, }; @@ -108,7 +138,7 @@ describe("getProviders", () => { userId: "00000000-0000-0000-0000-000000000001", content: { text: "" }, roomId: roomId, - agentId: "00000000-0000-0000-0000-000000000002" + agentId: "00000000-0000-0000-0000-000000000002", }; const result = await getProviders(runtime, message, {} as State); @@ -119,7 +149,11 @@ describe("getProviders", () => { test("getProviders should handle error if one provider fails", async () => { const MockProviderThatThrows: Provider = { - get: async (_runtime: IAgentRuntime, _message: Memory, _state?: State) => { + get: async ( + _runtime: IAgentRuntime, + _message: Memory, + _state?: State + ) => { throw new Error("Provider error"); }, }; @@ -128,12 +162,14 @@ describe("getProviders", () => { userId: "00000000-0000-0000-0000-000000000001", content: { text: "" }, roomId: roomId, - agentId: "00000000-0000-0000-0000-000000000002" + agentId: "00000000-0000-0000-0000-000000000002", }; runtime.providers = [MockProviderThatThrows, MockProvider1]; // Expect an error from the first provider but still get the response from the second provider - await expect(getProviders(runtime, message, {} as State)).rejects.toThrow("Provider error"); + await expect( + getProviders(runtime, message, {} as State) + ).rejects.toThrow("Provider error"); }); }); diff --git a/packages/core/src/tests/relationships.test.ts b/packages/core/src/tests/relationships.test.ts index d8b94c8ba86..cb42f0ac1c3 100644 --- a/packages/core/src/tests/relationships.test.ts +++ b/packages/core/src/tests/relationships.test.ts @@ -39,10 +39,12 @@ describe("Relationships Module", () => { userB: mockUserB, }); - expect(mockDatabaseAdapter.createRelationship).toHaveBeenCalledWith({ - userA: mockUserA, - userB: mockUserB, - }); + expect(mockDatabaseAdapter.createRelationship).toHaveBeenCalledWith( + { + userA: mockUserA, + userB: mockUserB, + } + ); expect(result).toBe(true); }); @@ -69,9 +71,11 @@ describe("Relationships Module", () => { id: generateRandomUUID(), userId: generateRandomUUID(), roomId: generateRandomUUID(), - status: "STATUS" + status: "STATUS", }; - mockDatabaseAdapter.getRelationship.mockResolvedValue(mockRelationship); + mockDatabaseAdapter.getRelationship.mockResolvedValue( + mockRelationship + ); const result = await getRelationship({ runtime: mockRuntime, @@ -91,21 +95,25 @@ describe("Relationships Module", () => { it("should call getRelationships on the databaseAdapter with correct parameters", async () => { const mockRelationships: Relationship[] = [ { - userA: mockUserA, userB: mockUserB, + userA: mockUserA, + userB: mockUserB, id: generateRandomUUID(), userId: generateRandomUUID(), roomId: generateRandomUUID(), - status: generateRandomUUID() + status: generateRandomUUID(), }, { - userA: mockUserB, userB: mockUserId, + userA: mockUserB, + userB: mockUserId, id: generateRandomUUID(), userId: generateRandomUUID(), roomId: generateRandomUUID(), - status: "" + status: "", }, ]; - mockDatabaseAdapter.getRelationships.mockResolvedValue(mockRelationships); + mockDatabaseAdapter.getRelationships.mockResolvedValue( + mockRelationships + ); const result = await getRelationships({ runtime: mockRuntime, @@ -123,21 +131,25 @@ describe("Relationships Module", () => { it("should format relationships correctly", async () => { const mockRelationships: Relationship[] = [ { - userA: mockUserA, userB: mockUserB, + userA: mockUserA, + userB: mockUserB, id: generateRandomUUID(), userId: generateRandomUUID(), roomId: generateRandomUUID(), - status: "STATUS" + status: "STATUS", }, { - userA: mockUserB, userB: mockUserId, + userA: mockUserB, + userB: mockUserId, id: generateRandomUUID(), userId: generateRandomUUID(), roomId: generateRandomUUID(), - status: "STATUS" + status: "STATUS", }, ]; - mockDatabaseAdapter.getRelationships.mockResolvedValue(mockRelationships); + mockDatabaseAdapter.getRelationships.mockResolvedValue( + mockRelationships + ); const result = await formatRelationships({ runtime: mockRuntime, diff --git a/packages/plugin-image-generation/src/index.ts b/packages/plugin-image-generation/src/index.ts index 0e348df4265..2eeb325887e 100644 --- a/packages/plugin-image-generation/src/index.ts +++ b/packages/plugin-image-generation/src/index.ts @@ -34,7 +34,10 @@ export function saveBase64Image(base64Data: string, filename: string): string { return filepath; } -export async function saveHeuristImage(imageUrl: string, filename: string): Promise { +export async function saveHeuristImage( + imageUrl: string, + filename: string +): Promise { const imageDir = path.join(process.cwd(), "generatedImages"); if (!fs.existsSync(imageDir)) { fs.mkdirSync(imageDir, { recursive: true }); @@ -45,31 +48,31 @@ export async function saveHeuristImage(imageUrl: string, filename: string): Prom if (!response.ok) { throw new Error(`Failed to fetch image: ${response.statusText}`); } - + const arrayBuffer = await response.arrayBuffer(); const imageBuffer = Buffer.from(arrayBuffer); - + // Create full file path const filepath = path.join(imageDir, `${filename}.png`); - + // Save the file fs.writeFileSync(filepath, imageBuffer); - + return filepath; } const imageGeneration: Action = { name: "GENERATE_IMAGE", similes: [ - "IMAGE_GENERATION", - "IMAGE_GEN", - "CREATE_IMAGE", + "IMAGE_GENERATION", + "IMAGE_GEN", + "CREATE_IMAGE", "MAKE_PICTURE", "GENERATE_IMAGE", "GENERATE_A", "DRAW", "DRAW_A", - "MAKE_A" + "MAKE_A", ], description: "Generate an image to go along with the message.", validate: async (runtime: IAgentRuntime, message: Memory) => { @@ -121,9 +124,9 @@ const imageGeneration: Action = { // Save the image and get filepath const filename = `generated_${Date.now()}_${i}`; - + // Choose save function based on image data format - const filepath = image.startsWith('http') + const filepath = image.startsWith("http") ? await saveHeuristImage(image, filename) : saveBase64Image(image, filename); diff --git a/packages/plugin-starknet/src/utils/erc20.json b/packages/plugin-starknet/src/utils/erc20.json index 21e307bcc9f..b55daa7c992 100644 --- a/packages/plugin-starknet/src/utils/erc20.json +++ b/packages/plugin-starknet/src/utils/erc20.json @@ -1,1030 +1,1029 @@ [ - { - "name": "MintableToken", - "type": "impl", - "interface_name": "src::mintable_token_interface::IMintableToken" + "name": "MintableToken", + "type": "impl", + "interface_name": "src::mintable_token_interface::IMintableToken" }, { - "name": "core::integer::u256", - "type": "struct", - "members": [ - { - "name": "low", - "type": "core::integer::u128" - }, - { - "name": "high", - "type": "core::integer::u128" - } - ] - }, - { - "name": "src::mintable_token_interface::IMintableToken", - "type": "interface", - "items": [ - { - "name": "permissioned_mint", - "type": "function", - "inputs": [ + "name": "core::integer::u256", + "type": "struct", + "members": [ { - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" + "name": "low", + "type": "core::integer::u128" }, { - "name": "amount", - "type": "core::integer::u256" + "name": "high", + "type": "core::integer::u128" } - ], - "outputs": [], - "state_mutability": "external" - }, - { - "name": "permissioned_burn", - "type": "function", - "inputs": [ + ] + }, + { + "name": "src::mintable_token_interface::IMintableToken", + "type": "interface", + "items": [ { - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" + "name": "permissioned_mint", + "type": "function", + "inputs": [ + { + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "amount", + "type": "core::integer::u256" + } + ], + "outputs": [], + "state_mutability": "external" }, { - "name": "amount", - "type": "core::integer::u256" + "name": "permissioned_burn", + "type": "function", + "inputs": [ + { + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "amount", + "type": "core::integer::u256" + } + ], + "outputs": [], + "state_mutability": "external" } - ], - "outputs": [], - "state_mutability": "external" - } - ] + ] }, { - "name": "MintableTokenCamelImpl", - "type": "impl", - "interface_name": "src::mintable_token_interface::IMintableTokenCamel" + "name": "MintableTokenCamelImpl", + "type": "impl", + "interface_name": "src::mintable_token_interface::IMintableTokenCamel" }, { - "name": "src::mintable_token_interface::IMintableTokenCamel", - "type": "interface", - "items": [ - { - "name": "permissionedMint", - "type": "function", - "inputs": [ + "name": "src::mintable_token_interface::IMintableTokenCamel", + "type": "interface", + "items": [ { - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" + "name": "permissionedMint", + "type": "function", + "inputs": [ + { + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "amount", + "type": "core::integer::u256" + } + ], + "outputs": [], + "state_mutability": "external" }, { - "name": "amount", - "type": "core::integer::u256" + "name": "permissionedBurn", + "type": "function", + "inputs": [ + { + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "amount", + "type": "core::integer::u256" + } + ], + "outputs": [], + "state_mutability": "external" } - ], - "outputs": [], - "state_mutability": "external" - }, - { - "name": "permissionedBurn", - "type": "function", - "inputs": [ - { - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "name": "amount", - "type": "core::integer::u256" - } - ], - "outputs": [], - "state_mutability": "external" - } - ] - }, - { - "name": "Replaceable", - "type": "impl", - "interface_name": "src::replaceability_interface::IReplaceable" + ] }, { - "name": "core::array::Span::", - "type": "struct", - "members": [ - { - "name": "snapshot", - "type": "@core::array::Array::" - } - ] + "name": "Replaceable", + "type": "impl", + "interface_name": "src::replaceability_interface::IReplaceable" }, { - "name": "src::replaceability_interface::EICData", - "type": "struct", - "members": [ - { - "name": "eic_hash", - "type": "core::starknet::class_hash::ClassHash" - }, - { - "name": "eic_init_data", - "type": "core::array::Span::" - } - ] - }, - { - "name": "core::option::Option::", - "type": "enum", - "variants": [ - { - "name": "Some", - "type": "src::replaceability_interface::EICData" - }, - { - "name": "None", - "type": "()" - } - ] + "name": "core::array::Span::", + "type": "struct", + "members": [ + { + "name": "snapshot", + "type": "@core::array::Array::" + } + ] }, { - "name": "core::bool", - "type": "enum", - "variants": [ - { - "name": "False", - "type": "()" - }, - { - "name": "True", - "type": "()" - } - ] + "name": "src::replaceability_interface::EICData", + "type": "struct", + "members": [ + { + "name": "eic_hash", + "type": "core::starknet::class_hash::ClassHash" + }, + { + "name": "eic_init_data", + "type": "core::array::Span::" + } + ] }, { - "name": "src::replaceability_interface::ImplementationData", - "type": "struct", - "members": [ - { - "name": "impl_hash", - "type": "core::starknet::class_hash::ClassHash" - }, - { - "name": "eic_data", - "type": "core::option::Option::" - }, - { - "name": "final", - "type": "core::bool" - } - ] + "name": "core::option::Option::", + "type": "enum", + "variants": [ + { + "name": "Some", + "type": "src::replaceability_interface::EICData" + }, + { + "name": "None", + "type": "()" + } + ] }, { - "name": "src::replaceability_interface::IReplaceable", - "type": "interface", - "items": [ - { - "name": "get_upgrade_delay", - "type": "function", - "inputs": [], - "outputs": [ - { - "type": "core::integer::u64" - } - ], - "state_mutability": "view" - }, - { - "name": "get_impl_activation_time", - "type": "function", - "inputs": [ - { - "name": "implementation_data", - "type": "src::replaceability_interface::ImplementationData" - } - ], - "outputs": [ + "name": "core::bool", + "type": "enum", + "variants": [ { - "type": "core::integer::u64" - } - ], - "state_mutability": "view" - }, - { - "name": "add_new_implementation", - "type": "function", - "inputs": [ - { - "name": "implementation_data", - "type": "src::replaceability_interface::ImplementationData" - } - ], - "outputs": [], - "state_mutability": "external" - }, - { - "name": "remove_implementation", - "type": "function", - "inputs": [ - { - "name": "implementation_data", - "type": "src::replaceability_interface::ImplementationData" - } - ], - "outputs": [], - "state_mutability": "external" - }, - { - "name": "replace_to", - "type": "function", - "inputs": [ - { - "name": "implementation_data", - "type": "src::replaceability_interface::ImplementationData" + "name": "False", + "type": "()" + }, + { + "name": "True", + "type": "()" } - ], - "outputs": [], - "state_mutability": "external" - } - ] + ] }, { - "name": "AccessControlImplExternal", - "type": "impl", - "interface_name": "src::access_control_interface::IAccessControl" + "name": "src::replaceability_interface::ImplementationData", + "type": "struct", + "members": [ + { + "name": "impl_hash", + "type": "core::starknet::class_hash::ClassHash" + }, + { + "name": "eic_data", + "type": "core::option::Option::" + }, + { + "name": "final", + "type": "core::bool" + } + ] }, { - "name": "src::access_control_interface::IAccessControl", - "type": "interface", - "items": [ - { - "name": "has_role", - "type": "function", - "inputs": [ + "name": "src::replaceability_interface::IReplaceable", + "type": "interface", + "items": [ { - "name": "role", - "type": "core::felt252" + "name": "get_upgrade_delay", + "type": "function", + "inputs": [], + "outputs": [ + { + "type": "core::integer::u64" + } + ], + "state_mutability": "view" }, { - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" - } - ], - "outputs": [ + "name": "get_impl_activation_time", + "type": "function", + "inputs": [ + { + "name": "implementation_data", + "type": "src::replaceability_interface::ImplementationData" + } + ], + "outputs": [ + { + "type": "core::integer::u64" + } + ], + "state_mutability": "view" + }, { - "type": "core::bool" - } - ], - "state_mutability": "view" - }, - { - "name": "get_role_admin", - "type": "function", - "inputs": [ - { - "name": "role", - "type": "core::felt252" - } - ], - "outputs": [ + "name": "add_new_implementation", + "type": "function", + "inputs": [ + { + "name": "implementation_data", + "type": "src::replaceability_interface::ImplementationData" + } + ], + "outputs": [], + "state_mutability": "external" + }, + { + "name": "remove_implementation", + "type": "function", + "inputs": [ + { + "name": "implementation_data", + "type": "src::replaceability_interface::ImplementationData" + } + ], + "outputs": [], + "state_mutability": "external" + }, { - "type": "core::felt252" + "name": "replace_to", + "type": "function", + "inputs": [ + { + "name": "implementation_data", + "type": "src::replaceability_interface::ImplementationData" + } + ], + "outputs": [], + "state_mutability": "external" } - ], - "state_mutability": "view" - } - ] + ] }, { - "name": "RolesImpl", - "type": "impl", - "interface_name": "src::roles_interface::IMinimalRoles" + "name": "AccessControlImplExternal", + "type": "impl", + "interface_name": "src::access_control_interface::IAccessControl" }, { - "name": "src::roles_interface::IMinimalRoles", - "type": "interface", - "items": [ - { - "name": "is_governance_admin", - "type": "function", - "inputs": [ - { - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" - } - ], - "outputs": [ + "name": "src::access_control_interface::IAccessControl", + "type": "interface", + "items": [ { - "type": "core::bool" - } - ], - "state_mutability": "view" - }, - { - "name": "is_upgrade_governor", - "type": "function", - "inputs": [ - { - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" - } - ], - "outputs": [ + "name": "has_role", + "type": "function", + "inputs": [ + { + "name": "role", + "type": "core::felt252" + }, + { + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "view" + }, { - "type": "core::bool" - } - ], - "state_mutability": "view" - }, - { - "name": "register_governance_admin", - "type": "function", - "inputs": [ - { - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" - } - ], - "outputs": [], - "state_mutability": "external" - }, - { - "name": "remove_governance_admin", - "type": "function", - "inputs": [ - { - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" - } - ], - "outputs": [], - "state_mutability": "external" - }, - { - "name": "register_upgrade_governor", - "type": "function", - "inputs": [ - { - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" - } - ], - "outputs": [], - "state_mutability": "external" - }, - { - "name": "remove_upgrade_governor", - "type": "function", - "inputs": [ - { - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" - } - ], - "outputs": [], - "state_mutability": "external" - }, - { - "name": "renounce", - "type": "function", - "inputs": [ - { - "name": "role", - "type": "core::felt252" + "name": "get_role_admin", + "type": "function", + "inputs": [ + { + "name": "role", + "type": "core::felt252" + } + ], + "outputs": [ + { + "type": "core::felt252" + } + ], + "state_mutability": "view" } - ], - "outputs": [], - "state_mutability": "external" - } - ] + ] }, { - "name": "ERC20Impl", - "type": "impl", - "interface_name": "openzeppelin::token::erc20::interface::IERC20" + "name": "RolesImpl", + "type": "impl", + "interface_name": "src::roles_interface::IMinimalRoles" }, { - "name": "openzeppelin::token::erc20::interface::IERC20", - "type": "interface", - "items": [ - { - "name": "name", - "type": "function", - "inputs": [], - "outputs": [ - { - "type": "core::felt252" - } - ], - "state_mutability": "view" - }, - { - "name": "symbol", - "type": "function", - "inputs": [], - "outputs": [ - { - "type": "core::felt252" - } - ], - "state_mutability": "view" - }, - { - "name": "decimals", - "type": "function", - "inputs": [], - "outputs": [ - { - "type": "core::integer::u8" - } - ], - "state_mutability": "view" - }, - { - "name": "total_supply", - "type": "function", - "inputs": [], - "outputs": [ - { - "type": "core::integer::u256" - } - ], - "state_mutability": "view" - }, - { - "name": "balance_of", - "type": "function", - "inputs": [ - { - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" - } - ], - "outputs": [ + "name": "src::roles_interface::IMinimalRoles", + "type": "interface", + "items": [ { - "type": "core::integer::u256" - } - ], - "state_mutability": "view" - }, - { - "name": "allowance", - "type": "function", - "inputs": [ + "name": "is_governance_admin", + "type": "function", + "inputs": [ + { + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "view" + }, { - "name": "owner", - "type": "core::starknet::contract_address::ContractAddress" + "name": "is_upgrade_governor", + "type": "function", + "inputs": [ + { + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "view" }, { - "name": "spender", - "type": "core::starknet::contract_address::ContractAddress" - } - ], - "outputs": [ + "name": "register_governance_admin", + "type": "function", + "inputs": [ + { + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [], + "state_mutability": "external" + }, { - "type": "core::integer::u256" - } - ], - "state_mutability": "view" - }, - { - "name": "transfer", - "type": "function", - "inputs": [ + "name": "remove_governance_admin", + "type": "function", + "inputs": [ + { + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [], + "state_mutability": "external" + }, { - "name": "recipient", - "type": "core::starknet::contract_address::ContractAddress" + "name": "register_upgrade_governor", + "type": "function", + "inputs": [ + { + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [], + "state_mutability": "external" }, { - "name": "amount", - "type": "core::integer::u256" - } - ], - "outputs": [ + "name": "remove_upgrade_governor", + "type": "function", + "inputs": [ + { + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [], + "state_mutability": "external" + }, { - "type": "core::bool" + "name": "renounce", + "type": "function", + "inputs": [ + { + "name": "role", + "type": "core::felt252" + } + ], + "outputs": [], + "state_mutability": "external" } - ], - "state_mutability": "external" - }, - { - "name": "transfer_from", - "type": "function", - "inputs": [ + ] + }, + { + "name": "ERC20Impl", + "type": "impl", + "interface_name": "openzeppelin::token::erc20::interface::IERC20" + }, + { + "name": "openzeppelin::token::erc20::interface::IERC20", + "type": "interface", + "items": [ { - "name": "sender", - "type": "core::starknet::contract_address::ContractAddress" + "name": "name", + "type": "function", + "inputs": [], + "outputs": [ + { + "type": "core::felt252" + } + ], + "state_mutability": "view" }, { - "name": "recipient", - "type": "core::starknet::contract_address::ContractAddress" + "name": "symbol", + "type": "function", + "inputs": [], + "outputs": [ + { + "type": "core::felt252" + } + ], + "state_mutability": "view" }, { - "name": "amount", - "type": "core::integer::u256" - } - ], - "outputs": [ + "name": "decimals", + "type": "function", + "inputs": [], + "outputs": [ + { + "type": "core::integer::u8" + } + ], + "state_mutability": "view" + }, { - "type": "core::bool" - } - ], - "state_mutability": "external" - }, - { - "name": "approve", - "type": "function", - "inputs": [ + "name": "total_supply", + "type": "function", + "inputs": [], + "outputs": [ + { + "type": "core::integer::u256" + } + ], + "state_mutability": "view" + }, { - "name": "spender", - "type": "core::starknet::contract_address::ContractAddress" + "name": "balance_of", + "type": "function", + "inputs": [ + { + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [ + { + "type": "core::integer::u256" + } + ], + "state_mutability": "view" }, { - "name": "amount", - "type": "core::integer::u256" - } - ], - "outputs": [ + "name": "allowance", + "type": "function", + "inputs": [ + { + "name": "owner", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "spender", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [ + { + "type": "core::integer::u256" + } + ], + "state_mutability": "view" + }, + { + "name": "transfer", + "type": "function", + "inputs": [ + { + "name": "recipient", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "amount", + "type": "core::integer::u256" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "external" + }, { - "type": "core::bool" + "name": "transfer_from", + "type": "function", + "inputs": [ + { + "name": "sender", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "recipient", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "amount", + "type": "core::integer::u256" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "external" + }, + { + "name": "approve", + "type": "function", + "inputs": [ + { + "name": "spender", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "amount", + "type": "core::integer::u256" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "external" } - ], - "state_mutability": "external" - } - ] + ] }, { - "name": "ERC20CamelOnlyImpl", - "type": "impl", - "interface_name": "openzeppelin::token::erc20::interface::IERC20CamelOnly" + "name": "ERC20CamelOnlyImpl", + "type": "impl", + "interface_name": "openzeppelin::token::erc20::interface::IERC20CamelOnly" }, { - "name": "openzeppelin::token::erc20::interface::IERC20CamelOnly", - "type": "interface", - "items": [ - { - "name": "totalSupply", - "type": "function", - "inputs": [], - "outputs": [ - { - "type": "core::integer::u256" - } - ], - "state_mutability": "view" - }, - { - "name": "balanceOf", - "type": "function", - "inputs": [ - { - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" - } - ], - "outputs": [ + "name": "openzeppelin::token::erc20::interface::IERC20CamelOnly", + "type": "interface", + "items": [ { - "type": "core::integer::u256" + "name": "totalSupply", + "type": "function", + "inputs": [], + "outputs": [ + { + "type": "core::integer::u256" + } + ], + "state_mutability": "view" + }, + { + "name": "balanceOf", + "type": "function", + "inputs": [ + { + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [ + { + "type": "core::integer::u256" + } + ], + "state_mutability": "view" + }, + { + "name": "transferFrom", + "type": "function", + "inputs": [ + { + "name": "sender", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "recipient", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "amount", + "type": "core::integer::u256" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "external" } - ], - "state_mutability": "view" - }, - { - "name": "transferFrom", - "type": "function", - "inputs": [ + ] + }, + { + "name": "constructor", + "type": "constructor", + "inputs": [ { - "name": "sender", - "type": "core::starknet::contract_address::ContractAddress" + "name": "name", + "type": "core::felt252" }, { - "name": "recipient", - "type": "core::starknet::contract_address::ContractAddress" + "name": "symbol", + "type": "core::felt252" }, { - "name": "amount", - "type": "core::integer::u256" - } - ], - "outputs": [ + "name": "decimals", + "type": "core::integer::u8" + }, { - "type": "core::bool" + "name": "initial_supply", + "type": "core::integer::u256" + }, + { + "name": "recipient", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "permitted_minter", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "provisional_governance_admin", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "upgrade_delay", + "type": "core::integer::u64" } - ], - "state_mutability": "external" - } - ] - }, - { - "name": "constructor", - "type": "constructor", - "inputs": [ - { - "name": "name", - "type": "core::felt252" - }, - { - "name": "symbol", - "type": "core::felt252" - }, - { - "name": "decimals", - "type": "core::integer::u8" - }, - { - "name": "initial_supply", - "type": "core::integer::u256" - }, - { - "name": "recipient", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "name": "permitted_minter", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "name": "provisional_governance_admin", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "name": "upgrade_delay", - "type": "core::integer::u64" - } - ] + ] }, { - "name": "increase_allowance", - "type": "function", - "inputs": [ - { - "name": "spender", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "name": "added_value", - "type": "core::integer::u256" - } - ], - "outputs": [ - { - "type": "core::bool" - } - ], - "state_mutability": "external" + "name": "increase_allowance", + "type": "function", + "inputs": [ + { + "name": "spender", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "added_value", + "type": "core::integer::u256" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "external" }, { - "name": "decrease_allowance", - "type": "function", - "inputs": [ - { - "name": "spender", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "name": "subtracted_value", - "type": "core::integer::u256" - } - ], - "outputs": [ - { - "type": "core::bool" - } - ], - "state_mutability": "external" + "name": "decrease_allowance", + "type": "function", + "inputs": [ + { + "name": "spender", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "subtracted_value", + "type": "core::integer::u256" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "external" }, { - "name": "increaseAllowance", - "type": "function", - "inputs": [ - { - "name": "spender", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "name": "addedValue", - "type": "core::integer::u256" - } - ], - "outputs": [ - { - "type": "core::bool" - } - ], - "state_mutability": "external" + "name": "increaseAllowance", + "type": "function", + "inputs": [ + { + "name": "spender", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "addedValue", + "type": "core::integer::u256" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "external" }, { - "name": "decreaseAllowance", - "type": "function", - "inputs": [ - { - "name": "spender", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "name": "subtractedValue", - "type": "core::integer::u256" - } - ], - "outputs": [ - { - "type": "core::bool" - } - ], - "state_mutability": "external" + "name": "decreaseAllowance", + "type": "function", + "inputs": [ + { + "name": "spender", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "subtractedValue", + "type": "core::integer::u256" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "external" }, { - "kind": "struct", - "name": "openzeppelin::token::erc20_v070::erc20::ERC20::Transfer", - "type": "event", - "members": [ - { - "kind": "data", - "name": "from", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "kind": "data", - "name": "to", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "kind": "data", - "name": "value", - "type": "core::integer::u256" - } - ] + "kind": "struct", + "name": "openzeppelin::token::erc20_v070::erc20::ERC20::Transfer", + "type": "event", + "members": [ + { + "kind": "data", + "name": "from", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "kind": "data", + "name": "to", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "kind": "data", + "name": "value", + "type": "core::integer::u256" + } + ] }, { - "kind": "struct", - "name": "openzeppelin::token::erc20_v070::erc20::ERC20::Approval", - "type": "event", - "members": [ - { - "kind": "data", - "name": "owner", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "kind": "data", - "name": "spender", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "kind": "data", - "name": "value", - "type": "core::integer::u256" - } - ] + "kind": "struct", + "name": "openzeppelin::token::erc20_v070::erc20::ERC20::Approval", + "type": "event", + "members": [ + { + "kind": "data", + "name": "owner", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "kind": "data", + "name": "spender", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "kind": "data", + "name": "value", + "type": "core::integer::u256" + } + ] }, { - "kind": "struct", - "name": "src::replaceability_interface::ImplementationAdded", - "type": "event", - "members": [ - { - "kind": "data", - "name": "implementation_data", - "type": "src::replaceability_interface::ImplementationData" - } - ] + "kind": "struct", + "name": "src::replaceability_interface::ImplementationAdded", + "type": "event", + "members": [ + { + "kind": "data", + "name": "implementation_data", + "type": "src::replaceability_interface::ImplementationData" + } + ] }, { - "kind": "struct", - "name": "src::replaceability_interface::ImplementationRemoved", - "type": "event", - "members": [ - { - "kind": "data", - "name": "implementation_data", - "type": "src::replaceability_interface::ImplementationData" - } - ] + "kind": "struct", + "name": "src::replaceability_interface::ImplementationRemoved", + "type": "event", + "members": [ + { + "kind": "data", + "name": "implementation_data", + "type": "src::replaceability_interface::ImplementationData" + } + ] }, { - "kind": "struct", - "name": "src::replaceability_interface::ImplementationReplaced", - "type": "event", - "members": [ - { - "kind": "data", - "name": "implementation_data", - "type": "src::replaceability_interface::ImplementationData" - } - ] + "kind": "struct", + "name": "src::replaceability_interface::ImplementationReplaced", + "type": "event", + "members": [ + { + "kind": "data", + "name": "implementation_data", + "type": "src::replaceability_interface::ImplementationData" + } + ] }, { - "kind": "struct", - "name": "src::replaceability_interface::ImplementationFinalized", - "type": "event", - "members": [ - { - "kind": "data", - "name": "impl_hash", - "type": "core::starknet::class_hash::ClassHash" - } - ] + "kind": "struct", + "name": "src::replaceability_interface::ImplementationFinalized", + "type": "event", + "members": [ + { + "kind": "data", + "name": "impl_hash", + "type": "core::starknet::class_hash::ClassHash" + } + ] }, { - "kind": "struct", - "name": "src::access_control_interface::RoleGranted", - "type": "event", - "members": [ - { - "kind": "data", - "name": "role", - "type": "core::felt252" - }, - { - "kind": "data", - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "kind": "data", - "name": "sender", - "type": "core::starknet::contract_address::ContractAddress" - } - ] + "kind": "struct", + "name": "src::access_control_interface::RoleGranted", + "type": "event", + "members": [ + { + "kind": "data", + "name": "role", + "type": "core::felt252" + }, + { + "kind": "data", + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "kind": "data", + "name": "sender", + "type": "core::starknet::contract_address::ContractAddress" + } + ] }, { - "kind": "struct", - "name": "src::access_control_interface::RoleRevoked", - "type": "event", - "members": [ - { - "kind": "data", - "name": "role", - "type": "core::felt252" - }, - { - "kind": "data", - "name": "account", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "kind": "data", - "name": "sender", - "type": "core::starknet::contract_address::ContractAddress" - } - ] + "kind": "struct", + "name": "src::access_control_interface::RoleRevoked", + "type": "event", + "members": [ + { + "kind": "data", + "name": "role", + "type": "core::felt252" + }, + { + "kind": "data", + "name": "account", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "kind": "data", + "name": "sender", + "type": "core::starknet::contract_address::ContractAddress" + } + ] }, { - "kind": "struct", - "name": "src::access_control_interface::RoleAdminChanged", - "type": "event", - "members": [ - { - "kind": "data", - "name": "role", - "type": "core::felt252" - }, - { - "kind": "data", - "name": "previous_admin_role", - "type": "core::felt252" - }, - { - "kind": "data", - "name": "new_admin_role", - "type": "core::felt252" - } - ] + "kind": "struct", + "name": "src::access_control_interface::RoleAdminChanged", + "type": "event", + "members": [ + { + "kind": "data", + "name": "role", + "type": "core::felt252" + }, + { + "kind": "data", + "name": "previous_admin_role", + "type": "core::felt252" + }, + { + "kind": "data", + "name": "new_admin_role", + "type": "core::felt252" + } + ] }, { - "kind": "struct", - "name": "src::roles_interface::GovernanceAdminAdded", - "type": "event", - "members": [ - { - "kind": "data", - "name": "added_account", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "kind": "data", - "name": "added_by", - "type": "core::starknet::contract_address::ContractAddress" - } - ] + "kind": "struct", + "name": "src::roles_interface::GovernanceAdminAdded", + "type": "event", + "members": [ + { + "kind": "data", + "name": "added_account", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "kind": "data", + "name": "added_by", + "type": "core::starknet::contract_address::ContractAddress" + } + ] }, { - "kind": "struct", - "name": "src::roles_interface::GovernanceAdminRemoved", - "type": "event", - "members": [ - { - "kind": "data", - "name": "removed_account", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "kind": "data", - "name": "removed_by", - "type": "core::starknet::contract_address::ContractAddress" - } - ] + "kind": "struct", + "name": "src::roles_interface::GovernanceAdminRemoved", + "type": "event", + "members": [ + { + "kind": "data", + "name": "removed_account", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "kind": "data", + "name": "removed_by", + "type": "core::starknet::contract_address::ContractAddress" + } + ] }, { - "kind": "struct", - "name": "src::roles_interface::UpgradeGovernorAdded", - "type": "event", - "members": [ - { - "kind": "data", - "name": "added_account", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "kind": "data", - "name": "added_by", - "type": "core::starknet::contract_address::ContractAddress" - } - ] + "kind": "struct", + "name": "src::roles_interface::UpgradeGovernorAdded", + "type": "event", + "members": [ + { + "kind": "data", + "name": "added_account", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "kind": "data", + "name": "added_by", + "type": "core::starknet::contract_address::ContractAddress" + } + ] }, { - "kind": "struct", - "name": "src::roles_interface::UpgradeGovernorRemoved", - "type": "event", - "members": [ - { - "kind": "data", - "name": "removed_account", - "type": "core::starknet::contract_address::ContractAddress" - }, - { - "kind": "data", - "name": "removed_by", - "type": "core::starknet::contract_address::ContractAddress" - } - ] + "kind": "struct", + "name": "src::roles_interface::UpgradeGovernorRemoved", + "type": "event", + "members": [ + { + "kind": "data", + "name": "removed_account", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "kind": "data", + "name": "removed_by", + "type": "core::starknet::contract_address::ContractAddress" + } + ] }, { - "kind": "enum", - "name": "openzeppelin::token::erc20_v070::erc20::ERC20::Event", - "type": "event", - "variants": [ - { - "kind": "nested", - "name": "Transfer", - "type": "openzeppelin::token::erc20_v070::erc20::ERC20::Transfer" - }, - { - "kind": "nested", - "name": "Approval", - "type": "openzeppelin::token::erc20_v070::erc20::ERC20::Approval" - }, - { - "kind": "nested", - "name": "ImplementationAdded", - "type": "src::replaceability_interface::ImplementationAdded" - }, - { - "kind": "nested", - "name": "ImplementationRemoved", - "type": "src::replaceability_interface::ImplementationRemoved" - }, - { - "kind": "nested", - "name": "ImplementationReplaced", - "type": "src::replaceability_interface::ImplementationReplaced" - }, - { - "kind": "nested", - "name": "ImplementationFinalized", - "type": "src::replaceability_interface::ImplementationFinalized" - }, - { - "kind": "nested", - "name": "RoleGranted", - "type": "src::access_control_interface::RoleGranted" - }, - { - "kind": "nested", - "name": "RoleRevoked", - "type": "src::access_control_interface::RoleRevoked" - }, - { - "kind": "nested", - "name": "RoleAdminChanged", - "type": "src::access_control_interface::RoleAdminChanged" - }, - { - "kind": "nested", - "name": "GovernanceAdminAdded", - "type": "src::roles_interface::GovernanceAdminAdded" - }, - { - "kind": "nested", - "name": "GovernanceAdminRemoved", - "type": "src::roles_interface::GovernanceAdminRemoved" - }, - { - "kind": "nested", - "name": "UpgradeGovernorAdded", - "type": "src::roles_interface::UpgradeGovernorAdded" - }, - { - "kind": "nested", - "name": "UpgradeGovernorRemoved", - "type": "src::roles_interface::UpgradeGovernorRemoved" - } - ] + "kind": "enum", + "name": "openzeppelin::token::erc20_v070::erc20::ERC20::Event", + "type": "event", + "variants": [ + { + "kind": "nested", + "name": "Transfer", + "type": "openzeppelin::token::erc20_v070::erc20::ERC20::Transfer" + }, + { + "kind": "nested", + "name": "Approval", + "type": "openzeppelin::token::erc20_v070::erc20::ERC20::Approval" + }, + { + "kind": "nested", + "name": "ImplementationAdded", + "type": "src::replaceability_interface::ImplementationAdded" + }, + { + "kind": "nested", + "name": "ImplementationRemoved", + "type": "src::replaceability_interface::ImplementationRemoved" + }, + { + "kind": "nested", + "name": "ImplementationReplaced", + "type": "src::replaceability_interface::ImplementationReplaced" + }, + { + "kind": "nested", + "name": "ImplementationFinalized", + "type": "src::replaceability_interface::ImplementationFinalized" + }, + { + "kind": "nested", + "name": "RoleGranted", + "type": "src::access_control_interface::RoleGranted" + }, + { + "kind": "nested", + "name": "RoleRevoked", + "type": "src::access_control_interface::RoleRevoked" + }, + { + "kind": "nested", + "name": "RoleAdminChanged", + "type": "src::access_control_interface::RoleAdminChanged" + }, + { + "kind": "nested", + "name": "GovernanceAdminAdded", + "type": "src::roles_interface::GovernanceAdminAdded" + }, + { + "kind": "nested", + "name": "GovernanceAdminRemoved", + "type": "src::roles_interface::GovernanceAdminRemoved" + }, + { + "kind": "nested", + "name": "UpgradeGovernorAdded", + "type": "src::roles_interface::UpgradeGovernorAdded" + }, + { + "kind": "nested", + "name": "UpgradeGovernorRemoved", + "type": "src::roles_interface::UpgradeGovernorRemoved" + } + ] } - ] +]