Skip to main content

Function: createProject()

function createProject(
  name: string,
  options?: ProjectCreateOptions,
): Promise<{
  createdAt: string;
  createdBy?: null | string;
  id: string;
  name?: null | string;
  type?:
    | null
    | "prompt_evaluation"
    | "llm_monitor"
    | "gen_ai"
    | "training_inference"
    | "protect";
  updatedAt: string;
}>;
Defined in: src/utils/projects.ts Creates a new project.

Parameters

name

string Name of the project to create.

options?

ProjectCreateOptions (Optional) Additional create options.

Returns

Promise<{ createdAt: string; createdBy?: null | string; id: string; name?: null | string; type?: | null | "prompt_evaluation" | "llm_monitor" | "gen_ai" | "training_inference" | "protect"; updatedAt: string; }> A promise that resolves to the created project.