Prompt#
- class langsmith.schemas.Prompt[source]#
Bases:
BaseModel
Represents a Prompt with metadata.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- param created_at: datetime [Required]#
The creation time of the prompt.
- param description: str | None = None#
The description of the prompt.
- param full_name: str [Required]#
The full name of the prompt. (owner + repo_handle)
- param id: str [Required]#
The ID of the prompt.
- param is_archived: bool [Required]#
Whether the prompt is archived.
- param is_public: bool [Required]#
Whether the prompt is public.
- param last_commit_hash: str | None = None#
The hash of the last commit.
- param liked_by_auth_user: bool | None = None#
Whether the prompt is liked by the authenticated user.
- param num_commits: int [Required]#
The number of commits.
- param num_downloads: int [Required]#
The number of downloads.
- param num_likes: int [Required]#
The number of likes.
- param num_views: int [Required]#
The number of views.
- param original_repo_full_name: str | None = None#
The full name of the original prompt, if forked.
- param original_repo_id: str | None = None#
The ID of the original prompt, if forked.
- param owner: str | None = None#
The handle of the owner of the prompt.
- param readme: str | None = None#
The README of the prompt.
- param repo_handle: str [Required]#
The name of the prompt.
- param tags: List[str] [Required]#
The tags associated with the prompt.
- param tenant_id: str [Required]#
The tenant ID of the prompt owner.
- param updated_at: datetime [Required]#
The last update time of the prompt.
- param upstream_repo_full_name: str | None = None#
The full name of the upstream prompt, if forked.
- param upstream_repo_id: str | None = None#
The ID of the upstream prompt, if forked.