Skip to content

Commit 53ecdbf

Browse files
authored
Merge pull request #1548 from elizaOS/docs-update-full-1735428826331
docs: Add JSDoc documentation
2 parents 278bdf8 + 66170bf commit 53ecdbf

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

packages/core/src/test_resources/createRuntime.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ import {
1818
import { User } from "./types.ts";
1919

2020
/**
21-
* Create a runtime environment with the specified configurations.
22-
*
23-
* @param {Object} options - The options for creating the runtime environment.
24-
* @param {Record<string, string> | NodeJS.ProcessEnv} [options.env] - The environment variables.
25-
* @param {number} [options.conversationLength] - The length of the conversation.
26-
* @param {Evaluator[]} [options.evaluators] - The array of evaluators.
27-
* @param {Action[]} [options.actions] - The array of actions.
28-
* @param {Provider[]} [options.providers] - The array of providers.
29-
* @returns {Object} - An object containing the created user, session, and runtime.
21+
* Creates a runtime environment for the agent.
22+
*
23+
* @param {Object} param - The parameters for creating the runtime.
24+
* @param {Record<string, string> | NodeJS.ProcessEnv} [param.env] - The environment variables.
25+
* @param {number} [param.conversationLength] - The length of the conversation.
26+
* @param {Evaluator[]} [param.evaluators] - The evaluators to be used.
27+
* @param {Action[]} [param.actions] - The actions to be used.
28+
* @param {Provider[]} [param.providers] - The providers to be used.
29+
* @returns {Object} An object containing the created user, session, and runtime.
3030
*/
3131
export async function createRuntime({
3232
env,

packages/core/src/test_resources/types.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
2-
* Interface representing a user.
2+
* Interface representing a User.
33
* @typedef {Object} User
4-
* @property {string} id - The unique identifier for the user.
5-
* @property {string} [email] - The email address of the user (optional).
6-
* @property {string} [phone] - The phone number of the user (optional).
7-
* @property {string} [role] - The role of the user (optional).
4+
* @property {string} id - The user's ID.
5+
* @property {string} [email] - The user's email (optional).
6+
* @property {string} [phone] - The user's phone number (optional).
7+
* @property {string} [role] - The user's role (optional).
88
*/
99
export interface User {
1010
id: string;

0 commit comments

Comments
 (0)