Skip to content

Commit

Permalink
Merge pull request #1548 from elizaOS/docs-update-full-1735428826331
Browse files Browse the repository at this point in the history
docs: Add JSDoc documentation
  • Loading branch information
monilpat authored Dec 29, 2024
2 parents 278bdf8 + 66170bf commit 53ecdbf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions packages/core/src/test_resources/createRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ import {
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.
* Creates a runtime environment for the agent.
*
* @param {Object} param - The parameters for creating the runtime.
* @param {Record<string, string> | NodeJS.ProcessEnv} [param.env] - The environment variables.
* @param {number} [param.conversationLength] - The length of the conversation.
* @param {Evaluator[]} [param.evaluators] - The evaluators to be used.
* @param {Action[]} [param.actions] - The actions to be used.
* @param {Provider[]} [param.providers] - The providers to be used.
* @returns {Object} An object containing the created user, session, and runtime.
*/
export async function createRuntime({
env,
Expand Down
10 changes: 5 additions & 5 deletions packages/core/src/test_resources/types.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* Interface representing a user.
* 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).
* @property {string} id - The user's ID.
* @property {string} [email] - The user's email (optional).
* @property {string} [phone] - The user's phone number (optional).
* @property {string} [role] - The user's role (optional).
*/
export interface User {
id: string;
Expand Down

0 comments on commit 53ecdbf

Please sign in to comment.