File tree 2 files changed +19
-0
lines changed
packages/core/src/test_resources
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,17 @@ import {
17
17
} from "./constants.ts" ;
18
18
import { User } from "./types.ts" ;
19
19
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
+ */
20
31
export async function createRuntime ( {
21
32
env,
22
33
conversationLength,
Original file line number Diff line number Diff line change
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
+ */
1
9
export interface User {
2
10
id : string ;
3
11
email ?: string ;
You can’t perform that action at this time.
0 commit comments