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

# weave_client

> weave.trace.weave_client Python SDK 레퍼런스

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

<h1 id="api-overview">
  API 개요
</h1>

***

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

<h2 id="class-crossprojectreferror">
  <kbd>클래스</kbd> `CrossProjectRefError`
</h2>

클라이언트 측 digest 계산 중 다른 프로젝트를 가리키는 ref를 만나 내부 ID로 해결할 수 없을 때 발생합니다.

***

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

<h2 id="class-flushstatus">
  <kbd>클래스</kbd> `FlushStatus`
</h2>

현재 플러시 오퍼레이션에 대한 상태 정보입니다.

***

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

<h2 id="class-nointernalprojectiderror">
  <kbd>클래스</kbd> `NoInternalProjectIDError`
</h2>

내부 프로젝트 ID가 아직 확인되지 않아 클라이언트 측 digest 계산을 진행할 수 없을 때 발생합니다.

***

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

<h2 id="class-pendingjobcounts">
  <kbd>클래스</kbd> `PendingJobCounts`
</h2>

유형별 대기 중인 작업 수입니다.

***

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

<h2 id="class-weaveclient">
  <kbd>클래스</kbd> `WeaveClient`
</h2>

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

<h3 id="method-__init__">
  <kbd>방법</kbd> `__init__`
</h3>

```python theme={"system"}
__init__(
    entity: 'str',
    project: 'str',
    server: 'TraceServerClientInterface',
    ensure_project_exists: 'bool' = True,
    postprocess_inputs: 'PostprocessInputsFunc | None' = None,
    postprocess_output: 'PostprocessOutputFunc | None' = None,
    attributes: 'dict[str, Any] | None' = None,
    api_key: 'str | None' = None
)
```

***

<h4 id="property-num_outstanding_jobs">
  <kbd>속성</kbd> num\_outstanding\_jobs
</h4>

모든 실행기와 서버에서 대기 중인 작업의 총개수를 반환합니다.

이 속성을 사용하면 메인 스레드를 블로킹하지 않고도 백그라운드 작업의 진행 상황을 확인할 수 있습니다.

**반환값:**

* <b>`int`</b>:  대기 중인 작업의 총개수

***

<h4 id="property-project_id">
  <kbd>속성</kbd> project\_id
</h4>

***

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

<h3 id="method-add_calls_to_annotation_queue">
  <kbd>방법</kbd> `add_calls_to_annotation_queue`
</h3>

```python theme={"system"}
add_calls_to_annotation_queue(
    queue_id: 'str',
    call_ids: 'list[str]',
    display_fields: 'list[str]'
) → AnnotationQueueAddCallsRes
```

annotation 큐에 Call을 추가합니다.

**인수:**

***

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

<h3 id="method-add_cost">
  <kbd>방법</kbd> `add_cost`
</h3>

```python theme={"system"}
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
```

현재 프로젝트에 비용을 추가합니다.

* <b>`queue_id`</b>: annotation 큐 ID입니다.
* <b>`call_ids`</b>: 큐에 추가할 call ID입니다.
* <b>`display_fields`</b>: 검토자에게 표시할 JSON 경로입니다(예: `inputs.prompt` 또는 `output.text`).
  **예시:**

```python theme={"system"}
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))
```

**인수:**

* <b>`llm_id`</b>: LLM의 ID입니다. 예: "gpt-4o-mini-2024-07-18"
* <b>`prompt_token_cost`</b>: 프롬프트 토큰당 비용입니다. 예: .0005
* <b>`completion_token_cost`</b>: 완료 토큰당 비용입니다. 예: .0015
* <b>`effective_date`</b>: 기본값은 현재 날짜입니다. datetime.datetime 객체입니다.
* <b>`provider_id`</b>: LLM의 공급자입니다. 기본값은 "default"입니다. 예: "openai"
* <b>`prompt_token_cost_unit`</b>: 프롬프트 토큰 비용의 단위입니다. 기본값은 "USD"입니다. (현재 사용되지 않으며, 향후 비용의 통화 유형을 지정하는 데 사용될 예정입니다. 예: "tokens" 또는 "time")
* <b>`completion_token_cost_unit`</b>: 완료 토큰 비용의 단위입니다. 기본값은 "USD"입니다. (현재 사용되지 않으며, 향후 비용의 통화 유형을 지정하는 데 사용될 예정입니다. 예: "tokens" 또는 "time")
  **반환값:**
  CostCreateRes 객체입니다. ids라는 이름의 튜플 목록이라는 하나의 필드를 가지고 있습니다. 각 튜플은 llm\_id와 생성된 비용 객체의 id를 포함합니다.

***

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

<h3 id="method-add_tags">
  <kbd>방법</kbd> `add_tags`
</h3>

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

객체 버전에 태그를 추가합니다.

**인수:**

***

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

<h3 id="method-clear_wandb_run_context">
  <kbd>방법</kbd> `clear_wandb_run_context`
</h3>

```python theme={"system"}
clear_wandb_run_context() → None
```

wandb run 컨텍스트 재정의를 해제합니다.

이 방법을 호출하면 이후의 Call은 run\_id 및 step 정보에 전역 wandb.run(사용 가능한 경우)을 다시 사용합니다.

* <b>`obj_ref`</b>: 객체 버전에 대한 레퍼런스로, ObjectRef 또는 weave /// URI string입니다.
* <b>`tags`</b>: 추가할 태그 string의 목록입니다.
  **예시:**

```python theme={"system"}
client = weave.init("my-project")
client.set_wandb_run_context(run_id="my-run-id", step=5)
# ... 몇 가지 Call 수행 ...
client.clear_wandb_run_context()
# 이제 Call은 다시 전역 wandb.run을 사용합니다
```

***

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

<h3 id="method-create_annotation_queue">
  <kbd>방법</kbd> `create_annotation_queue`
</h3>

```python theme={"system"}
create_annotation_queue(
    name: 'str',
    scorer_refs: 'list[str]',
    description: 'str' = ''
) → str
```

이 프로젝트의 annotation 큐를 생성합니다.

**인수:**

* <b>`name`</b>: 큐의 표시 이름입니다.
* <b>`scorer_refs`</b>: 리뷰어가 작성할 Scorer/어노테이션 필드의 Weave Ref입니다.
* <b>`description`</b>: 리뷰어 가이드라인 또는 큐 설명입니다(선택).
  **반환값:**
  생성된 annotation 큐의 ID입니다.

***

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

<h3 id="method-create_call">
  <kbd>방법</kbd> `create_call`
</h3>

```python theme={"system"}
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
```

런타임 스택에 call을 생성하고 로깅하며 push합니다.

**인수:**

* <b>`op`</b>: call을 생성하는 오퍼레이션 또는 익명 오퍼레이션의 이름입니다.
* <b>`inputs`</b>: 오퍼레이션에 대한 입력입니다.
* <b>`parent`</b>: 부모 call입니다. parent가 제공되지 않으면 current run이 부모로 사용됩니다.
* <b>`display_name`</b>: call의 표시 이름입니다. 기본값은 None입니다.
* <b>`attributes`</b>: call의 속성입니다. 기본값은 None입니다.
* <b>`use_stack`</b>: call을 런타임 스택에 push할지 여부입니다. 기본값은 True입니다.
* <b>`started_at`</b>: call 시작 시간을 재정의합니다. None이면 현재 시간을 사용합니다.
  **반환값:**
  생성된 Call 객체입니다.

***

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

<h3 id="method-delete_all_object_versions">
  <kbd>방법</kbd> `delete_all_object_versions`
</h3>

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

객체의 모든 버전을 삭제합니다.

**인수:**

* <b>`object_name`</b>: 버전을 삭제할 객체의 이름입니다.
  **반환값:**
  삭제된 버전의 수입니다.

***

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

<h3 id="method-delete_all_op_versions">
  <kbd>방법</kbd> `delete_all_op_versions`
</h3>

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

op의 모든 버전을 삭제합니다.

**인수:**

* <b>`op_name`</b>: 버전을 삭제할 op의 이름입니다.
  **반환값:**
  삭제된 버전의 수입니다.

***

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

<h3 id="method-delete_annotation_queue">
  <kbd>방법</kbd> `delete_annotation_queue`
</h3>

```python theme={"system"}
delete_annotation_queue(queue_id: 'str') → AnnotationQueueSchema
```

annotation 큐를 소프트 삭제합니다.

***

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

<h3 id="method-delete_call">
  <kbd>방법</kbd> `delete_call`
</h3>

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

***

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

<h3 id="method-delete_calls">
  <kbd>방법</kbd> `delete_calls`
</h3>

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

ID로 Call을 삭제합니다.

Call을 삭제하면 해당 Call의 모든 하위 항목도 함께 삭제됩니다.

**인수:**

***

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

<h3 id="method-delete_object_version">
  <kbd>방법</kbd> `delete_object_version`
</h3>

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

***

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

<h3 id="method-delete_object_versions">
  <kbd>방법</kbd> `delete_object_versions`
</h3>

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

객체의 특정 버전을 삭제합니다.

* <b>`call_ids`</b>: 삭제할 call ID의 목록입니다. 예: \["2F0193e107-8fcf-7630-b576-977cc3062e2e"]
  **인수:**

* <b>`object_name`</b>: 삭제할 버전이 있는 객체의 이름입니다.

* <b>`digests`</b>: 삭제할 digest 목록입니다. "latest" 또는 "v0"과 같은 별칭을 포함할 수 있습니다.
  **반환값:**
  삭제된 버전의 수입니다.

***

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

<h3 id="method-delete_op_version">
  <kbd>방법</kbd> `delete_op_version`
</h3>

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

***

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

<h3 id="method-fail_call">
  <kbd>방법</kbd> `fail_call`
</h3>

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

예외로 call을 실패 처리합니다. 이는 finish\_call을 위한 편의 방법입니다.

***

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

<h3 id="method-finish">
  <kbd>방법</kbd> `finish`
</h3>

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

모든 백그라운드 작업을 플러시하여 처리되도록 합니다.

이 방법은 현재 큐에 대기 중인 모든 작업이 처리될 때까지 블록하며, 대기 중인 작업의 상태를 표시하는 진행률 표시줄을 표시합니다. 메인 스레드 실행 중 병렬 처리를 보장하며, 사용자 코드가 서버에 데이터가 업로드되기 전에 완료될 때 성능이 향상되도록 할 수 있습니다.

**인수:**

***

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

<h3 id="method-finish_call">
  <kbd>방법</kbd> `finish_call`
</h3>

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

call을 완료하고 결과를 저장합니다.

`call.summary`에 있는 모든 값은 데이터베이스에 기록되기 전에 계산된 요약 통계(예: 사용 및 상태 수)와 깊이 병합됩니다.

***

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

<h3 id="method-flush">
  <kbd>방법</kbd> `flush`
</h3>

```python theme={"system"}
flush() → None
```

백그라운드 비동기 작업을 플러시하며, 여러 번 호출해도 안전합니다.

***

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

<h3 id="method-get">
  <kbd>방법</kbd> `get`
</h3>

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

***

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

<h3 id="method-get_agent_custom_attributes">
  <kbd>방법</kbd> `get_agent_custom_attributes`
</h3>

```python theme={"system"}
get_agent_custom_attributes(
    query: 'Query | None' = None,
    started_after: 'datetime | None' = None,
    started_before: 'datetime | None' = None,
    limit: 'int' = 200,
    offset: 'int' = 0
) → AgentCustomAttrsSchemaRes
```

일치하는 에이전트 span에서 유형이 지정된 맞춤형 속성 키를 찾습니다.

필터/열 선택기를 채우는 데 유용합니다. 선택한 span에서 발견된 맞춤형 속성 키(및 해당 값의 유형)를 반환합니다.

* <b>`use_progress_bar`</b>: 플러시 중에 진행률 표시줄을 표시할지 여부입니다.  진행률 표시줄이 제대로 렌더링되지 않는 환경(예: CI 환경)에서는 False로 설정하세요.

* <b>`callback`</b>: 상태 업데이트를 받는 선택적 callback 함수입니다.  use\_progress\_bar를 재정의합니다.
  **인수:**

* <b>`query`</b>: span을 제한하는 Mongo 스타일 필터 표현식입니다.

* <b>`started_after`</b>: 이 시간 이후(해당 시간 포함)에 시작된 span만 고려합니다.

* <b>`started_before`</b>: 이 시간 전에 시작된 span만 고려합니다.

* <b>`limit`</b>: 반환할 속성 키의 최대 개수입니다.

* <b>`offset`</b>: 건너뛸 키의 개수입니다(페이지 매김용).
  **반환값:**
  `attributes`와 `has_more`가 포함된 `AgentCustomAttrsSchemaRes`입니다.

**예시:**

```python theme={"system"}
client = weave.init("entity/project")
resp = client.get_agent_custom_attributes()
for attr in resp.attributes:
     print(attr.key, attr.value_type, attr.span_count)
```

***

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

<h3 id="method-get_agent_span_stats">
  <kbd>방법</kbd> `get_agent_span_stats`
</h3>

```python theme={"system"}
get_agent_span_stats(
    start: 'datetime',
    metrics: 'list[AgentSpanStatsMetricSpec]',
    end: 'datetime | None' = None,
    query: 'Query | None' = None,
    group_by: 'list[AgentGroupByRef] | None' = None,
    granularity: 'int | None' = None,
    timezone: 'str' = 'UTC'
) → AgentSpanStatsRes
```

에이전트 span에 대해 chart-ready aggregations를 계산합니다.

일반적인 시계열 / 그룹화된 메트릭 경우를 다룹니다. 숫자 버킷 통계 또는 기타 Advanced Options의 경우 `server.agent_spans_stats`를 직접 호출하세요.

**인수:**

* <b>`start`</b>: 시간 범위의 시작(포함).
* <b>`metrics`</b>: 집계할 하나 이상의 메트릭(예: 토큰 합계).
* <b>`end`</b>: 시간 범위의 끝. 생략 시 현재 시간으로 기본 설정됩니다.
* <b>`query`</b>: span을 제한하는 Mongo 스타일 필터 표현식입니다.
* <b>`group_by`</b>: 집계를 그룹화할 span 필드입니다.
* <b>`granularity`</b>: 시계열 통계를 위한 시간 버킷 너비(초).
* <b>`timezone`</b>: 시간 버킷을 정렬하는 데 사용되는 IANA 시간대.
  **반환값:**
  `columns`와 `rows`가 포함된 `AgentSpanStatsRes`.

**예시:**

```python theme={"system"}
client = weave.init("entity/project")
resp = client.get_agent_span_stats(start=start, metrics=metrics)
for row in resp.rows:
     print(row)
```

***

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

<h3 id="method-get_agent_spans">
  <kbd>방법</kbd> `get_agent_spans`
</h3>

```python theme={"system"}
get_agent_spans(
    agent_name: 'str | None' = None,
    query: 'Query | None' = None,
    sort_by: 'list[AgentSortBy] | None' = None,
    limit: 'int | None' = None,
    offset: 'int | None' = None,
    page_size: 'int' = 100
) → AgentSpansIter
```

이 프로젝트의 에이전트 span을 쿼리하며, 선택적으로 필터링할 수 있습니다.

순회할 때 페이지를 가져오는 `PaginatedIterator`를 반환합니다(`get_calls`와 동일). `len(...)`은 전체 span 수를 알려줍니다.

**인수:**

* <b>`agent_name`</b>: 설정하면 결과를 이 에이전트로 제한합니다(`agent_name` 필드에 대한 `query`를 간편하게  지정하는 방법).
* <b>`query`</b>: Mongo 스타일 필터 표현식입니다. `agent_name`과 함께 제공하면  `$and`로 결합됩니다.
* <b>`sort_by`</b>: 결과를 정렬할 기준 필드입니다.
* <b>`limit`</b>: 생성할 span의 최대 개수입니다. `None`이면 모두 생성합니다.
* <b>`offset`</b>: 생성 전에 건너뛸 span의 개수입니다(페이지 매김용).
* <b>`page_size`</b>: 요청당 가져올 span의 개수입니다.
  **반환값:**
  `AgentSpanSchema`를 순회하는 `PaginatedIterator`입니다.

**예시:**

```python theme={"system"}
client = weave.init("entity/project")
for span in client.get_agent_spans(agent_name="my-agent"):
     print(span.span_id, span.span_name, span.input_tokens)
```

***

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

<h3 id="method-get_agent_turn">
  <kbd>방법</kbd> `get_agent_turn`
</h3>

```python theme={"system"}
get_agent_turn(
    trace_id: 'str',
    include_feedback: 'bool' = False
) → AgentTraceChatRes
```

단일 턴의 구조화된 채팅 뷰(메시지)를 조회합니다.

턴 하나는 트레이스 하나에 해당합니다.

**인수:**

* <b>`trace_id`</b>: 채팅 뷰를 가져올 트레이스입니다.
* <b>`include_feedback`</b>: true이면 메시지에 대한 피드백을 포함합니다.
  **반환값:**
  해당 턴의 순서대로 정렬된 `messages`를 포함하는 `AgentTraceChatRes`입니다.

**예시:**

```python theme={"system"}
client = weave.init("entity/project")
resp = client.get_agent_turn(trace_id="...", include_feedback=True)
for message in resp.messages:
     print(message.type)
```

***

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

<h3 id="method-get_agent_turns">
  <kbd>방법</kbd> `get_agent_turns`
</h3>

```python theme={"system"}
get_agent_turns(
    conversation_id: 'str',
    limit: 'int' = 50,
    offset: 'int' = 0,
    include_feedback: 'bool' = False
) → AgentConversationChatRes
```

대화의 multi-turn 채팅 뷰를 조회합니다.

각 턴은 하나의 트레이스에 해당합니다.

**인수:**

* <b>`conversation_id`</b>: 턴을 가져올 대화입니다.
* <b>`limit`</b>: 반환할 턴의 최대 개수입니다.
* <b>`offset`</b>: 건너뛸 가장 최근 턴의 개수입니다(페이지 매김용).
* <b>`include_feedback`</b>: true인 경우 메시지에 대한 피드백을 포함합니다.
  **반환값:**
  정렬된 `turns`가 포함된 `AgentConversationChatRes`입니다.

**예시:**

```python theme={"system"}
client = weave.init("entity/project")
resp = client.get_agent_turns(conversation_id="...", limit=20)
for turn in resp.turns:
     for message in turn.messages:
         print(message.type)
```

***

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

<h3 id="method-get_agent_versions">
  <kbd>방법</kbd> `get_agent_versions`
</h3>

```python theme={"system"}
get_agent_versions(
    agent_name: 'str',
    sort_by: 'list[AgentSortBy] | None' = None,
    limit: 'int | None' = None,
    offset: 'int | None' = None,
    page_size: 'int' = 100
) → AgentVersionsIter
```

단일 에이전트의 버전 목록을 집계 통계와 함께 조회합니다.

순회할 때 페이지를 가져오는 `PaginatedIterator`를 반환합니다(`get_calls`와 동일). `len(...)`은 전체 버전 수를 반환합니다.

**인수:**

* <b>`agent_name`</b>: 버전 목록을 조회할 에이전트입니다.
* <b>`sort_by`</b>: 결과를 정렬할 기준 필드입니다.
* <b>`limit`</b>: 반환할 최대 버전 수입니다. `None`이면 모두 반환합니다.
* <b>`offset`</b>: 반환하기 전에 건너뛸 버전 수입니다(페이지 매김용).
* <b>`page_size`</b>: 요청당 가져올 버전 수입니다.
  **반환값:**
  `AgentVersionSchema`를 순회하는 `PaginatedIterator`입니다.

**예시:**

```python theme={"system"}
client = weave.init("entity/project")
for version in client.get_agent_versions(agent_name="my-agent"):
     print(version.agent_version, version.total_input_tokens)
```

***

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

<h3 id="method-get_agents">
  <kbd>방법</kbd> `get_agents`
</h3>

```python theme={"system"}
get_agents(
    agent_name: 'str | None' = None,
    sort_by: 'list[AgentSortBy] | None' = None,
    limit: 'int | None' = None,
    offset: 'int | None' = None,
    page_size: 'int' = 100
) → AgentsIter
```

이 프로젝트의 에이전트 목록을 집계된 통계와 함께 조회합니다.

사용하면서 자동으로 페이지를 가져오는 `PaginatedIterator`(`get_calls`와 유사)를 반환합니다. `len(...)`은 전체 에이전트 수를 알려주며, 인덱싱과 슬라이싱을 지원합니다.

**인수:**

* <b>`agent_name`</b>: 설정하면 결과를 이 에이전트로 제한합니다.
* <b>`sort_by`</b>: 결과를 정렬할 기준 필드입니다.
* <b>`limit`</b>: 반환할 에이전트의 최대 수입니다. `None`이면 모두 반환합니다.
* <b>`offset`</b>: 반환하기 전에 건너뛸 에이전트 수입니다(페이지 매김용).
* <b>`page_size`</b>: 요청당 가져올 에이전트 수입니다.
  **반환값:**
  `AgentSchema`를 순회하는 `PaginatedIterator`입니다.

**예시:**

```python theme={"system"}
client = weave.init("entity/project")
for agent in client.get_agents(limit=20):
     print(agent.agent_name, agent.total_input_tokens)
```

***

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

<h3 id="method-get_aliases">
  <kbd>방법</kbd> `get_aliases`
</h3>

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

객체 버전의 별칭을 조회합니다.

**인수:**

* <b>`obj_ref`</b>: 객체 버전에 대한 레퍼런스이며, ObjectRef 또는 weave /// URI string입니다.
  **반환값:**
  별칭 string의 목록. 객체 버전이 최신인 경우 가상 "latest" 별칭을 포함합니다.

***

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

<h3 id="method-get_annotation_queue">
  <kbd>방법</kbd> `get_annotation_queue`
</h3>

```python theme={"system"}
get_annotation_queue(queue_id: 'str') → AnnotationQueueSchema
```

ID로 단일 어노테이션 큐를 조회합니다.

***

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

<h3 id="method-get_annotation_queue_stats">
  <kbd>방법</kbd> `get_annotation_queue_stats`
</h3>

```python theme={"system"}
get_annotation_queue_stats(
    queue_ids: 'list[str]'
) → list[AnnotationQueueStatsSchema]
```

어노테이션 큐의 항목 완료 통계를 조회합니다.

***

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

<h3 id="method-get_call">
  <kbd>방법</kbd> `get_call`
</h3>

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

ID로 단일 Call을 조회합니다.

**인수:**

* <b>`call_id`</b>: 조회할 Call의 ID입니다.
* <b>`include_costs`</b>: true이면 summary.weave에 비용 정보가 포함됩니다.
* <b>`include_feedback`</b>: true이면 summary.weave.feedback에 피드백 정보가 포함됩니다.
* <b>`columns`</b>: 응답에 포함할 열의 목록입니다. None이면  모든 열이 포함됩니다. 더 적은 열을 지정하면 성능이 향상될 수 있습니다. 일부 열은 항상 포함됩니다.  id, project\_id, trace\_id, op\_name, started\_at
  **반환값:**
  Call 객체입니다.

***

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

<h3 id="method-get_calls">
  <kbd>방법</kbd> `get_calls`
</h3>

```python theme={"system"}
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,
    include_usernames: '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
```

이 프로젝트에서 트레이스로 기록된 Call(오퍼레이션) 목록을 검색합니다.

이 방법은 트레이스 데이터를 쿼리할 수 있는 강력하고 유연한 인터페이스를 제공합니다. 페이지 매김, 필터링, 정렬, 필드 선택, 점수화 메타데이터를 지원하며, 맞춤형 트레이스 UI나 분석 도구를 구현하는 데 사용할 수 있습니다.

성능 팁: `columns`를 지정하고 `filter` 또는 `query`를 사용하여 결과 크기를 줄이세요.

**인수:**

* <b>`filter`</b>:  `op_name`, `parent_ids` 등의 필드로 결과를 좁히는 상위 수준 필터입니다.
* <b>`limit`</b>:  반환할 Call의 최대 개수입니다.
* <b>`offset`</b>:  결과를 반환하기 전에 건너뛸 Call의 개수입니다(페이지 매김에 사용).
* <b>`sort_by`</b>:  결과 정렬에 사용할 필드 목록입니다(예: `started_at desc`).
* <b>`query`</b>:  고급 필터링을 위한 Mongo와 유사한 표현식입니다. 모든 Mongo Operator가 지원되는 것은 아닙니다.
* <b>`include_costs`</b>:  True이면 `summary.weave`에 토큰/비용 정보를 포함합니다.
* <b>`include_feedback`</b>:  True이면 `summary.weave.feedback`에 피드백을 포함합니다.
* <b>`include_storage_size`</b>:  True이면 Call의 저장소 크기를 포함합니다.
* <b>`include_total_storage_size`</b>:  True이면 트레이스의 총 저장소 크기를 포함합니다.
* <b>`include_usernames`</b>:  True이면 각 Call의 `wb_user_id`를 `wb_username`으로 변환하려고 시도합니다.
* <b>`columns`</b>:  Call마다 반환할 필드 목록입니다. 이를 줄이면 성능이 크게 향상될 수 있습니다.  (`id`, `trace_id`, `op_name`, `started_at` 등의 일부 필드는 항상 포함됩니다.)
* <b>`scored_by`</b>:  하나 이상의 Scorer(이름 또는 ref URI)로 필터링합니다. 여러 Scorer는 AND로 결합됩니다.
* <b>`page_size`</b>:  페이지당 가져올 Call의 개수입니다. 대규모 쿼리의 성능을 위해 이 값을 조정하세요.

**반환값:**

* <b>`CallsIter`</b>:  `Call` 객체를 순회하는 반복자입니다. 슬라이싱, 반복, `.to_pandas()`를 지원합니다.

**예시:**

```python theme={"system"}
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.53.1/weave/trace/weave_client.py#L633" />

<h3 id="method-get_evaluation">
  <kbd>방법</kbd> `get_evaluation`
</h3>

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

URI로 특정 Evaluation 객체를 조회합니다.

Evaluation URI는 일반적으로 다음 형식을 따릅니다: `weave:///entity/project/object/Evaluation:version`

평가의 "알기 쉬운" 이름으로도 조회할 수 있습니다: get\_evaluation("Evaluation:v1")

**인수:**

* <b>`uri`</b> (str):  조회할 평가의 고유 리소스 식별자입니다.

**반환값:**

* <b>`Evaluation`</b>:  제공된 URI에 해당하는 Evaluation 객체입니다.

**예외:**

* <b>`TypeError`</b>:  URI의 객체가 Evaluation 인스턴스가 아닌 경우 발생합니다.
* <b>`ValueError`</b>:  URI가 유효하지 않거나 객체를 찾을 수 없는 경우 발생합니다.

**예시:**

```python theme={"system"}
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.53.1/weave/trace/weave_client.py#L668" />

<h3 id="method-get_evaluations">
  <kbd>방법</kbd> `get_evaluations`
</h3>

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

현재 프로젝트에서 모든 Evaluation 객체를 가져옵니다.

**반환값:**

* <b>`list[Evaluation]`</b>:  현재 프로젝트의 모든 Evaluation 객체 목록입니다.  평가를 찾을 수 없거나 모든 변환이 실패하면 빈 목록입니다.

**예시:**

```python theme={"system"}
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.53.1/weave/trace/weave_client.py#L2162" />

<h3 id="method-get_feedback">
  <kbd>방법</kbd> `get_feedback`
</h3>

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

프로젝트를 쿼리하여 피드백을 가져옵니다.

**예시:**

```python theme={"system"}
# 특정 피드백 객체를 가져옵니다.
# 이 경우에도 컬렉션이 반환되며,
# 항목이 없거나 하나만 포함될 것으로 예상됩니다.
client.get_feedback("1B4082A3-4EDA-4BEB-BFEB-2D16ED59AA07")

# 특정 반응이 있는 모든 피드백 객체를 찾습니다.
client.get_feedback(reaction="👍", limit=10)

# mongo 스타일 쿼리로 특정 피드백 유형의
# 모든 피드백 객체를 찾습니다.
from weave.trace_server.interface.query import Query

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

**인수:**

* <b>`query`</b>: Mongo 스타일의 쿼리 표현식입니다. 편의를 위해 피드백 UUID string도 허용합니다.
* <b>`reaction`</b>: 편의를 위해 특정 반응 이모지로 필터링합니다.
* <b>`offset`</b>: 피드백 객체를 가져오기 시작할 오프셋입니다.
* <b>`limit`</b>: 가져올 피드백 객체의 최대 개수입니다.
  **반환값:**
  FeedbackQuery 객체입니다.

***

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

<h3 id="method-get_tags">
  <kbd>방법</kbd> `get_tags`
</h3>

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

객체 버전의 태그를 조회합니다.

**인수:**

* <b>`obj_ref`</b>: 객체 버전에 대한 레퍼런스입니다. ObjectRef 또는 weave /// URI string입니다.
  **반환값:**
  태그 string 목록입니다. 객체 버전에 태그가 없으면 빈 목록을 반환합니다.

***

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

<h3 id="method-get_tags_and_aliases">
  <kbd>방법</kbd> `get_tags_and_aliases`
</h3>

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

단일 Call로 객체 버전의 태그와 별칭을 모두 조회합니다.

**인수:**

* <b>`obj_ref`</b>: 객체 버전에 대한 레퍼런스로, ObjectRef 또는 weave /// URI string입니다.
  **반환값:**
  (tags, aliases) 튜플입니다. 각각은 string 목록입니다. 객체 버전에 태그나 별칭이 없으면 빈 목록을 반환합니다.

***

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

<h3 id="method-link_prompt_to_registry">
  <kbd>방법</kbd> `link_prompt_to_registry`
</h3>

```python theme={"system"}
link_prompt_to_registry(
    prompt: 'LinkablePrompt',
    target_path: 'str',
    aliases: 'Sequence[str] | None' = None
) → LinkAssetToRegistryRes
```

게시된 프롬프트 버전을 레지스트리에 연결합니다.

**인수:**

* <b>`prompt`</b>: 게시된 프롬프트, `ObjectRef` 또는 완전 수식된 weave ///... URI string입니다.

* <b>`target_path`</b>: `<registry_project>/<portfolio_name>` 형식의 레지스트리 대상 경로입니다. 예를 들어  `wandb-registry-prompts/my-prompt-collection`입니다.

* <b>`aliases`</b>: 생성된 레지스트리 버전에 추가할 선택 별칭입니다.
  **반환값:**

* <b>`LinkAssetToRegistryRes`</b>:  레지스트리 연결 엔드포인트의 파싱된 응답입니다.

***

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

<h3 id="method-list_aliases">
  <kbd>방법</kbd> `list_aliases`
</h3>

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

프로젝트의 모든 고유한 별칭을 나열합니다.

**반환값:**
프로젝트의 모든 별칭 string 목록입니다.

***

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

<h3 id="method-list_annotation_queue_items">
  <kbd>방법</kbd> `list_annotation_queue_items`
</h3>

```python theme={"system"}
list_annotation_queue_items(
    queue_id: 'str',
    filter: 'AnnotationQueueItemsFilter | None' = None,
    sort_by: 'list[SortBy] | None' = None,
    limit: 'int | None' = None,
    offset: 'int | None' = None,
    include_position: 'bool' = False
) → list[AnnotationQueueItemSchema]
```

어노테이션 큐에 부여된 Call 목록을 조회합니다.

***

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

<h3 id="method-list_annotation_queues">
  <kbd>방법</kbd> `list_annotation_queues`
</h3>

```python theme={"system"}
list_annotation_queues(
    name: 'str | None' = None,
    sort_by: 'list[SortBy] | None' = None,
    limit: 'int | None' = None,
    offset: 'int | None' = None
) → list[AnnotationQueueSchema]
```

이 프로젝트의 어노테이션 큐 목록을 조회합니다.

***

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

<h3 id="method-list_tags">
  <kbd>방법</kbd> `list_tags`
</h3>

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

프로젝트의 중복 없는 모든 태그 목록을 조회합니다.

**반환값:**
프로젝트의 모든 태그 string 목록입니다.

***

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

<h3 id="method-purge_costs">
  <kbd>방법</kbd> `purge_costs`
</h3>

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

현재 프로젝트에서 비용을 영구 삭제합니다.

**예시:**

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

**인수:**

***

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

<h3 id="method-query_costs">
  <kbd>방법</kbd> `query_costs`
</h3>

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

프로젝트의 비용을 쿼리합니다.

* <b>`ids`</b>: 영구 삭제할 비용 ID입니다. 단일 ID 또는 ID 목록을 지정할 수 있습니다.
  **예시:**

```python theme={"system"}
# 특정 비용 객체를 가져옵니다.
# 이 경우에도 컬렉션을 반환하며, 컬렉션에는
# 항목이 없거나 하나만 포함될 것으로 예상됩니다.
client.query_costs("1B4082A3-4EDA-4BEB-BFEB-2D16ED59AA07")

# 특정 반응이 있는 모든 비용 객체를 찾습니다.
client.query_costs(llm_ids=["gpt-4o-mini-2024-07-18"], limit=10)
```

**인수:**

* <b>`query`</b>: Mongo 스타일의 쿼리 표현식입니다. 편의를 위해 비용 UUID string도 허용합니다.
* <b>`llm_ids`</b>: 편의를 위해 llm\_ids 집합으로 필터링합니다.
* <b>`offset`</b>: 비용 객체를 가져오기 시작할 오프셋입니다.
* <b>`limit`</b>: 가져올 비용 객체의 최대 개수입니다.
  **반환값:**
  CostQuery 객체입니다.

***

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

<h3 id="method-remove_aliases">
  <kbd>방법</kbd> `remove_aliases`
</h3>

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

객체에서 하나 이상의 별칭을 제거합니다.

**인수:**

***

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

<h3 id="method-remove_tags">
  <kbd>방법</kbd> `remove_tags`
</h3>

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

객체 버전에서 태그를 제거합니다.

* <b>`obj_ref`</b>: 객체에 대한 레퍼런스로, ObjectRef 또는 weave /// URI string입니다(별칭은 객체 범위에 속하므로 digest는 사용되지 않습니다).
* <b>`alias`</b>: 제거할 별칭 이름 또는 별칭 이름 목록입니다.
  **인수:**

***

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

<h3 id="method-save">
  <kbd>방법</kbd> `save`
</h3>

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

직접 호출하지 말고 weave.publish()를 사용하세요.

* <b>`obj_ref`</b>: 객체 버전에 대한 레퍼런스로, ObjectRef 또는 weave /// URI string입니다.

* <b>`tags`</b>: 제거할 태그 string의 목록입니다.
  **인수:**

* <b>`val`</b>: 저장할 객체입니다.

* <b>`name`</b>: 객체를 저장할 이름입니다.

* <b>`branch`</b>: 객체를 저장할 브랜치입니다. 기본값은 "latest"입니다.
  **반환값:**
  저장된 객체의 역직렬화된 버전입니다.

***

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

<h3 id="method-search_agents">
  <kbd>방법</kbd> `search_agents`
</h3>

```python theme={"system"}
search_agents(
    query: 'str' = '',
    agent_name: 'str | None' = None,
    conversation_id: 'str | None' = None,
    trace_id: 'str | None' = None,
    limit: 'int' = 20,
    offset: 'int' = 0
) → AgentSearchRes
```

내용으로 에이전트 메시지를 검색하고 대화별로 그룹화합니다.

메시지 내용(및/또는 아래의 구조화된 필터)을 검색하고 일치하는 대화와 해당 대화에서 일치한 메시지를 반환합니다. `query`가 비어 있으면 필터를 기반으로 구조화된 검색을 수행합니다.

**인수:**

* <b>`query`</b>: 메시지 내용에서 일치 여부를 확인할 부분 문자열입니다. 비어 있으면 모두 일치합니다.
* <b>`agent_name`</b>: 이 에이전트의 메시지로 제한합니다.
* <b>`conversation_id`</b>: 단일 대화로 제한합니다.
* <b>`trace_id`</b>: 단일 트레이스로 제한합니다.
* <b>`limit`</b>: 검색 시 고려할 일치하는 메시지의 최대 개수입니다.
* <b>`offset`</b>: 건너뛸 일치 항목의 개수입니다(페이지 매김용).
  **반환값:**
  `results`(일치하는 대화)가 포함된 `AgentSearchRes`입니다.

**예시:**

```python theme={"system"}
client = weave.init("entity/project")
resp = client.search_agents(query="timeout", agent_name="my-agent")
for conversation in resp.results:
     print(conversation.conversation_id, conversation.matched_messages)
```

***

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

<h3 id="method-set_aliases">
  <kbd>방법</kbd> `set_aliases`
</h3>

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

객체 버전에 하나 이상의 별칭을 설정합니다.

**인수:**

***

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

<h3 id="method-set_wandb_run_context">
  <kbd>방법</kbd> `set_wandb_run_context`
</h3>

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

이 클라이언트가 생성한 Call의 wandb run\_id와 step을 재정의합니다.

이를 통해 Weave Call을 전역 wandb.run 심볼에 바인딩되지 않은 특정 WandB run과 연결할 수 있습니다.

* <b>`obj_ref`</b>: 객체 버전에 대한 레퍼런스로, ObjectRef 또는 weave /// URI string입니다.

* <b>`alias`</b>: 설정할 별칭 이름 또는 별칭 이름 목록입니다(예: "production").
  **인수:**

* <b>`run_id`</b>: run ID입니다(entity/project 접두사 제외).  클라이언트가 entity/project 접두사를 자동으로 추가합니다.

* <b>`step`</b>: Call에 사용할 step 숫자입니다. None이면 step이 설정되지 않습니다.
  **예시:**

```python theme={"system"}
client = weave.init("my-project")
client.set_wandb_run_context(run_id="my-run-id", step=5)
# 이제 모든 Call이 step 5에서 entity/project/my-run-id에 연결됩니다

# 또는 step 없이 설정합니다
client.set_wandb_run_context(run_id="my-run-id")
# Call이 step 없이 entity/project/my-run-id에 연결됩니다
```

***

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

<h3 id="method-update_annotation_queue">
  <kbd>방법</kbd> `update_annotation_queue`
</h3>

```python theme={"system"}
update_annotation_queue(
    queue_id: 'str',
    name: 'str | None' = None,
    description: 'str | None' = None,
    scorer_refs: 'list[str] | None' = None
) → AnnotationQueueSchema
```

어노테이션 큐 메타데이터를 업데이트합니다.

***

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

<h3 id="function-get_obj_name">
  <kbd>함수</kbd> `get_obj_name`
</h3>

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

***

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

<h3 id="function-get_parallelism_settings">
  <kbd>함수</kbd> `get_parallelism_settings`
</h3>

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

***

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

<h3 id="function-map_to_refs">
  <kbd>함수</kbd> `map_to_refs`
</h3>

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

***

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

<h3 id="function-print_call_link">
  <kbd>함수</kbd> `print_call_link`
</h3>

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

***

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

<h3 id="function-redact_sensitive_keys">
  <kbd>함수</kbd> `redact_sensitive_keys`
</h3>

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

***

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

<h3 id="function-sanitize_object_name">
  <kbd>함수</kbd> `sanitize_object_name`
</h3>

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


## Related topics

- [WeaveClient](/ko/products/wandb/weave/reference/typescript-sdk/interfaces/weaveclient.md)
