@@ -34,6 +34,30 @@ types:
3434 model_config :
3535 type : ModelConfigRequest
3636 docs : Model config associated with the agent.
37+ BaseMetricResponse :
38+ properties :
39+ id :
40+ type : string
41+ docs : ID of the metric. Starts with 'metric_'.
42+ name :
43+ type : string
44+ docs : The name of the metric.
45+ description :
46+ type : string
47+ docs : A description of what the metric measures.
48+ code :
49+ type : string
50+ docs : Python code used to calculate a metric value on each logged datapoint.
51+ default :
52+ type : boolean
53+ docs : >-
54+ Whether the metric is a global default metric. Metrics with this flag
55+ enabled cannot be deleted or modified.
56+ active :
57+ type : boolean
58+ docs : If enabled, the metric is calculated for every logged datapoint.
59+ created_at : datetime
60+ updated_at : datetime
3761 BooleanEvaluatorVersionStats :
3862 docs : |-
3963 Base attributes for stats for an Evaluator Version-Evaluated Version pair
@@ -287,6 +311,11 @@ types:
287311 in the inheriting classes with documentation and appropriate Field
288312 definitions.
289313 properties :
314+ path :
315+ type : string
316+ docs : >-
317+ Path of the Dataset, including the name, which is used as a unique
318+ identifier.
290319 id :
291320 type : string
292321 docs : Unique identifier for the Dataset. Starts with `ds_`.
@@ -299,7 +328,7 @@ types:
299328 Unique identifier for the specific Dataset Version. If no query params
300329 provided, the default deployed Dataset Version is returned. Starts
301330 with `dsv_`.
302- directory_id : optional<string >
331+ type : optional<literal<"dataset"> >
303332 environments :
304333 type : optional<list<EnvironmentResponse>>
305334 docs : The list of environments the Dataset Version is deployed to.
@@ -312,11 +341,6 @@ types:
312341 type : VersionStatus
313342 docs : The status of the Dataset Version.
314343 last_used_at : datetime
315- path :
316- type : string
317- docs : >-
318- Path of the Dataset, including the name, which is used as a unique
319- identifier.
320344 commit_message :
321345 type : optional<string>
322346 docs : >-
@@ -546,6 +570,19 @@ types:
546570 type : >-
547571 optional<list<EvaluatorActivationDeactivationRequestEvaluatorsToDeactivateItem>>
548572 docs : Evaluators to deactivate. These will not be run on new Logs.
573+ EvaluatorAggregate :
574+ properties :
575+ value :
576+ type : double
577+ docs : The aggregated value of the evaluator.
578+ evaluator_id :
579+ type : string
580+ docs : ID of the evaluator.
581+ evaluator_version_id :
582+ type : string
583+ docs : ID of the evaluator version.
584+ created_at : datetime
585+ updated_at : datetime
549586 EvaluatorArgumentsType :
550587 enum :
551588 - target_free
@@ -598,6 +635,11 @@ types:
598635 EvaluatorResponse :
599636 docs : Request model for creating a new Evaluator
600637 properties :
638+ path :
639+ type : string
640+ docs : >-
641+ Path of the Dataset including the Dataset name, which is used as a
642+ unique identifier.
601643 id :
602644 type : string
603645 docs : Unique identifier for the Evaluator.
@@ -609,7 +651,7 @@ types:
609651 docs : >-
610652 Unique identifier for the specific Evaluator Version. If no query
611653 params provided, the default deployed Evaluator Version is returned.
612- directory_id : optional<string >
654+ type : optional<literal<"evaluator"> >
613655 environments :
614656 type : optional<list<EnvironmentResponse>>
615657 docs : The list of environments the Prompt Version is deployed to.
@@ -620,11 +662,6 @@ types:
620662 docs : The user who created the Prompt.
621663 status : VersionStatus
622664 last_used_at : datetime
623- path :
624- type : string
625- docs : >-
626- Path of the Dataset including the Dataset name, which is used as a
627- unique identifier.
628665 commit_message :
629666 type : optional<string>
630667 docs : Message describing the changes made.
@@ -640,11 +677,74 @@ types:
640677 Inputs associated to the Prompt. Inputs correspond to any of the
641678 variables used within the Prompt template.
642679 type : list<InputResponse>
680+ evaluator_aggregates :
681+ type : optional<list<EvaluatorAggregate>>
682+ docs : Aggregation of Evaluator results for the Evaluator Version.
643683 EvaluatorReturnTypeEnum :
644684 enum :
645685 - boolean
646686 - number
647687 docs : Enum representing the possible return types of an evaluator.
688+ ExperimentResponse :
689+ properties :
690+ id :
691+ type : string
692+ docs : String ID of experiment. Starts with `exp_`.
693+ file_id :
694+ type : string
695+ docs : String ID of file the experiment belongs to.
696+ name :
697+ type : string
698+ docs : Name of experiment.
699+ status :
700+ type : ExperimentStatus
701+ docs : Status of experiment.
702+ versions :
703+ type : optional<list<ExperimentVersionResponse>>
704+ docs : List of Versions associated to the experiment.
705+ metric :
706+ type : BaseMetricResponse
707+ docs : Metric used as the experiment's objective.
708+ positive_labels :
709+ docs : >-
710+ Feedback labels to treat as positive user feedback. Used to monitor
711+ the performance of model configs in the experiment.
712+ type : list<PositiveLabel>
713+ created_at : datetime
714+ updated_at : datetime
715+ ExperimentStatus :
716+ enum :
717+ - Initialized
718+ - value : In progress
719+ name : InProgress
720+ docs : An enumeration.
721+ ExperimentVersionResponse :
722+ properties :
723+ mean :
724+ type : optional<double>
725+ docs : The mean performance of the Version.
726+ spread :
727+ type : optional<double>
728+ docs : The spread of performance of the Version.
729+ trials_count :
730+ type : integer
731+ docs : Number of datapoints with feedback associated to the experiment.
732+ active :
733+ type : boolean
734+ docs : >-
735+ Whether the Version is active in the experiment. Only active model
736+ configs can be sampled from the experiment.
737+ id :
738+ type : string
739+ docs : String ID of Version.
740+ commit_message :
741+ type : optional<string>
742+ docs : Commit message of Version.
743+ version_id :
744+ type : string
745+ docs : Version of the Prompt or Tool.
746+ created_at : datetime
747+ updated_at : datetime
648748 FeedbackClass :
649749 enum :
650750 - select
@@ -721,6 +821,33 @@ types:
721821 The allowed values for categorical feedback types. Not populated for
722822 `correction` and `comment`.
723823 FeedbackTypes : list<FeedbackTypeModel>
824+ FileEnvironmentResponseFile :
825+ discriminated : false
826+ docs : >-
827+ The version of the File that is deployed to the Environment, if one is
828+ deployed.
829+ union :
830+ - PromptResponse
831+ - ToolResponse
832+ - DatasetResponse
833+ - EvaluatorResponse
834+ FileEnvironmentResponse :
835+ docs : >-
836+ Response model for the List Environments endpoint under Files.
837+
838+
839+ Contains the deployed version of the File, if one is deployed to the
840+ Environment.
841+ properties :
842+ id : string
843+ created_at : datetime
844+ name : string
845+ tag : EnvironmentTag
846+ file :
847+ type : optional<FileEnvironmentResponseFile>
848+ docs : >-
849+ The version of the File that is deployed to the Environment, if one is
850+ deployed.
724851 FunctionTool :
725852 docs : A function tool to be called by the model where user owns runtime.
726853 properties :
@@ -1420,6 +1547,10 @@ types:
14201547 - supportadmin
14211548 - user
14221549 docs : An enumeration.
1550+ PositiveLabel :
1551+ properties :
1552+ type : string
1553+ value : string
14231554 ProjectSortBy :
14241555 enum :
14251556 - created_at
@@ -1873,6 +2004,11 @@ types:
18732004 PromptResponse :
18742005 docs : Request model for creating a new Prompt
18752006 properties :
2007+ path :
2008+ type : string
2009+ docs : >-
2010+ Path of the Prompt, including the name, which is used as a unique
2011+ identifier.
18762012 id :
18772013 type : string
18782014 docs : Unique identifier for the Prompt.
@@ -1884,7 +2020,7 @@ types:
18842020 docs : >-
18852021 Unique identifier for the specific Prompt Version. If no query params
18862022 provided, the default deployed Prompt Version is returned.
1887- directory_id : optional<string >
2023+ type : optional<literal<"prompt"> >
18882024 environments :
18892025 type : optional<list<EnvironmentResponse>>
18902026 docs : The list of environments the Prompt Version is deployed to.
@@ -1897,11 +2033,6 @@ types:
18972033 type : VersionStatus
18982034 docs : The status of the Prompt Version.
18992035 last_used_at : datetime
1900- path :
1901- type : string
1902- docs : >-
1903- Path of the Prompt, including the name, which is used as a unique
1904- identifier.
19052036 model :
19062037 type : string
19072038 docs : >-
@@ -1991,6 +2122,9 @@ types:
19912122 Inputs associated to the Prompt. Inputs correspond to any of the
19922123 variables used within the Prompt template.
19932124 type : list<InputResponse>
2125+ evaluator_aggregates :
2126+ type : optional<list<EvaluatorAggregate>>
2127+ docs : Aggregation of Evaluator results for the Prompt Version.
19942128 ProviderApiKeys :
19952129 properties :
19962130 openai : optional<string>
@@ -2173,26 +2307,6 @@ types:
21732307
21742308 V4 uses organization and inline. Those are deprecated and will be removed
21752309 in favour of tool and tool_version.
2176- ToolTemplateResponse :
2177- docs : Template for a Humanloop runnable tool.
2178- properties :
2179- name :
2180- type : string
2181- docs : Name for the tool referenced by the model.
2182- description :
2183- type : string
2184- docs : Description of the tool referenced by the model
2185- parameters :
2186- type : optional<map<string, unknown>>
2187- docs : >-
2188- Parameters needed to run the Tool, defined in JSON Schema format:
2189- https://json-schema.org/
2190- signature :
2191- type : optional<string>
2192- docs : Signature of the Tool.
2193- setup_schema :
2194- type : optional<map<string, unknown>>
2195- docs : Schema required to setup the Tool runtime, e.g. API keys.
21962310 UpdateDatesetAction :
21972311 enum :
21982312 - set
@@ -2352,6 +2466,11 @@ types:
23522466 ToolResponse :
23532467 docs : Request to create a new Tool.
23542468 properties :
2469+ path :
2470+ type : string
2471+ docs : >-
2472+ Path of the Tool, including the name, which is used as a unique
2473+ identifier.
23552474 id :
23562475 type : string
23572476 docs : Unique identifier for the Tool.
@@ -2363,7 +2482,7 @@ types:
23632482 docs : >-
23642483 Unique identifier for the specific Tool Version. If no query params
23652484 provided, the default deployed Tool Version is returned.
2366- directory_id : optional<string >
2485+ type : optional<literal<"tool"> >
23672486 environments :
23682487 type : optional<list<EnvironmentResponse>>
23692488 docs : The list of environments the Tool Version is deployed to.
@@ -2376,11 +2495,6 @@ types:
23762495 type : VersionStatus
23772496 docs : The status of the Tool Version.
23782497 last_used_at : datetime
2379- path :
2380- type : string
2381- docs : >-
2382- Path of the Tool, including the name, which is used as a unique
2383- identifier.
23842498 function :
23852499 type : optional<ToolFunction>
23862500 docs : >-
@@ -2414,6 +2528,9 @@ types:
24142528 signature :
24152529 type : optional<string>
24162530 docs : Signature of the Tool.
2531+ evaluator_aggregates :
2532+ type : optional<list<EvaluatorAggregate>>
2533+ docs : Aggregation of Evaluator results for the Tool Version.
24172534 UserResponse :
24182535 properties :
24192536 id :
0 commit comments