langsmith.client.Client.create_project#

Client.create_project(project_name: str, *, description: str | None = None, metadata: dict | None = None, upsert: bool = False, project_extra: dict | None = None, reference_dataset_id: UUID | str | None = None) TracerSession[source]#

Create a project on the LangSmith API.

Parameters:
  • project_name (str) – The name of the project.

  • project_extra (dict or None, default=None) – Additional project information.

  • metadata (dict or None, default=None) – Additional metadata to associate with the project.

  • description (str or None, default=None) – The description of the project.

  • upsert (bool, default=False) – Whether to update the project if it already exists.

  • reference_dataset_id (UUID or None, default=None) – The ID of the reference dataset to associate with the project.

  • Returns

  • -------

  • TracerSession – The created project.

Return type:

TracerSession