Skip to content

Commit 278bdf8

Browse files
authored
Merge pull request #1549 from elizaOS/docs-update-full-1735429229223
docs: Add JSDoc documentation
2 parents a65927d + 9efb80b commit 278bdf8

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

packages/core/src/test_resources/createRuntime.ts

+11
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ import {
1717
} from "./constants.ts";
1818
import { User } from "./types.ts";
1919

20+
/**
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.
30+
*/
2031
export async function createRuntime({
2132
env,
2233
conversationLength,

packages/core/src/test_resources/types.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Interface representing a user.
3+
* @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).
8+
*/
19
export interface User {
210
id: string;
311
email?: string;

0 commit comments

Comments
 (0)