Skip to main content

API Overview


Source

class RemoteHTTPTraceServer

Source

method __init__

__init__(
    trace_server_url: str,
    should_batch: bool = False,
    remote_request_bytes_limit: int = 32505856,
    auth: tuple[str, str] | None = None,
    extra_headers: dict[str, str] | None = None
)

Source

method actions_execute_batch

actions_execute_batch(req: ActionsExecuteBatchReq) → ActionsExecuteBatchRes

Source

method annotation_queue_add_calls

annotation_queue_add_calls(
    req: AnnotationQueueAddCallsReq
) → AnnotationQueueAddCallsRes

Source

method annotation_queue_create

annotation_queue_create(
    req: AnnotationQueueCreateReq
) → AnnotationQueueCreateRes

Source

method annotation_queue_items_query

annotation_queue_items_query(
    req: AnnotationQueueItemsQueryReq
) → AnnotationQueueItemsQueryRes

Source

method annotation_queue_read

annotation_queue_read(req: AnnotationQueueReadReq) → AnnotationQueueReadRes

Source

method annotation_queues_query_stream

annotation_queues_query_stream(
    req: AnnotationQueuesQueryReq
) → Iterator[AnnotationQueueSchema]

Source

method annotation_queues_stats

annotation_queues_stats(
    req: AnnotationQueuesStatsReq
) → AnnotationQueuesStatsRes

Source

method annotator_queue_items_progress_update

annotator_queue_items_progress_update(
    req: AnnotatorQueueItemsProgressUpdateReq
) → AnnotatorQueueItemsProgressUpdateRes

Source

method call_end

call_end(req: CallEndReq) → CallEndRes

Source

method call_read

call_read(req: CallReadReq) → CallReadRes

Source

method call_start

call_start(req: CallStartReq) → CallStartRes

Source

method call_start_batch

call_start_batch(req: CallCreateBatchReq) → CallCreateBatchRes

Source

method call_update

call_update(req: CallUpdateReq) → CallUpdateRes

Source

method calls_delete

calls_delete(req: CallsDeleteReq) → CallsDeleteRes

Source

method calls_query

calls_query(req: CallsQueryReq) → CallsQueryRes

Source

method calls_query_stats

calls_query_stats(req: CallsQueryStatsReq) → CallsQueryStatsRes

Source

method calls_query_stream

calls_query_stream(req: CallsQueryReq) → Iterator[CallSchema]

Source

method completions_create

completions_create(req: CompletionsCreateReq) → CompletionsCreateRes

Source

method completions_create_stream

completions_create_stream(req: CompletionsCreateReq) → Iterator[dict[str, Any]]

Source

method cost_create

cost_create(req: CostCreateReq) → CostCreateRes

Source

method cost_purge

cost_purge(req: CostPurgeReq) → CostPurgeRes

Source

method cost_query

cost_query(req: CostQueryReq) → CostQueryRes

Source

method dataset_create

dataset_create(req: DatasetCreateReq) → DatasetCreateRes

Source

method dataset_delete

dataset_delete(req: DatasetDeleteReq) → DatasetDeleteRes

Source

method dataset_list

dataset_list(req: DatasetListReq) → Iterator[DatasetReadRes]

Source

method dataset_read

dataset_read(req: DatasetReadReq) → DatasetReadRes

Source

method delete

delete(url: str, *args: Any, **kwargs: Any) → Response

Source

method ensure_project_exists

ensure_project_exists(entity: str, project: str) → EnsureProjectExistsRes

Source

method evaluate_model

evaluate_model(req: EvaluateModelReq) → EvaluateModelRes

Source

method evaluation_create

evaluation_create(req: EvaluationCreateReq) → EvaluationCreateRes

Source

method evaluation_delete

evaluation_delete(req: EvaluationDeleteReq) → EvaluationDeleteRes

Source

method evaluation_list

evaluation_list(req: EvaluationListReq) → Iterator[EvaluationReadRes]

Source

method evaluation_read

evaluation_read(req: EvaluationReadReq) → EvaluationReadRes

Source

method evaluation_run_create

evaluation_run_create(req: EvaluationRunCreateReq) → EvaluationRunCreateRes

Source

method evaluation_run_delete

evaluation_run_delete(req: EvaluationRunDeleteReq) → EvaluationRunDeleteRes

Source

method evaluation_run_finish

evaluation_run_finish(req: EvaluationRunFinishReq) → EvaluationRunFinishRes

Source

method evaluation_run_list

evaluation_run_list(req: EvaluationRunListReq) → Iterator[EvaluationRunReadRes]

Source

method evaluation_run_read

evaluation_run_read(req: EvaluationRunReadReq) → EvaluationRunReadRes

Source

method evaluation_status

evaluation_status(req: EvaluationStatusReq) → EvaluationStatusRes

Source

method feedback_create

feedback_create(req: FeedbackCreateReq) → FeedbackCreateRes

Source

method feedback_create_batch

feedback_create_batch(req: FeedbackCreateBatchReq) → FeedbackCreateBatchRes

Source

method feedback_purge

feedback_purge(req: FeedbackPurgeReq) → FeedbackPurgeRes

Source

method feedback_query

feedback_query(req: FeedbackQueryReq) → FeedbackQueryRes

Source

method feedback_replace

feedback_replace(req: FeedbackReplaceReq) → FeedbackReplaceRes

Source

method file_content_read

file_content_read(req: FileContentReadReq) → FileContentReadRes

Source

method file_create

file_create(req: FileCreateReq) → FileCreateRes

Source

method files_stats

files_stats(req: FilesStatsReq) → FilesStatsRes

Source

classmethod from_env

from_env(should_batch: bool = False) → Self

Source

method get

get(url: str, *args: Any, **kwargs: Any) → Response

Source

method get_call_processor

get_call_processor() → AsyncBatchProcessor | None
Custom method not defined on the formal TraceServerInterface to expose the underlying call processor. Should be formalized in a client-side interface.
Source

method get_feedback_processor

get_feedback_processor() → AsyncBatchProcessor | None
Custom method not defined on the formal TraceServerInterface to expose the underlying feedback processor. Should be formalized in a client-side interface.
Source

method image_create

image_create(req: ImageGenerationCreateReq) → ImageGenerationCreateRes

Source

method model_create

model_create(req: ModelCreateReq) → ModelCreateRes

Source

method model_delete

model_delete(req: ModelDeleteReq) → ModelDeleteRes

Source

method model_list

model_list(req: ModelListReq) → Iterator[ModelReadRes]

Source

method model_read

model_read(req: ModelReadReq) → ModelReadRes

Source

method obj_create

obj_create(req: ObjCreateReq) → ObjCreateRes

Source

method obj_delete

obj_delete(req: ObjDeleteReq) → ObjDeleteRes

Source

method obj_read

obj_read(req: ObjReadReq) → ObjReadRes

Source

method objs_query

objs_query(req: ObjQueryReq) → ObjQueryRes

Source

method op_create

op_create(req: OpCreateReq) → OpCreateRes

Source

method op_delete

op_delete(req: OpDeleteReq) → OpDeleteRes

Source

method op_list

op_list(req: OpListReq) → Iterator[OpReadRes]

Source

method op_read

op_read(req: OpReadReq) → OpReadRes

Source

method otel_export

otel_export(req: OtelExportReq) → OtelExportRes

Source

method post

post(url: str, *args: Any, **kwargs: Any) → Response

Source

method prediction_create

prediction_create(req: PredictionCreateReq) → PredictionCreateRes

Source

method prediction_delete

prediction_delete(req: PredictionDeleteReq) → PredictionDeleteRes

Source

method prediction_finish

prediction_finish(req: PredictionFinishReq) → PredictionFinishRes

Source

method prediction_list

prediction_list(req: PredictionListReq) → Iterator[PredictionReadRes]

Source

method prediction_read

prediction_read(req: PredictionReadReq) → PredictionReadRes

Source

method project_stats

project_stats(req: ProjectStatsReq) → ProjectStatsRes

Source

method refs_read_batch

refs_read_batch(req: RefsReadBatchReq) → RefsReadBatchRes

Source

method score_create

score_create(req: ScoreCreateReq) → ScoreCreateRes

Source

method score_delete

score_delete(req: ScoreDeleteReq) → ScoreDeleteRes

Source

method score_list

score_list(req: ScoreListReq) → Iterator[ScoreReadRes]

Source

method score_read

score_read(req: ScoreReadReq) → ScoreReadRes

Source

method scorer_create

scorer_create(req: ScorerCreateReq) → ScorerCreateRes

Source

method scorer_delete

scorer_delete(req: ScorerDeleteReq) → ScorerDeleteRes

Source

method scorer_list

scorer_list(req: ScorerListReq) → Iterator[ScorerReadRes]

Source

method scorer_read

scorer_read(req: ScorerReadReq) → ScorerReadRes

Source

method server_info

server_info() → ServerInfoRes

Source

method set_auth

set_auth(auth: tuple[str, str]) → None

Source

method table_create

table_create(req: TableCreateReq) → TableCreateRes

Source

method table_create_from_digests

table_create_from_digests(
    req: TableCreateFromDigestsReq
) → TableCreateFromDigestsRes
Create a table by specifying row digests instead of actual rows.
Source

method table_query

table_query(req: TableQueryReq) → TableQueryRes

Source

method table_query_stats

table_query_stats(req: TableQueryStatsReq) → TableQueryStatsRes

Source

method table_query_stats_batch

table_query_stats_batch(req: TableQueryStatsReq) → TableQueryStatsRes

Source

method table_query_stream

table_query_stream(req: TableQueryReq) → Iterator[TableRowSchema]

Source

method table_update

table_update(req: TableUpdateReq) → TableUpdateRes
Similar to calls/batch_upsert, we can dynamically adjust the payload size due to the property that table updates can be decomposed into a series of updates.
Source

method threads_query_stream

threads_query_stream(req: ThreadsQueryReq) → Iterator[ThreadSchema]