HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/langsmith/__pycache__/schemas.cpython-310.pyc
o

���g��@s�dZddlmZddlmZmZmZddlmZddlm	Z	ddl
mZmZm
Z
mZmZmZmZmZmZddlmZddlmZmZzdd	lmZmZmZmZmZmZWne ymdd	l!mZmZmZmZmZmZYnwdd
l"m#Z#ddlm$Z$eeeedfZ%eee&dfZ'Gd
d�de�Z(ee&eee&e)fe(ee&e#fffZ*	eGdd�de��Z+Gdd�de�Z,Gdd�de,�Z-Gdd�de�Z.Gdd�de.�Z/Gdd�de�Z0Gdd�de,�Z1Gdd�de,�Z2Gdd �d e�Z3Gd!d"�d"e�Z4Gd#d$�d$e4�Z5Gd%d&�d&e&e	�Z6Gd'd(�d(e�Z7e$d)Z8Gd*d+�d+ed,d-�Z9Gd.d/�d/e7�Z:Gd0d1�d1e�Z;d2d3�Z<Gd4d5�d5e�Z=Gd6d7�d7e=�Z>Gd8d9�d9e&e	�Z?Gd:d;�d;ed,d-�Z@Gd<d=�d=e=�ZAGd>d?�d?e�ZBGd@dA�dAeB�ZCGdBdC�dCeB�ZDGdDdE�dEe	�ZEGdFdG�dGe�ZFGdHdI�dIed,d-�ZGGdJdK�dKed,d-�ZHGdLdM�dMeF�ZIGdNdO�dOeF�ZJGdPdQ�dQe�ZKGdRdS�dSeK�ZLeGdTdU�dUe��ZMGdVdW�dWed,d-�ZNGdXdY�dYe�ZOGdZd[�d[ed,d-�ZPGd\d]�d]e�ZQe1�R�Gd^d_�d_e�ZSGd`da�dae�ZTGdbdc�dced,d-�ZUGddde�deed,d-�ZVGdfdg�dge�ZWGdhdi�die�ZXGdjdk�dke�ZYGdldm�dme�ZZGdndo�doe�Z[Gdpdq�dqe�Z\Gdrds�dse&e	�Z]Gdtdu�dued,d-�Z^Gdvdw�dwed,d-�Z_Gdxdy�dye�Z`Gdzd{�d{e�ZadS)|zSchemas for the LangSmith API.�)�annotations)�datetime�	timedelta�timezone)�Decimal)�Enum)	�Any�Dict�List�
NamedTuple�Optional�Protocol�Tuple�Union�runtime_checkable)�UUID)�NotRequired�	TypedDict)�	BaseModel�Field�PrivateAttr�
StrictBool�StrictFloat�	StrictInt)�Path)�LiteralNc@�"eZdZUdZded<ded<dS)�
AttachmentaBAnnotated type that will be stored as an attachment if used.

    Examples:
        --------
        .. code-block:: python

        @traceable
        def my_function(bar: int, my_val: Attachment):
            # my_val will be stored as an attachment
            # bar will be stored as inputs
            return bar
    �str�	mime_typezUnion[bytes, Path]�dataN��__name__�
__module__�__qualname__�__doc__�__annotations__�r'r'�</usr/local/lib/python3.10/dist-packages/langsmith/schemas.pyr2s

rc@s2eZdZdZdddd�Zdddd
�Zddd�ZdS)�BinaryIOLikez$Protocol for binary IO-like objects.����size�int�return�bytescC�dS)zRead function.Nr')�selfr+r'r'r(�readM�zBinaryIOLike.readr�offset�whencecCr/)zSeek function.Nr')r0r3r4r'r'r(�seekQr2zBinaryIOLike.seekcCr/)zGet value function.Nr'�r0r'r'r(�getvalueUr2zBinaryIOLike.getvalueN)r*)r+r,r-r.)r)r3r,r4r,r-r,)r-r.)r"r#r$r%r1r5r7r'r'r'r(r)Is
r)c@s^eZdZUdZded<eed�Zded<edd�Zd	ed
<edd�Z	d	ed<Gdd
�d
�Z
dS)�ExampleBasezExample base model.r�
dataset_id��default_factory�Dict[str, Any]�inputsN��default�Optional[Dict[str, Any]]�outputs�metadatac@seZdZdZdZdZdS)zExampleBase.Config�#Configuration class for the schema.TN)r"r#r$r%�frozen�arbitrary_types_allowedr'r'r'r(�ConfigbsrF)r"r#r$r%r&r�dictr=rArBrFr'r'r'r(r8Zs
r8c@s<eZdZUdZded<edd�d�Zded<d	Zd
ed<d	S)�
ExampleCreatezExample create model.�Optional[UUID]�idcC�t�tj�S�N�r�nowr�utcr'r'r'r(�<lambda>m�zExampleCreate.<lambda>r:r�
created_atN�Optional[Union[str, List[str]]]�split)r"r#r$r%r&rrRrTr'r'r'r(rHis

rHc@s~eZdZUdZded<edd�d�Zded<eed�Zd	ed
<edd�Z	d
ed<edd�Z
d
ed<dZded<dZded<dS)�ExampleUploadWithAttachmentsz Example upload with attachments.rIrJcCrKrLrMr'r'r'r(rPurQz%ExampleUploadWithAttachments.<lambda>r:rrRr<r=Nr>r@rArBrSrT�Optional[Attachments]�attachments)
r"r#r$r%r&rrRrGr=rArBrTrWr'r'r'r(rUqs
rUc@�eZdZUdZded<dS)�ExampleUpsertWithAttachmentsz Example create with attachments.rr9Nr!r'r'r'r(rY}�
rYc@s*eZdZUdZded<ded<ded<dS)	�AttachmentInfozInfo for an attachment.r�
presigned_urlr)�reader�
Optional[str]rNr!r'r'r'r(r[�s

r[cs�eZdZUdZded<edd�d�Zded<eed	�d
�Zded<edd
�Z	d
ed<ee
d�Zded<dZded<edd
�Z
ded<	edd
�Zded<edd
�Zded<		d"d#�fdd�
Zed$dd��Zd d!�Z�ZS)%�ExamplezExample model.rrJcCstjdtjd�S)Nr)�tz)r�
fromtimestamprrOr'r'r'r(rP�szExample.<lambda>r:rrRz$00000000-0000-0000-0000-000000000000r>r9N�Optional[datetime]�modified_atz	List[Run]�runsrI�
source_run_idz#Optional[Dict[str, AttachmentInfo]]rWr^�	_host_url�
_tenant_id�kwargsrr-�Nonecs"t�jdi|��||_||_dS)�Initialize a Dataset object.Nr')�super�__init__rfrg)r0rfrgrh��	__class__r'r(rl�s
zExample.__init__cCsL|jr$d|j�d|j��}|jr|j�dt|j��|��S|j�|��SdS)�URL of this run within the app.�
/datasets/z/e/�/o/N)rfr9rJrgr)r0�pathr'r'r(�url�szExample.urlcC�$|j�d|j�d|j�d|j�d�S)�5Return a string representation of the RunBase object.�(id=z
, dataset_id=z, link='�'))rnrJr9rsr6r'r'r(�__repr__��$zExample.__repr__)NN)rfr^rgrIrhrr-ri�r-r^)r"r#r$r%r&rrRrr9rc�listrdrerWrrfrgrl�propertyrsrx�
__classcell__r'r'rmr(r_�s(
��	r_c@rX)�
ExampleSearchzExample returned via search.rrJNr!r'r'r'r(r~�rZr~c@s:eZdZUdZeedd�Zded<eedd�Z	ded<d	S)
�AttachmentsOperationsz%Operations to perform on attachments.z,Mapping of old attachment names to new names)r;�descriptionzDict[str, str]�renamez List of attachment names to keep�	List[str]�retainN)
r"r#r$r%rrGr�r&r{r�r'r'r'r(r�s
��rc@sheZdZUdZdZded<dZded<dZded<dZded	<dZ	ded
<dZ
ded<Gd
d�d�ZdS)�
ExampleUpdatezUpdate class for Example.NrIr9r@r=rA�Optional[AttachmentsOperations]�attachments_operationsrBrSrTc@�eZdZdZdZdS)zExampleUpdate.ConfigrCTN�r"r#r$r%rDr'r'r'r(rF��rF)r"r#r$r%r9r&r=rAr�rBrTrFr'r'r'r(r��s
r�c@steZdZUdZded<eed�Zded<edd�Zd	ed
<edd�Z	d	ed<dZ
ded
<dZded<dZded<dS)�ExampleUpdateWithAttachmentsz Example update with attachments.rrJr:r<r=Nr>r@rArBrSrTrVrWr�r�)
r"r#r$r%r&rrGr=rArBrTrWr�r'r'r'r(r��s
r�c@seZdZdZdZdZdZdS)�DataTypezEnum for dataset data types.�kv�llm�chatN)r"r#r$r%r�r�r�r'r'r'r(r��s
r�c@s@eZdZUdZded<dZded<dZded<Gd	d
�d
�ZdS)�DatasetBasezDataset base model.r�nameNr^r�zOptional[DataType]�	data_typec@r�)zDatasetBase.ConfigrCTNr�r'r'r'r(rF�r�rF)r"r#r$r%r&r�r�rFr'r'r'r(r��s
r�)�remove_system_messages�convert_to_openai_message�convert_to_openai_tool�remove_extra_fields�extract_tools_from_runc@r)�DatasetTransformationz#Schema for dataset transformations.r�rrz%Union[DatasetTransformationType, str]�transformation_typeNr!r'r'r'r(r�s
r�F)�totalcs�eZdZUdZded<ded<edd�Zded	<dZd
ed<dZd
ed<dZ	ded
<dZ
ded<dZded<dZded<e
dd�Zded<e
dd�Zded<e
dd�Zded<			d d!�fdd�
Zed"dd��Z�ZS)#�DatasetzDataset ORM model.rrJrrRNr>rbrc�
Optional[int]�
example_count�
session_count�last_session_start_timer@�
inputs_schema�outputs_schemaz%Optional[List[DatasetTransformation]]�transformationsr^rfrIrg�_public_pathrhrr-ricsTd|vr|�d�|d<d|vr|�d�|d<t�jdi|��||_||_||_dS)rj�inputs_schema_definitionr��outputs_schema_definitionr�Nr')�poprkrlrfrgr�)r0rfrgr�rhrmr'r(rls
zDataset.__init__cCsV|jr)|jr|j�|j��S|jr |j�dt|j��d|j��S|j�d|j��SdS)rorqrpN)rfr�rgrrJr6r'r'r(rs+szDataset.url)NNN)
rfr^rgrIr�r^rhrr-rirz)r"r#r$r%r&rrcr�r�r�r�r�r�rrfrgr�rlr|rsr}r'r'rmr(r�s(
�r�c@s&eZdZUdZdZded<ded<dS)�DatasetVersionz%Class representing a dataset version.N�Optional[List[str]]�tagsr�as_of)r"r#r$r%r�r&r'r'r'r(r�7s
r�cCsdiiS)NrBr'r'r'r'r(�_default_extra>sr�c@seZdZUdZded<	ded<	ded<	ded<	d	Zd
ed<	eed�Zd
ed<	d	Z	ded<	d	Z
d
ed<	d	Zded<	eed�Z
ded<	d	Zd
ed<	d	Zded<	d	Zded<	d	Zded<	eed�Zded<	ed(d d!��Zed)d"d#��Zd$d%�ZGd&d'�d'�Zd	S)*�RunBasea3Base Run schema.

    A Run is a span representing a single unit of work or operation within your LLM app.
    This could be a single call to an LLM or chain, to a prompt formatting call,
    to a runnable lambda invocation. If you are familiar with OpenTelemetry,
    you can think of a run as a span.
    rrJrr�r�
start_time�run_typeNrb�end_timer:�Optional[dict]�extrar^�error�
serializedzOptional[List[Dict]]�eventsrGr=rArI�reference_example_id�
parent_run_idr�r�z-Union[Attachments, Dict[str, AttachmentInfo]]rWr-�dict[str, Any]cCs|jduri|_|j�di�S�zRetrieve the metadata (if any).NrB)r��
setdefaultr6r'r'r(rB}s
zRunBase.metadatacCs|j�d�S)z"Retrieve the revision ID (if any).�revision_id)rB�getr6r'r'r(r��szRunBase.revision_idcCrt)rurvz, name='z
', run_type='rw)rnrJr�r�r6r'r'r(rx�ryzRunBase.__repr__c@r�)zRunBase.ConfigrCTN)r"r#r$r%rEr'r'r'r(rF�r�rF�r-r�)r-rI)r"r#r$r%r&r�rr�r�r�r�r�rGr=rAr�r�r�rWr|rBr�rxrFr'r'r'r(r�BsP
�r�csDeZdZUdZdZded<	dZded<	dZded<	dZd	ed
<	dZ	ded<	dZ
ded
<	dZded<	dZded<	dZ
ded<	dZded<	dZded<	dZded<	dZded<	dZded<	dZded<	ded<	edd�Zded<	dZd ed!<	edd�Zded"<d+d,�fd'd(�
Zed-d)d*��Z�ZS).�Runz$Run schema when loading from the DB.NrI�
session_id�Optional[List[UUID]]�
child_run_idszOptional[List[Run]]�
child_runsr@�feedback_statsr^�app_path�manifest_id�statusr��
prompt_tokens�completion_tokens�total_tokensrb�first_token_time�Optional[Decimal]�
total_cost�prompt_cost�completion_cost�parent_run_idsr�trace_id�r>r�dotted_order�Optional[bool]�
in_datasetrfrhrr-rics~|�d�sd|�d�i|�}|�dd�pi}t�jdi|�d|i��||_|j��s;|js=|j�	��|j
��|_dSdSdS)�Initialize a Run object.r�rJr=Nr')r�r�rkrlrfr��stripr�r��	isoformatrJ)r0rfrhr=rmr'r(rl�s
�zRun.__init__cCs |jr|jr|j�|j��SdS)roN)rfr�r6r'r'r(rs�szRun.urlrL�rfr^rhrr-rirz)r"r#r$r%r�r&r�r�r�r�r�r�r�r�r�r�r�r�r�r�rr�r�rrfrlr|rsr}r'r'rmr(r��sT

r�c@s,eZdZdZdZdZdZdZdZdZ	dZ
d	S)
�RunTypeEnumz5(Deprecated) Enum for run types. Use string directly.�tool�chainr��	retriever�	embedding�prompt�parserN)r"r#r$r%r�r�r�r�r�r�r�r'r'r'r(r��sr�c@s�eZdZUdZded<ded<ded<ded	<ded
<ded<ded
<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<d ed!<ded"<d#ed$<d%S)&�RunLikeDictz&Run-like dictionary, for type-hinting.rr�r�r�rr�r�r=rArbr�r�r^r�r�rIr�r��Optional[List[dict]]r�r�r��inputs_s3_urls�outputs_s3_urlsrJr��session_namer��input_attachments�output_attachmentsrr�r��AttachmentsrWNr!r'r'r'r(r��s4
r�c@s,eZdZUdZdZded<	dZded<dS)�RunWithAnnotationQueueInfoz&Run schema with annotation queue info.Nrb�last_reviewed_time�added_at)r"r#r$r%r�r&r�r'r'r'r(r�s
r�c@sJeZdZUdZded<	eed�Zded<	dZded	<	dZ	d
ed<dS)�FeedbackSourceBasez�Base class for feedback sources.

    This represents whether feedback is submitted from the API, model, human labeler,
        etc.
    r�typer:r@rBNzOptional[Union[UUID, str]]�user_idr^�	user_name)
r"r#r$r%r&rrGrBr�r�r'r'r'r(r�s
r�c@�eZdZUdZdZded<dS)�APIFeedbackSourcezAPI feedback source.�apizLiteral['api']r�N�r"r#r$r%r�r&r'r'r'r(r��
r�c@r�)�ModelFeedbackSourcezModel feedback source.�modelzLiteral['model']r�Nr�r'r'r'r(r�#r�r�c@seZdZdZdZ	dZdS)�FeedbackSourceTypezFeedback source type.r�r�N)r"r#r$r%�API�MODELr'r'r'r(r�)sr�c@s�eZdZUdZded<	dZded<	dZded<	ded	<	ded
<	ded<	dZd
ed<	dZded<	dZ	ded<	dZ
ded<	dZded<	dZded<	dZ
ded<	dZded<	dZded<	Gdd�d�ZdS)�FeedbackBasezFeedback schema.rrJNrbrRrcrI�run_idr�r�key�
SCORE_TYPE�score�
VALUE_TYPE�valuer^�commentzUnion[str, dict, None]�
correction�Optional[FeedbackSourceBase]�feedback_sourcer��comparative_experiment_id�feedback_group_idzOptional[Dict]r�c@r�)zFeedbackBase.ConfigrCTNr�r'r'r'r(rFVr�rF)r"r#r$r%r&rRrcr�r�r�r�rr�rrr�rFr'r'r'r(r�2sB
r�c@�$eZdZUdZded<	ded<dS)�FeedbackCategoryz+Specific value and label pair for feedback.�floatr�r^�labelNr!r'r'r'r(r\�
rc@s8eZdZUdZded<	ded<	ded<	ded<d	S)
�FeedbackConfigz:Represents _how_ a feedback value ought to be interpreted.z0Literal['continuous', 'categorical', 'freeform']r��Optional[float]�min�maxz Optional[List[FeedbackCategory]]�
categoriesNr!r'r'r'r(r	es
r	c@s(eZdZUdZded<	dZded<dS)�FeedbackCreatez"Schema used for creating feedback.r�rNzOptional[FeedbackConfig]�feedback_config)r"r#r$r%r&rr'r'r'r(rss

rc@s:eZdZUdZded<ded<	ded<	dZded	<dS)
�FeedbackzSchema for getting feedback.rrJrrRrcNrr)r"r#r$r%r&rr'r'r'r(r{s
rcs�eZdZUdZded<	edd�d�Zded<	d	Zd
ed<	d	Zded
<	d	Z	ded<	d	Z
ded<	ded<	ded<	ed	d�Zded<d$d%�fdd�
Z
ed&dd��Zed'dd ��Zed(d"d#��Z�ZS))�
TracerSessionzbTracerSession schema for the API.

    Sessions are also referred to as "Projects" in the UI.
    rrJcCrKrLrMr'r'r'r(rP�rQzTracerSession.<lambda>r:rr�Nrbr�r^r�r�r@r��	tenant_idrI�reference_dataset_idr>rfrhrr-rics>t�jdi|��||_|jjdur|jjtjd�|_dSdS)r�N)�tzinfor')rkrlrfr�r�replacerrO)r0rfrhrmr'r(rl�s
�zTracerSession.__init__cCs$|jr|j�d|j�d|j��SdS)rorqz/projects/p/N)rfrrJr6r'r'r(rs�szTracerSession.urlr�cC�"|jdus
d|jvriS|jdSr��r�r6r'r'r(rB��
zTracerSession.metadatar�cCs"|jdus
d|jvrgS|jdS)zRetrieve the tags (if any).Nr�rr6r'r'r(r��rzTracerSession.tagsrLr�rzr�)r-r�)r"r#r$r%r&rr�r�r�r�r�rrfrlr|rsrBr�r}r'r'rmr(r�s4
rc@s�eZdZUdZded<	ded<	ded<	ded<	ded<	ded	<	d
ed<	ded
<	ded<	ded<	ded<	ded<	ded<	ded<	ded<dS)�TracerSessionResultzqA project, hydrated with additional information.

    Sessions are also referred to as "Projects" in the UI.
    r��	run_countzOptional[timedelta]�latency_p50�latency_p99r�r�r�rb�last_run_start_timer@r�zOptional[List[Dict[str, Any]]]�
run_facetsr�r�r�r��first_token_p50�first_token_p99r
�
error_rateNr!r'r'r'r(r�s@
rc@s4eZdZUdZded<	ded<	ed
dd��Zd	S)�BaseMessageLikez7A protocol representing objects similar to BaseMessage.r�contentzDict[Any, Any]�additional_kwargsr-cCr/)z,Type of the Message, used for serialization.Nr'r6r'r'r(r��szBaseMessageLike.typeN)r-r)r"r#r$r%r&r|r�r'r'r'r(r"�s
r"c@s.eZdZUdZded<	ded<	ded<dS)�DatasetShareSchemaz*Represents the schema for a dataset share.rr9�share_tokenrrsNr!r'r'r'r(r%��
r%c@sleZdZUdZded<	ded<	dZded<	ed	d
�d�Zded
<	edd
�d�Zded<	ded<dS)�AnnotationQueuezRepresents an annotation queue.rrJrr�Nr^r�cCrKrLrMr'r'r'r(rPrQzAnnotationQueue.<lambda>r:rrRcCrKrLrMr'r'r'r(rPrQ�
updated_atr)	r"r#r$r%r&r�rrRr)r'r'r'r(r(�s
r(c@sLeZdZUdZded<	ded<	ded<	ded<	ded<	d	ed
<dS)�BatchIngestConfigz"Configuration for batch ingestion.�bool�use_multipart_endpointr,�scale_up_qsize_trigger�scale_up_nthreads_limit�scale_down_nempty_trigger�
size_limitr��size_limit_bytesNr!r'r'r'r(r*
s
r*c@sHeZdZUdZdZded<	dZded<	dZded	<	dZd
ed<dS)�
LangSmithInfoz'Information about the LangSmith server.r�r�versionNrb�license_expiration_timezOptional[BatchIngestConfig]�batch_ingest_configr@�instance_flags)	r"r#r$r%r3r&r4r5r6r'r'r'r(r2s
r2c@s<eZdZUdZded<	ded<	ded<	dZded	<dS)
�LangSmithSettingsz"Settings for the LangSmith tenant.rrJ�display_namerrRNr^�
tenant_handle)r"r#r$r%r&r9r'r'r'r(r7-s
r7c@�.eZdZUdZded<	ded<	ded<dS)	�FeedbackIngestTokenz2Represents the schema for a feedback ingest token.rrJrrsr�
expires_atNr!r'r'r'r(r;9r'r;c@r:)	�RunEventzRun event schema.rr�zUnion[datetime, str]�timer@rhNr!r'r'r'r(r=Dr'r=c@�.eZdZUdZded<	ded<	ded<dS)�TimeDeltaInputzTimedelta input schema.r,�days�hours�minutesNr!r'r'r'r(r@Or'r@c@r?)�DatasetDiffInfoz;Represents the difference information between two datasets.z
List[UUID]�examples_modified�examples_added�examples_removedNr!r'r'r'r(rDZr'rDc@s�eZdZUdZded<	dZded<	dZded<	ded<	d	ed
<	d	ed<	ded<	dZd
ed<	dZded<	dZ	d
ed<	e
ddd��ZdS)�ComparativeExperimentz�Represents a comparative experiment.

    This information summarizes evaluation results comparing
    two or more models on a given dataset.
    rrJNr^r�r�rrrRrcrr@r�r��experiments_infor�r-r�cCrr�rr6r'r'r(rB�rzComparativeExperiment.metadatar�)r"r#r$r%r&r�r�r�rIr�r|rBr'r'r'r(rHes0
rHc@�BeZdZUdZded<	ded<	ded<	ded<	ded	<d
S)�PromptCommitz$Represents a Prompt with a manifest.r�owner�repo�commit_hashr<�manifestz
List[dict]�examplesNr!r'r'r'r(rK�s
rKc@s�eZdZUdZded<	ded<	ded<	dZded	<	dZded
<	dZded<	dZded
<	dZ	ded<	dZ
ded<	eed�Z
ded<	dZded<	dZded<	dZded<dS)�ListedPromptCommitz;Represents a listed prompt commit with associated metadata.rrJrrLrMNrIr��repo_id�	parent_idr^rNrbrRr)r:r��example_run_idsrr��
num_downloads�	num_views�parent_commit_hash)r"r#r$r%r&r�rRrSrNrRr)rr{rTrUrVrWr'r'r'r(rQ�s8
rQc@seZdZUdZded<	dZded<	dZded<	ded<	ded	<	d
ed<	d
ed<	d
ed<	d
ed<	ded<	dZded<	dZded<	ded<	ded<	ded<	ded<	ded<	dZ	ded<	dZ
ded<	ded<	dZded<	dZded<dS) �Promptz"Represents a Prompt with metadata.r�repo_handleNr^r��readmerJrrrRr)r+�	is_public�is_archivedr�r��original_repo_id�upstream_repo_idrL�	full_namer,�	num_likesrUrVr��liked_by_auth_user�last_commit_hash�num_commits�original_repo_full_name�upstream_repo_full_name)
r"r#r$r%r&r�rZr]r^rarbrdrer'r'r'r(rX�s\
rXc@r)�ListPromptsResponsez A list of prompts with metadata.zList[Prompt]�reposr,r�Nr!r'r'r'r(rf�rrfc@s&eZdZdZdZ	dZ	dZ	dZdS)�PromptSortFieldz$Enum for sorting fields for prompts.rUrVr)r`N)r"r#r$r%rUrVr)r`r'r'r'r(rh�srhc@r?)�InputTokenDetailsz~Breakdown of input token counts.

    Does *not* need to sum to full input token count. Does *not* need to have all keys.
    r,�audio�cache_creation�
cache_readNr!r'r'r'r(ri
s
ric@s$eZdZUdZded<	ded<dS)�OutputTokenDetailsz�Breakdown of output token counts.

    Does *not* need to sum to full output token count. Does *not* need to have all keys.
    r,rj�	reasoningNr!r'r'r'r(rms
rmc@rJ)�
UsageMetadataz�Usage metadata for a message, such as token counts.

    This is a standard representation of token usage that is consistent across models.
    r,�input_tokens�
output_tokensr�zNotRequired[InputTokenDetails]�input_token_detailszNotRequired[OutputTokenDetails]�output_token_detailsNr!r'r'r'r(ro/s
roc@r)�UpsertExamplesResponsezCResponse object returned from the upsert_examples_multipart method.r,�countr��example_idsNr!r'r'r'r(rtGrrt)br%�
__future__rrrr�decimalr�enumr�typingrr	r
rrr
rrr�uuidr�typing_extensionsrr�pydantic.v1rrrrrr�ImportError�pydantic�pathlibrrr�rr�rr.r�r)r8rHrUrYr[r_r~rr�r�r�r��DatasetTransformationTyper�r�r�r�r�r�r�r�r�r�r�r�r�r�rr	rrrrr"r%r(r*r2�update_forward_refsr7r;r=r@rDrHrKrQrXrfrhrirmrortr'r'r'r(�<module>s�,$$�
&+
�	/QG		*	6&
$+1