Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add JSDoc documentation #1548

Merged
merged 7 commits into from
Dec 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading