Skip to content

Commit

Permalink
Merge pull request #1549 from elizaOS/docs-update-full-1735429229223
Browse files Browse the repository at this point in the history
docs: Add JSDoc documentation
  • Loading branch information
monilpat authored Dec 28, 2024
2 parents a65927d + 9efb80b commit 278bdf8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/core/src/test_resources/createRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ import {
} from "./constants.ts";
import { User } from "./types.ts";

/**
* Create a runtime environment with the specified configurations.
*
* @param {Object} options - The options for creating the runtime environment.
* @param {Record<string, string> | NodeJS.ProcessEnv} [options.env] - The environment variables.
* @param {number} [options.conversationLength] - The length of the conversation.
* @param {Evaluator[]} [options.evaluators] - The array of evaluators.
* @param {Action[]} [options.actions] - The array of actions.
* @param {Provider[]} [options.providers] - The array of providers.
* @returns {Object} - An object containing the created user, session, and runtime.
*/
export async function createRuntime({
env,
conversationLength,
Expand Down
8 changes: 8 additions & 0 deletions packages/core/src/test_resources/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Interface representing a user.
* @typedef {Object} User
* @property {string} id - The unique identifier for the user.
* @property {string} [email] - The email address of the user (optional).
* @property {string} [phone] - The phone number of the user (optional).
* @property {string} [role] - The role of the user (optional).
*/
export interface User {
id: string;
email?: string;
Expand Down

0 comments on commit 278bdf8

Please sign in to comment.