> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-1778-mysql-updates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# remote_http_trace_server

> Python SDK reference for weave.trace_server_bindings.remote_http_trace_server

# API Overview

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L41">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

## <kbd>class</kbd> `RemoteHTTPTraceServer`

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L45">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `__init__`

```python theme={null}
__init__(
    trace_server_url: str,
    should_batch: bool = False,
    remote_request_bytes_limit: int = 32505856,
    auth: Optional[tuple[str, str]] = None,
    extra_headers: Optional[dict[str, str]] = None
)
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L617">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `actions_execute_batch`

```python theme={null}
actions_execute_batch(
    req: Union[ActionsExecuteBatchReq, dict[str, Any]]
) → ActionsExecuteBatchRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L350">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `call_end`

```python theme={null}
call_end(req: Union[CallEndReq, dict[str, Any]]) → CallEndRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L363">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `call_read`

```python theme={null}
call_read(req: Union[CallReadReq, dict[str, Any]]) → CallReadRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L322">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `call_start`

```python theme={null}
call_start(req: Union[CallStartReq, dict[str, Any]]) → CallStartRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L345">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `call_start_batch`

```python theme={null}
call_start_batch(req: CallCreateBatchReq) → CallCreateBatchRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L395">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `call_update`

```python theme={null}
call_update(req: Union[CallUpdateReq, dict[str, Any]]) → CallUpdateRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L388">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `calls_delete`

```python theme={null}
calls_delete(req: Union[CallsDeleteReq, dict[str, Any]]) → CallsDeleteRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L368">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `calls_query`

```python theme={null}
calls_query(req: Union[CallsQueryReq, dict[str, Any]]) → CallsQueryRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L381">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `calls_query_stats`

```python theme={null}
calls_query_stats(
    req: Union[CallsQueryStatsReq, dict[str, Any]]
) → CallsQueryStatsRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L374">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `calls_query_stream`

```python theme={null}
calls_query_stream(
    req: Union[CallsQueryReq, dict[str, Any]]
) → Iterator[CallSchema]
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L649">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `completions_create`

```python theme={null}
completions_create(req: CompletionsCreateReq) → CompletionsCreateRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L659">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `completions_create_stream`

```python theme={null}
completions_create_stream(req: CompletionsCreateReq) → Iterator[dict[str, Any]]
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L635">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `cost_create`

```python theme={null}
cost_create(req: Union[CostCreateReq, dict[str, Any]]) → CostCreateRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L642">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `cost_purge`

```python theme={null}
cost_purge(req: Union[CostPurgeReq, dict[str, Any]]) → CostPurgeRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L628">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `cost_query`

```python theme={null}
cost_query(req: Union[CostQueryReq, dict[str, Any]]) → CostQueryRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L74">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `ensure_project_exists`

```python theme={null}
ensure_project_exists(entity: str, project: str) → EnsureProjectExistsRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L689">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `evaluate_model`

```python theme={null}
evaluate_model(req: EvaluateModelReq) → EvaluateModelRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L692">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `evaluation_status`

```python theme={null}
evaluation_status(req: EvaluationStatusReq) → EvaluationStatusRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L558">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `feedback_create`

```python theme={null}
feedback_create(
    req: Union[FeedbackCreateReq, dict[str, Any]]
) → FeedbackCreateRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L586">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `feedback_create_batch`

```python theme={null}
feedback_create_batch(req: FeedbackCreateBatchReq) → FeedbackCreateBatchRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L603">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `feedback_purge`

```python theme={null}
feedback_purge(req: Union[FeedbackPurgeReq, dict[str, Any]]) → FeedbackPurgeRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L596">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `feedback_query`

```python theme={null}
feedback_query(req: Union[FeedbackQueryReq, dict[str, Any]]) → FeedbackQueryRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L610">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `feedback_replace`

```python theme={null}
feedback_replace(
    req: Union[FeedbackReplaceReq, dict[str, Any]]
) → FeedbackReplaceRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/utils/retry.py#L540">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `file_content_read`

```python theme={null}
file_content_read(req: FileContentReadReq) → FileContentReadRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/utils/retry.py#L530">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `file_create`

```python theme={null}
file_create(req: FileCreateReq) → FileCreateRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L553">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `files_stats`

```python theme={null}
files_stats(req: FilesStatsReq) → FilesStatsRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L83">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>classmethod</kbd> `from_env`

```python theme={null}
from_env(should_batch: bool = False) → RemoteHTTPTraceServer
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L99">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `get`

```python theme={null}
get(url: str, *args: Any, **kwargs: Any) → Response
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L171">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `get_call_processor`

```python theme={null}
get_call_processor() → Optional[AsyncBatchProcessor]
```

Custom method not defined on the formal TraceServerInterface to expose the underlying call processor. Should be formalized in a client-side interface.

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L257">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `get_feedback_processor`

```python theme={null}
get_feedback_processor() → Optional[AsyncBatchProcessor]
```

Custom method not defined on the formal TraceServerInterface to expose the underlying feedback processor. Should be formalized in a client-side interface.

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L667">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `image_create`

```python theme={null}
image_create(req: ImageGenerationCreateReq) → ImageGenerationCreateRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L417">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `obj_create`

```python theme={null}
obj_create(req: Union[ObjCreateReq, dict[str, Any]]) → ObjCreateRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L434">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `obj_delete`

```python theme={null}
obj_delete(req: ObjDeleteReq) → ObjDeleteRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L424">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `obj_read`

```python theme={null}
obj_read(req: Union[ObjReadReq, dict[str, Any]]) → ObjReadRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L427">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `objs_query`

```python theme={null}
objs_query(req: Union[ObjQueryReq, dict[str, Any]]) → ObjQueryRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L404">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `op_create`

```python theme={null}
op_create(req: Union[OpCreateReq, dict[str, Any]]) → OpCreateRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L409">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `op_read`

```python theme={null}
op_read(req: Union[OpReadReq, dict[str, Any]]) → OpReadRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L412">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `ops_query`

```python theme={null}
ops_query(req: Union[OpQueryReq, dict[str, Any]]) → OpQueryRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L317">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `otel_export`

```python theme={null}
otel_export(req: OtelExportReq) → OtelExportRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L109">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `post`

```python theme={null}
post(url: str, *args: Any, **kwargs: Any) → Response
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L677">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `project_stats`

```python theme={null}
project_stats(req: ProjectStatsReq) → ProjectStatsRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L523">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `refs_read_batch`

```python theme={null}
refs_read_batch(req: Union[RefsReadBatchReq, dict[str, Any]]) → RefsReadBatchRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/utils/retry.py#L309">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `server_info`

```python theme={null}
server_info() → ServerInfoRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L89">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `set_auth`

```python theme={null}
set_auth(auth: tuple[str, str]) → None
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L439">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `table_create`

```python theme={null}
table_create(req: Union[TableCreateReq, dict[str, Any]]) → TableCreateRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L502">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `table_create_from_digests`

```python theme={null}
table_create_from_digests(
    req: Union[TableCreateFromDigestsReq, dict[str, Any]]
) → TableCreateFromDigestsRes
```

Create a table by specifying row digests instead of actual rows.

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L481">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `table_query`

```python theme={null}
table_query(req: Union[TableQueryReq, dict[str, Any]]) → TableQueryRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L495">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `table_query_stats`

```python theme={null}
table_query_stats(
    req: Union[TableQueryStatsReq, dict[str, Any]]
) → TableQueryStatsRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L513">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `table_query_stats_batch`

```python theme={null}
table_query_stats_batch(
    req: Union[TableQueryStatsReq, dict[str, Any]]
) → TableQueryStatsRes
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L488">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `table_query_stream`

```python theme={null}
table_query_stream(req: TableQueryReq) → Iterator[TableRowSchema]
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L446">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `table_update`

```python theme={null}
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.

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace_server_bindings/remote_http_trace_server.py#L682">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `threads_query_stream`

```python theme={null}
threads_query_stream(req: ThreadsQueryReq) → Iterator[ThreadSchema]
```
