You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fetch_batch_size: Number of items to fetch per API call and hold in memory.
3125
3126
Larger values may be faster but use more memory. Default: 50.
3127
+
fetch_trace_fields: Comma-separated list of fields to include in the when fetching traces. Available field groups: 'core' (always included), 'io' (input, output, metadata), 'scores', 'observations', 'metrics'. If not specified, all fields are returned. Example: 'core,scores,metrics'. Note: Excluded 'observations' or 'scores' fields return empty arrays; excluded 'metrics' returns -1 for 'totalCost' and 'latency'. Only relevant if scope is 'traces'.
3126
3128
max_items: Maximum total number of items to process. If None, processes all
3127
3129
items matching the filter. Useful for testing or limiting evaluation runs.
evaluators: List of evaluation functions to run on each item.
867
868
filter: JSON filter string for querying items.
868
869
fetch_batch_size: Number of items to fetch per API call.
870
+
fetch_trace_fields: Comma-separated list of fields to include in the when fetching traces. Available field groups: 'core' (always included), 'io' (input, output, metadata), 'scores', 'observations', 'metrics'. If not specified, all fields are returned. Example: 'core,scores,metrics'. Note: Excluded 'observations' or 'scores' fields return empty arrays; excluded 'metrics' returns -1 for 'totalCost' and 'latency'. Only relevant if scope is 'traces'.
869
871
max_items: Maximum number of items to process (None = all).
870
872
max_concurrency: Maximum number of concurrent evaluations.
871
873
composite_evaluator: Optional function to create composite scores.
@@ -935,6 +937,7 @@ async def run_async(
935
937
page=page,
936
938
limit=fetch_batch_size,
937
939
max_retries=max_retries,
940
+
fields=fetch_trace_fields,
938
941
)
939
942
exceptExceptionase:
940
943
# Failed after max_retries - create resume token and return
0 commit comments