# RAI: Robot tool-calling training data CLI

Extract recorded observations from Langfuse or format robot/tool-calling conversations for later training.

ID: `rai-src-rai-finetune-rai-finetune-data-cli-py`

Record version: `source-97a99ec6a87f29c6578f7aee7ee99ef79239a15c87b9aaaa0b34d5b936e8263f`

Hub commit: `ab214094ec555451d7f9892e295dff22ed3c451c`

## Access

Fetch the pinned repository, verify this source checksum, and use upstream installation and invocation. This record does not install or execute code.

Optional inert file retrieval: `python /PATH_TO_SKILL/scripts/rsh.py fetch-source rai-src-rai-finetune-rai-finetune-data-cli-py --expected-source-revision b018729833742c6f71e1e9f332ee2b435676fb4f --expected-source-sha256 97a99ec6a87f29c6578f7aee7ee99ef79239a15c87b9aaaa0b34d5b936e8263f --project ./experiment --json`. This verifies one file, preserves provenance and never installs or runs it. See [source-file retrieval](https://hub.superfastrobotics.com/source-files.md).

Hub preparation adapter: **false**. Runtime verification: **not_run**.

Upstream setup: https://github.com/RobotecAI/rai/blob/b018729833742c6f71e1e9f332ee2b435676fb4f/docs/setup/install.md

## Source and license

- Repository: https://github.com/RobotecAI/rai
- Pinned source: https://github.com/RobotecAI/rai/blob/b018729833742c6f71e1e9f332ee2b435676fb4f/src/rai_finetune/rai_finetune/data_cli.py
- Revision: `b018729833742c6f71e1e9f332ee2b435676fb4f`
- Path: `src/rai_finetune/rai_finetune/data_cli.py`
- Source SHA256: `97a99ec6a87f29c6578f7aee7ee99ef79239a15c87b9aaaa0b34d5b936e8263f`
- Source bytes: 7387
- Original authors: Julia Jia (per-file notice/package metadata)
- License: [Apache-2.0](https://github.com/RobotecAI/rai/blob/b018729833742c6f71e1e9f332ee2b435676fb4f/LICENSE)
- License scope: Selected first-party source and per-file notices; excludes models, dependencies, datasets, simulator assets and external service terms.

License SHA256: `c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4`

## Artifact

```json
{
  "kind": "workflow",
  "format": "python",
  "workflow_role": "dataset-preparation"
}
```

## Requirements

```json
{
  "python": "Standalone rai_finetune requires >=3.10,<3.12, stricter than the root/core range.",
  "packages": [
    "Pinned RAI checkout",
    "Matching ROS 2 and rai_interfaces",
    "Per-workflow packages, local model or hosted-provider dependencies from pinned setup"
  ],
  "display": "Official setup documents ROS 2 Humble/Jazzy, rai_interfaces and feature-specific environment. Nothing installed or runtime verified.",
  "execution_domain": "computation",
  "source_imports": [
    "argparse",
    "data.extractors.langfuse_data",
    "data.extractors.langsmith_data",
    "data.formatters.tool_calling",
    "logging",
    "sys"
  ],
  "notes": "Upstream per-workflow profile declarations only; provider availability, dependency resolution and runtime/robot compatibility are unverified.",
  "declared_requirements": {
    "data": {
      "python": "Standalone rai_finetune requires >=3.10,<3.12, stricter than the root/core range.",
      "gpu": "No direct GPU use in selected data CLI; package dependencies include Torch, Unsloth and xformers. Training hardware is not inferred.",
      "external_models": "No trainer or checkpoint inference is implemented by this selected data CLI. README labels trainers, mergers and exporters as future additions.",
      "api": "Langfuse extraction requires chosen host/access credentials. Formatting reads caller-provided observations locally. No provider calls were made.",
      "evidence_paths": [
        "src/rai_finetune/README.md",
        "src/rai_finetune/pyproject.toml",
        "src/rai_finetune/rai_finetune/data/extractors/langfuse_data.py",
        "src/rai_finetune/rai_finetune/data/formatters/tool_calling.py"
      ]
    }
  }
}
```

## Invocation

```json
{
  "entrypoint": "python -m rai_finetune.data_cli",
  "notes": "Source/setup invocation shape only; not executed or runtime verified. Source references only; no Hub adapter, compatibility promise, provider access grant or runtime result. Known limits: Advertised extract langsmith imports data.extractors.langsmith_data, absent from exact pinned tree. Do not present that branch as working. Dataset preparation only. Actual trainers/exporters are described as future additions, not candidates."
}
```

## Compatibility

```json
[]
```

Missing environment fields remain unknown. Source discovery labels do not establish robot compatibility.

## Evidence

Level: **source_reviewed**. Runtime verification: **not_run**.

Verified exact source, applicable license and author/setup document bytes at a full Git commit; parsed the Python AST and reviewed this guarded operational entrypoint and its explicit license notices. No upstream code, installation, robot command, dataset, mesh or checkpoint was executed or loaded.

Source review and contributor reports do not establish task completion. Preserve upstream attribution and licenses.
