@@ -147,6 +147,17 @@ def list(
147147
148148 primary_eval_issue: Filter logs that have ANY of these primary evaluation issues (OR operation)
149149
150+ sort: Field or score to sort by.
151+
152+ Available fields: 'created_at', 'primary_eval_issue_score'.
153+
154+ For eval scores, use '.eval.' prefix followed by the eval name.
155+
156+ Default eval scores: '.eval.trustworthiness', '.eval.context_sufficiency',
157+ '.eval.response_helpfulness', '.eval.query_ease', '.eval.response_groundedness'.
158+
159+ Custom eval scores: '.eval.custom_eval_1', '.eval.custom_eval_2', etc.
160+
150161 tool_call_names: Filter by names of tools called in the assistant response
151162
152163 was_cache_hit: Filter by cache hit status
@@ -286,6 +297,17 @@ def list_by_group(
286297
287298 remediation_ids: List of groups to list child logs for
288299
300+ sort: Field or score to sort by.
301+
302+ Available fields: 'created_at', 'primary_eval_issue_score'.
303+
304+ For eval scores, use '.eval.' prefix followed by the eval name.
305+
306+ Default eval scores: '.eval.trustworthiness', '.eval.context_sufficiency',
307+ '.eval.response_helpfulness', '.eval.query_ease', '.eval.response_groundedness'.
308+
309+ Custom eval scores: '.eval.custom_eval_1', '.eval.custom_eval_2', etc.
310+
289311 tool_call_names: Filter by names of tools called in the assistant response
290312
291313 was_cache_hit: Filter by cache hit status
@@ -351,8 +373,7 @@ def list_groups(
351373 List [Literal ["hallucination" , "search_failure" , "unhelpful" , "difficult_query" , "ungrounded" ]]
352374 ]
353375 | NotGiven = NOT_GIVEN ,
354- sort : Optional [Literal ["created_at" , "primary_eval_issue_score" , "total_count" , "custom_rank" , "impact_score" ]]
355- | NotGiven = NOT_GIVEN ,
376+ sort : Optional [str ] | NotGiven = NOT_GIVEN ,
356377 tool_call_names : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
357378 was_cache_hit : Optional [bool ] | NotGiven = NOT_GIVEN ,
358379 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -384,6 +405,18 @@ def list_groups(
384405
385406 primary_eval_issue: Filter logs that have ANY of these primary evaluation issues (OR operation)
386407
408+ sort: Field or score to sort by.
409+
410+ Available fields: 'created_at', 'custom_rank', 'impact_score',
411+ 'primary_eval_issue_score', 'total_count'.
412+
413+ For eval scores, use '.eval.' prefix followed by the eval name.
414+
415+ Default eval scores: '.eval.trustworthiness', '.eval.context_sufficiency',
416+ '.eval.response_helpfulness', '.eval.query_ease', '.eval.response_groundedness'.
417+
418+ Custom eval scores: '.eval.custom_eval_1', '.eval.custom_eval_2', etc.
419+
387420 tool_call_names: Filter by names of tools called in the assistant response
388421
389422 was_cache_hit: Filter by cache hit status
@@ -609,6 +642,17 @@ def list(
609642
610643 primary_eval_issue: Filter logs that have ANY of these primary evaluation issues (OR operation)
611644
645+ sort: Field or score to sort by.
646+
647+ Available fields: 'created_at', 'primary_eval_issue_score'.
648+
649+ For eval scores, use '.eval.' prefix followed by the eval name.
650+
651+ Default eval scores: '.eval.trustworthiness', '.eval.context_sufficiency',
652+ '.eval.response_helpfulness', '.eval.query_ease', '.eval.response_groundedness'.
653+
654+ Custom eval scores: '.eval.custom_eval_1', '.eval.custom_eval_2', etc.
655+
612656 tool_call_names: Filter by names of tools called in the assistant response
613657
614658 was_cache_hit: Filter by cache hit status
@@ -750,6 +794,17 @@ async def list_by_group(
750794
751795 remediation_ids: List of groups to list child logs for
752796
797+ sort: Field or score to sort by.
798+
799+ Available fields: 'created_at', 'primary_eval_issue_score'.
800+
801+ For eval scores, use '.eval.' prefix followed by the eval name.
802+
803+ Default eval scores: '.eval.trustworthiness', '.eval.context_sufficiency',
804+ '.eval.response_helpfulness', '.eval.query_ease', '.eval.response_groundedness'.
805+
806+ Custom eval scores: '.eval.custom_eval_1', '.eval.custom_eval_2', etc.
807+
753808 tool_call_names: Filter by names of tools called in the assistant response
754809
755810 was_cache_hit: Filter by cache hit status
@@ -815,8 +870,7 @@ def list_groups(
815870 List [Literal ["hallucination" , "search_failure" , "unhelpful" , "difficult_query" , "ungrounded" ]]
816871 ]
817872 | NotGiven = NOT_GIVEN ,
818- sort : Optional [Literal ["created_at" , "primary_eval_issue_score" , "total_count" , "custom_rank" , "impact_score" ]]
819- | NotGiven = NOT_GIVEN ,
873+ sort : Optional [str ] | NotGiven = NOT_GIVEN ,
820874 tool_call_names : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
821875 was_cache_hit : Optional [bool ] | NotGiven = NOT_GIVEN ,
822876 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -848,6 +902,18 @@ def list_groups(
848902
849903 primary_eval_issue: Filter logs that have ANY of these primary evaluation issues (OR operation)
850904
905+ sort: Field or score to sort by.
906+
907+ Available fields: 'created_at', 'custom_rank', 'impact_score',
908+ 'primary_eval_issue_score', 'total_count'.
909+
910+ For eval scores, use '.eval.' prefix followed by the eval name.
911+
912+ Default eval scores: '.eval.trustworthiness', '.eval.context_sufficiency',
913+ '.eval.response_helpfulness', '.eval.query_ease', '.eval.response_groundedness'.
914+
915+ Custom eval scores: '.eval.custom_eval_1', '.eval.custom_eval_2', etc.
916+
851917 tool_call_names: Filter by names of tools called in the assistant response
852918
853919 was_cache_hit: Filter by cache hit status
0 commit comments