> ## 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.

# 関数

> 組織に表示されるランナーをクエリします。

<h2 id="list_runners">
  list\_runners
</h2>

ソース: [src/cwsandbox/\_discovery.py:289](https://github.com/coreweave/cwsandbox-client/blob/v1.14.2/src/cwsandbox/_discovery.py#L289)

```python theme={"system"}
list_runners(*, auth: AuthConfig | None = None, runner_group_id: str | None = None, gpu_type: str | None = None, architecture: str | None = None, healthy_only: bool = False, include_resources: bool = False, min_available_cpu_millicores: int | None = None, min_available_memory_bytes: int | None = None, min_available_gpu_count: int | None = None, service_visibility: str | None = None) -> list[Runner]
```

利用可能なランナーを、オプションでフィルターして一覧表示します。
**パラメーター**

* `auth` (`AuthConfig | None`): このリクエストの認証方式、解決済みヘッダー、またはプロバイダー。
* `runner_group_id` (`str | None`): このランナーグループに結果を制限します。
* `gpu_type` (`str | None`): この GPU タイプをサポートするランナーのみを返します。
* `architecture` (`str | None`): この CPU アーキテクチャーをサポートするランナーのみを返します。
* `healthy_only` (`bool`): 健全なランナーのみを返します。
* `include_resources` (`bool`): `True` の場合、ライブのリソース可用性を含めます。
* `min_available_cpu_millicores` (`int | None`): 未予約の CPU に対するクライアントサイドフィルター。
* `min_available_memory_bytes` (`int | None`): 未予約のメモリに対するクライアントサイドフィルター。
* `min_available_gpu_count` (`int | None`): 未予約の GPU に対するクライアントサイドフィルター。
* `service_visibility` (`str | None`): このタイプ付き可視性 (`public` / `private` / `custom`) を強制できるランナーを要求します。

**Returns**

* `list[Runner]`: フィルターに一致する `Runner` オブジェクトのリスト。

***

<h2 id="get_runner">
  get\_runner
</h2>

ソース: [src/cwsandbox/\_discovery.py:390](https://github.com/coreweave/cwsandbox-client/blob/v1.14.2/src/cwsandbox/_discovery.py#L390)

```python theme={"system"}
get_runner(runner_id: str, *, organization_id: str, auth: AuthConfig | None = None) -> Runner
```

単一のランナーを `(organization_id, runner_id)` で取得します。

所有している場合、リソース可用性を含む完全な詳細を常に返します。
**パラメーター**

* `runner_id` (`str`): ランナー ID (単独ではグローバルに一意ではない) 。
* `organization_id` (`str`): ランナーを所有する組織。
* `auth` (`AuthConfig | None`): このリクエストの認証方式、解決されたヘッダー、またはプロバイダー。

**Returns**

* `Runner`: 完全な詳細を含む `Runner`。

***

<h2 id="format_bytes">
  format\_bytes
</h2>

ソース: [src/cwsandbox/\_discovery.py:39](https://github.com/coreweave/cwsandbox-client/blob/v1.14.2/src/cwsandbox/_discovery.py#L39)

```python theme={"system"}
format_bytes(value: int) -> str
```

<h2 id="format-bytes-as-a-human-readable-string-using-binary-units">
  バイナリ単位を使用してバイトを人間が読みやすい string にフォーマットします。
</h2>

<h2 id="format_cpu">
  format\_cpu
</h2>

ソース: [src/cwsandbox/\_discovery.py:54](https://github.com/coreweave/cwsandbox-client/blob/v1.14.2/src/cwsandbox/_discovery.py#L54)

```python theme={"system"}
format_cpu(millicores: int) -> str
```

<h2 id="format-cpu-millicores-as-a-human-readable-string">
  CPUミリコアを人間が読みやすい string にフォーマットします。
</h2>
