Python sdk

From VectorSpaceLab/AREX-Skill · View interactive version

Python sdk is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Operate the Argilla 2.x Python SDK for datasets, records, search, import/export, users, workspaces, webhooks, and SDK troubleshooting.

How to use this skill

Skill file

Argilla Python SDK

Use this sub-skill when a task asks you to use Argilla 2.x from Python: connect to an Argilla server, define dataset settings, log records, map incoming data to fields/questions/metadata/vectors, search/filter/export records, manage users/workspaces, or build a webhook listener.

Do not use this sub-skill for server deployment, Docker/Kubernetes, search-engine reindexing, OAuth/SSO service configuration, or legacy v1/Rubrix migration. Route those to the sibling server-ops or legacy-migration sub-skill.

First-choice references

Bundled helpers

Operating rules

  1. Treat the Python SDK as service-backed: rg.Argilla(...), create, update, delete, records.log, to_hub, from_hub, and webhooks can contact a server or network service.
  2. Prefer explicit clients. Create client = rg.Argilla(api_url=..., api_key=...) before constructing SDK resources if environment defaults are not guaranteed, and pass client=client to datasets and user/workspace/webhook resources where supported.
  3. Keep dataset setting names unique across fields, questions, metadata properties, and vector fields. Use simple stable names, then map arbitrary source columns with dataset.records.log(..., mapping=...).
  4. Use Record(id=...) or mapping target id for the record external id. The SDK serializes this as external_id internally, but the public constructor/mapping target is id.
  5. Use safe templates for webhooks. The webhook_listener decorator registers webhooks when it is executed, so do not place it at module import time unless the user intentionally wants registration.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.