> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# weave_client

> Python SDK reference for weave.trace.weave_client

export const SourceLink = ({url}) => <a href={url} target="_blank" rel="noopener noreferrer" className="source-link">
    Source
  </a>;

# API Overview

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L183" />

## <kbd>class</kbd> `CrossProjectRefError`

Raised when client-side digest computation encounters a ref to a different project that cannot be resolved to an internal ID.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L2606" />

## <kbd>class</kbd> `FlushStatus`

Status information about the current flush operation.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L177" />

## <kbd>class</kbd> `NoInternalProjectIDError`

Raised when client-side digest computation cannot proceed because no internal project ID has been resolved yet.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L2596" />

## <kbd>class</kbd> `PendingJobCounts`

Counts of pending jobs for each type.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L320" />

## <kbd>class</kbd> `WeaveClient`

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L345" />

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

```python theme={null}
__init__(
    entity: 'str',
    project: 'str',
    server: 'TraceServerClientInterface',
    ensure_project_exists: 'bool' = True
)
```

***

#### <kbd>property</kbd> num\_outstanding\_jobs

Returns the total number of pending jobs across all executors and the server.

This property can be used to check the progress of background tasks without blocking the main thread.

**Returns:**

* <b>`int`</b>:  The total number of pending jobs

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L1512" />

### <kbd>method</kbd> `add_cost`

```python theme={null}
add_cost(
    llm_id: 'str',
    prompt_token_cost: 'float',
    completion_token_cost: 'float',
    effective_date: 'datetime | None' = None,
    prompt_token_cost_unit: 'str | None' = 'USD',
    completion_token_cost_unit: 'str | None' = 'USD',
    provider_id: 'str | None' = 'default'
) → CostCreateRes
```

Add a cost to the current project.

**Examples:**

```python theme={null}
client.add_cost(llm_id="my_expensive_custom_model", prompt_token_cost=1, completion_token_cost=2)
client.add_cost(llm_id="my_expensive_custom_model", prompt_token_cost=500, completion_token_cost=1000, effective_date=datetime(1998, 10, 3))
```

**Args:**

* <b>`llm_id`</b>: The ID of the LLM. eg "gpt-4o-mini-2024-07-18"
* <b>`prompt_token_cost`</b>: The cost per prompt token. eg .0005
* <b>`completion_token_cost`</b>: The cost per completion token. eg .0015
* <b>`effective_date`</b>: Defaults to the current date. A datetime.datetime object.
* <b>`provider_id`</b>: The provider of the LLM. Defaults to "default". eg "openai"
* <b>`prompt_token_cost_unit`</b>: The unit of the cost for the prompt tokens. Defaults to "USD". (Currently unused, will be used in the future to specify the currency type for the cost eg "tokens" or "time")
* <b>`completion_token_cost_unit`</b>: The unit of the cost for the completion tokens. Defaults to "USD". (Currently unused, will be used in the future to specify the currency type for the cost eg "tokens" or "time")
  **Returns:**
  A CostCreateRes object. Which has one field called a list of tuples called ids. Each tuple contains the llm\_id and the id of the created cost object.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1220" />

### <kbd>method</kbd> `add_tags`

```python theme={null}
add_tags(obj_ref: 'ObjectRef | str', tags: 'list[str]') → None
```

Add tags to an object version.

**Args:**

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L1098" />

### <kbd>method</kbd> `clear_wandb_run_context`

```python theme={null}
clear_wandb_run_context() → None
```

Clear wandb run context override.

After calling this, calls will fall back to using the global wandb.run (if available) for run\_id and step information.

* <b>`obj_ref`</b>: Reference to the object version, either an ObjectRef or a weave /// URI string.
* <b>`tags`</b>: List of tag strings to add.
  **Examples:**

```python theme={null}
client = weave.init("my-project")
client.set_wandb_run_context(run_id="my-run-id", step=5)
# ... make some calls ...
client.clear_wandb_run_context()
# Now calls will use global wandb.run again
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L672" />

### <kbd>method</kbd> `create_call`

```python theme={null}
create_call(
    op: 'str | Op',
    inputs: 'dict[str, Any]',
    parent: 'Call | None' = None,
    attributes: 'dict[str, Any] | None' = None,
    display_name: 'str | Callable[[Call], str] | None' = None,
    use_stack: 'bool' = True,
    _call_id_override: 'str | None' = None,
    started_at: 'datetime | None' = None
) → Call
```

Create, log, and push a call onto the runtime stack.

**Args:**

* <b>`op`</b>: The operation producing the call, or the name of an anonymous operation.
* <b>`inputs`</b>: The inputs to the operation.
* <b>`parent`</b>: The parent call. If parent is not provided, the current run is used as the parent.
* <b>`display_name`</b>: The display name for the call. Defaults to None.
* <b>`attributes`</b>: The attributes for the call. Defaults to None.
* <b>`use_stack`</b>: Whether to push the call onto the runtime stack. Defaults to True.
* <b>`started_at`</b>: Override the call start time. If None, uses current time.
  **Returns:**
  The created Call object.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1174" />

### <kbd>method</kbd> `delete_all_object_versions`

```python theme={null}
delete_all_object_versions(object_name: 'str') → int
```

Delete all versions of an object.

**Args:**

* <b>`object_name`</b>: The name of the object whose versions should be deleted.
  **Returns:**
  The number of versions deleted.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1402" />

### <kbd>method</kbd> `delete_all_op_versions`

```python theme={null}
delete_all_op_versions(op_name: 'str') → int
```

Delete all versions of an op.

**Args:**

* <b>`op_name`</b>: The name of the op whose versions should be deleted.
  **Returns:**
  The number of versions deleted.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1139" />

### <kbd>method</kbd> `delete_call`

```python theme={null}
delete_call(call: 'Call') → None
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1148" />

### <kbd>method</kbd> `delete_calls`

```python theme={null}
delete_calls(call_ids: 'list[str]') → None
```

Delete calls by their IDs.

Deleting a call will also delete all of its children.

**Args:**

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1164" />

### <kbd>method</kbd> `delete_object_version`

```python theme={null}
delete_object_version(object: 'ObjectRef') → None
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1193" />

### <kbd>method</kbd> `delete_object_versions`

```python theme={null}
delete_object_versions(object_name: 'str', digests: 'list[str]') → int
```

Delete specific versions of an object.

* <b>`call_ids`</b>: A list of call IDs to delete. Ex: \["2F0193e107-8fcf-7630-b576-977cc3062e2e"]
  **Args:**

* <b>`object_name`</b>: The name of the object whose versions should be deleted.

* <b>`digests`</b>: List of digests to delete. Can include aliases like "latest" or "v0".
  **Returns:**
  The number of versions deleted.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1392" />

### <kbd>method</kbd> `delete_op_version`

```python theme={null}
delete_op_version(op: 'OpRef') → None
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1069" />

### <kbd>method</kbd> `fail_call`

```python theme={null}
fail_call(call: 'Call', exception: 'BaseException') → None
```

Fail a call with an exception. This is a convenience method for finish\_call.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L2410" />

### <kbd>method</kbd> `finish`

```python theme={null}
finish(
    use_progress_bar: 'bool' = True,
    callback: 'Callable[[FlushStatus], None] | None' = None
) → None
```

Flushes all background tasks to ensure they are processed.

This method blocks until all currently enqueued jobs are processed, displaying a progress bar to show the status of the pending tasks. It ensures parallel processing during main thread execution and can improve performance when user code completes before data has been uploaded to the server.

**Args:**

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L893" />

### <kbd>method</kbd> `finish_call`

```python theme={null}
finish_call(
    call: 'Call',
    output: 'Any' = None,
    exception: 'BaseException | None' = None,
    op: 'Op | None' = None,
    ended_at: 'datetime | None' = None
) → None
```

Finalize a call and persist its results.

Any values present in `call.summary` are deep-merged with computed summary statistics (e.g. usage and status counts) before being written to the database.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L2442" />

### <kbd>method</kbd> `flush`

```python theme={null}
flush() → None
```

Flushes background asynchronous tasks, safe to call multiple times.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L419" />

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

```python theme={null}
get(ref: 'ObjectRef', objectify: 'bool' = True) → Any
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1349" />

### <kbd>method</kbd> `get_aliases`

```python theme={null}
get_aliases(obj_ref: 'ObjectRef | str') → list[str]
```

Get aliases for an object version.

* <b>`use_progress_bar`</b>: Whether to display a progress bar during flush.  Set to False for environments where a progress bar  would not render well (e.g., CI environments).

* <b>`callback`</b>: Optional callback function that receives status updates.  Overrides use\_progress\_bar.
  **Args:**

* <b>`obj_ref`</b>: Reference to the object version, either an ObjectRef or a weave /// URI string.
  **Returns:**
  List of alias strings. Includes the virtual "latest" alias if the object version is the latest.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L635" />

### <kbd>method</kbd> `get_call`

```python theme={null}
get_call(
    call_id: 'str',
    include_costs: 'bool' = False,
    include_feedback: 'bool' = False,
    columns: 'list[str] | None' = None
) → WeaveObject
```

Get a single call by its ID.

**Args:**

* <b>`call_id`</b>: The ID of the call to get.
* <b>`include_costs`</b>: If true, cost info is included at summary.weave
* <b>`include_feedback`</b>: If true, feedback info is included at summary.weave.feedback
* <b>`columns`</b>: A list of columns to include in the response. If None,  all columns are included. Specifying fewer columns may be more performant. Some columns are always included  id, project\_id, trace\_id, op\_name, started\_at
  **Returns:**
  A call object.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L555" />

### <kbd>method</kbd> `get_calls`

```python theme={null}
get_calls(
    filter: 'CallsFilterLike | None' = None,
    limit: 'int | None' = None,
    offset: 'int | None' = None,
    sort_by: 'list[SortByLike] | None' = None,
    query: 'QueryLike | None' = None,
    include_costs: 'bool' = False,
    include_feedback: 'bool' = False,
    include_storage_size: 'bool' = False,
    include_total_storage_size: 'bool' = False,
    columns: 'list[str] | None' = None,
    expand_columns: 'list[str] | None' = None,
    return_expanded_column_values: 'bool' = True,
    scored_by: 'str | list[str] | None' = None,
    page_size: 'int' = 1000
) → CallsIter
```

Retrieve a list of traced calls (operations) for this project.

This method provides a powerful and flexible interface for querying trace data. It supports pagination, filtering, sorting, field projection, and scoring metadata, and can be used to power custom trace UIs or analysis tools.

Performance Tip: Specify `columns` and use `filter` or `query` to reduce result size.

**Args:**

* <b>`filter`</b>:  High-level filter for narrowing results by fields like `op_name`, `parent_ids`, etc.
* <b>`limit`</b>:  Maximum number of calls to return.
* <b>`offset`</b>:  Number of calls to skip before returning results (used for pagination).
* <b>`sort_by`</b>:  List of fields to sort the results by (e.g., `started_at desc`).
* <b>`query`</b>:  A mongo-like expression for advanced filtering. Not all Mongo operators are supported.
* <b>`include_costs`</b>:  If True, includes token/cost info in `summary.weave`.
* <b>`include_feedback`</b>:  If True, includes feedback in `summary.weave.feedback`.
* <b>`include_storage_size`</b>:  If True, includes the storage size for a call.
* <b>`include_total_storage_size`</b>:  If True, includes the total storage size for a trace.
* <b>`columns`</b>:  List of fields to return per call. Reducing this can significantly improve performance.  (Some fields like `id`, `trace_id`, `op_name`, and `started_at` are always included.)
* <b>`scored_by`</b>:  Filter by one or more scorers (name or ref URI). Multiple scorers are AND-ed.
* <b>`page_size`</b>:  Number of calls fetched per page. Tune this for performance in large queries.

**Returns:**

* <b>`CallsIter`</b>:  An iterator over `Call` objects. Supports slicing, iteration, and `.to_pandas()`.

**Example:**

```python theme={null}
calls = client.get_calls(
     filter=CallsFilter(op_names=["my_op"]),
     columns=["inputs", "output", "summary"],
     limit=100,
)
for call in calls:
     print(call.inputs, call.output)
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L481" />

### <kbd>method</kbd> `get_evaluation`

```python theme={null}
get_evaluation(uri: 'str') → Evaluation
```

Retrieve a specific Evaluation object by its URI.

Evaluation URIs typically follow the format: `weave:///entity/project/object/Evaluation:version`

You can also get the evaluation by its "friendly" name: get\_evaluation("Evaluation:v1")

**Args:**

* <b>`uri`</b> (str):  The unique resource identifier of the evaluation to retrieve.

**Returns:**

* <b>`Evaluation`</b>:  The Evaluation object corresponding to the provided URI.

**Raises:**

* <b>`TypeError`</b>:  If the object at the URI is not an Evaluation instance.
* <b>`ValueError`</b>:  If the URI is invalid or the object cannot be found.

**Examples:**

```python theme={null}
client = weave.init("my-project")
evaluation = client.get_evaluation("weave:///entity/project/object/my-eval:v1")
print(evaluation.name)
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L516" />

### <kbd>method</kbd> `get_evaluations`

```python theme={null}
get_evaluations() → list[Evaluation]
```

Retrieve all Evaluation objects from the current project.

**Returns:**

* <b>`list[Evaluation]`</b>:  A list of all Evaluation objects in the current project.  Empty list if no evaluations are found or if all conversions fail.

**Examples:**

```python theme={null}
client = weave.init("my-project")
evaluations = client.get_evaluations()
print(f"Found {len(evaluations)} evaluations")
for eval in evaluations:
     print(f"Evaluation: {eval.name}")
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L1421" />

### <kbd>method</kbd> `get_feedback`

```python theme={null}
get_feedback(
    query: 'Query | str | None' = None,
    reaction: 'str | None' = None,
    offset: 'int' = 0,
    limit: 'int' = 100
) → FeedbackQuery
```

Query project for feedback.

**Examples:**

```python theme={null}
# Fetch a specific feedback object.
# Note that this still returns a collection, which is expected
# to contain zero or one item(s).
client.get_feedback("1B4082A3-4EDA-4BEB-BFEB-2D16ED59AA07")

# Find all feedback objects with a specific reaction.
client.get_feedback(reaction="👍", limit=10)

# Find all feedback objects with a specific feedback type with
# mongo-style query.
from weave.trace_server.interface.query import Query

query = Query(
    **{
        "$expr": {
            "$eq": [
                {"$getField": "feedback_type"},
                {"$literal": "wandb.reaction.1"},
            ],
        }
    }
)
client.get_feedback(query=query)
```

**Args:**

* <b>`query`</b>: A mongo-style query expression. For convenience, also accepts a feedback UUID string.
* <b>`reaction`</b>: For convenience, filter by a particular reaction emoji.
* <b>`offset`</b>: The offset to start fetching feedback objects from.
* <b>`limit`</b>: The maximum number of feedback objects to fetch.
  **Returns:**
  A FeedbackQuery object.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1258" />

### <kbd>method</kbd> `get_tags`

```python theme={null}
get_tags(obj_ref: 'ObjectRef | str') → list[str]
```

Get tags for an object version.

**Args:**

* <b>`obj_ref`</b>: Reference to the object version, either an ObjectRef or a weave /// URI string.
  **Returns:**
  List of tag strings. Returns empty list if the object version has no tags.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1281" />

### <kbd>method</kbd> `get_tags_and_aliases`

```python theme={null}
get_tags_and_aliases(obj_ref: 'ObjectRef | str') → tuple[list[str], list[str]]
```

Get both tags and aliases for an object version in a single call.

**Args:**

* <b>`obj_ref`</b>: Reference to the object version, either an ObjectRef or a weave /// URI string.
  **Returns:**
  A tuple of (tags, aliases). Each is a list of strings. Returns empty lists if the object version has no tags or aliases.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1382" />

### <kbd>method</kbd> `list_aliases`

```python theme={null}
list_aliases() → list[str]
```

List all distinct aliases in the project.

**Returns:**
List of all alias strings in the project.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1372" />

### <kbd>method</kbd> `list_tags`

```python theme={null}
list_tags() → list[str]
```

List all distinct tags in the project.

**Returns:**
List of all tag strings in the project.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L1558" />

### <kbd>method</kbd> `purge_costs`

```python theme={null}
purge_costs(ids: 'list[str] | str') → None
```

Purge costs from the current project.

**Examples:**

```python theme={null}
client.purge_costs([ids])
client.purge_costs(ids)
```

**Args:**

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L1582" />

### <kbd>method</kbd> `query_costs`

```python theme={null}
query_costs(
    query: 'Query | str | None' = None,
    llm_ids: 'list[str] | None' = None,
    offset: 'int' = 0,
    limit: 'int' = 100
) → list[CostQueryOutput]
```

Query project for costs.

* <b>`ids`</b>: The cost IDs to purge. Can be a single ID or a list of IDs.
  **Examples:**

```python theme={null}
# Fetch a specific cost object.
# Note that this still returns a collection, which is expected
# to contain zero or one item(s).
client.query_costs("1B4082A3-4EDA-4BEB-BFEB-2D16ED59AA07")

# Find all cost objects with a specific reaction.
client.query_costs(llm_ids=["gpt-4o-mini-2024-07-18"], limit=10)
```

**Args:**

* <b>`query`</b>: A mongo-style query expression. For convenience, also accepts a cost UUID string.
* <b>`llm_ids`</b>: For convenience, filter for a set of llm\_ids.
* <b>`offset`</b>: The offset to start fetching cost objects from.
* <b>`limit`</b>: The maximum number of cost objects to fetch.
  **Returns:**
  A CostQuery object.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1328" />

### <kbd>method</kbd> `remove_aliases`

```python theme={null}
remove_aliases(obj_ref: 'ObjectRef | str', alias: 'str | list[str]') → None
```

Remove one or more aliases from an object.

**Args:**

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1239" />

### <kbd>method</kbd> `remove_tags`

```python theme={null}
remove_tags(obj_ref: 'ObjectRef | str', tags: 'list[str]') → None
```

Remove tags from an object version.

* <b>`obj_ref`</b>: Reference to the object, either an ObjectRef or a weave /// URI string (digest is not used since aliases are object-scoped).
* <b>`alias`</b>: An alias name or list of alias names to remove.
  **Args:**

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L390" />

### <kbd>method</kbd> `save`

```python theme={null}
save(val: 'Any', name: 'str', branch: 'str' = 'latest') → Any
```

Do not call directly, use weave.publish() instead.

* <b>`obj_ref`</b>: Reference to the object version, either an ObjectRef or a weave /// URI string.

* <b>`tags`</b>: List of tag strings to remove.
  **Args:**

* <b>`val`</b>: The object to save.

* <b>`name`</b>: The name to save the object under.

* <b>`branch`</b>: The branch to save the object under. Defaults to "latest".
  **Returns:**
  A deserialized version of the saved object.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/telemetry/trace_sentry.py#L1306" />

### <kbd>method</kbd> `set_aliases`

```python theme={null}
set_aliases(obj_ref: 'ObjectRef | str', alias: 'str | list[str]') → None
```

Set one or more aliases for an object version.

**Args:**

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L1074" />

### <kbd>method</kbd> `set_wandb_run_context`

```python theme={null}
set_wandb_run_context(run_id: 'str', step: 'int | None' = None) → None
```

Override wandb run\_id and step for calls created by this client.

This allows you to associate Weave calls with a specific WandB run that is not bound to the global wandb.run symbol.

* <b>`obj_ref`</b>: Reference to the object version, either an ObjectRef or a weave /// URI string.

* <b>`alias`</b>: An alias name or list of alias names to set (e.g., "production").
  **Args:**

* <b>`run_id`</b>: The run ID (not including entity/project prefix).  The client will automatically add the entity/project prefix.

* <b>`step`</b>: The step number to use for calls. If None, step will not be set.
  **Examples:**

```python theme={null}
client = weave.init("my-project")
client.set_wandb_run_context(run_id="my-run-id", step=5)
# Now all calls will be associated with entity/project/my-run-id at step 5

# Or without a step
client.set_wandb_run_context(run_id="my-run-id")
# Calls will be associated with entity/project/my-run-id with no step
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L231" />

### <kbd>function</kbd> `get_obj_name`

```python theme={null}
get_obj_name(val: 'Any') → str
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L2623" />

### <kbd>function</kbd> `get_parallelism_settings`

```python theme={null}
get_parallelism_settings() → tuple[int | None, int | None]
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L262" />

### <kbd>function</kbd> `map_to_refs`

```python theme={null}
map_to_refs(obj: 'Any') → Any
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L192" />

### <kbd>function</kbd> `print_call_link`

```python theme={null}
print_call_link(call: 'Call') → None
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L2662" />

### <kbd>function</kbd> `redact_sensitive_keys`

```python theme={null}
redact_sensitive_keys(obj: 'Any') → Any
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.35/weave/trace/weave_client.py#L2698" />

### <kbd>function</kbd> `sanitize_object_name`

```python theme={null}
sanitize_object_name(name: 'str') → str
```
