/aixplain:aixplain-builderfrom aixplain
Builds, runs, and deploys AI agents, multi-agent teams, model inference (LLMs, speech-to-text, translation, vision), RAG knowledge bases, and tool integrations on the aiXplain platform using the Python SDK.
Ships in aixplain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Design, run, and deploy everything the aiXplain SDK supports: agents and team agents, direct model inference, knowledge bases / RAG, tools and integrations, runtime governance, memory, and the access APIs. This skill is the single source of truth — every snippet here is verified against aiXplain SDK v0.2.48 (the unified v2 Aixplain client) and live SDK introspection.
Used on behalf of both non-developers and developers. So:
Install/upgrade first, then initialize the client:
python3 -m pip install --upgrade aixplain
import os
from aixplain import Aixplain
aix = Aixplain(api_key=os.environ["AIXPLAIN_API_KEY"]) # or Aixplain() if AIXPLAIN_API_KEY / TEAM_API_KEY is exported
If AIXPLAIN_API_KEY isn't set, ask the user for it (or to add it to a .env) — get one at https://app.aixplain.com/team/settings?tab=api-keys. Most operations spend credits (1 credit = $1); say so before running anything billable for a non-developer.
| The user wants to… | Build a… | Reference |
|---|---|---|
| Reason over a goal, call tools, multi-step work | Agent | references/agents.md |
| Coordinate several specialists / a workflow | Team agent | references/agents.md |
| Just run a model once (LLM, transcription, translation, vision) | Direct model call | references/models.md |
| Answer from private documents | Knowledge base + agent (RAG) | references/knowledge-memory.md |
| Connect Slack/Gmail/DB/MCP, or wrap a Python function | Tool / integration | references/tools-integrations.md |
| Enforce a policy at runtime (safety, PII, format) | Inspector | references/governance.md |
| Remember across turns / sessions / agents | Session or shared memory | references/knowledge-memory.md |
| Call a deployed asset over HTTP/JS/OpenAI client | REST / access API | references/deployment-access.md |
| Update, or export-as-code, an existing/deployed agent | agent lifecycle | references/agents.md |
| Multi-turn conversation state | Session | references/agents.md |
| Package reusable instructions, or fire an agent on a schedule/event | Skill / Trigger | references/agents.md |
| Measure or score agent quality offline | Eval + Metric | references/evaluation.md |
| Analyze a very long document / oversized context | RLM | references/models.md |
| Inspect a run: steps, cost, live progress, dashboard | Tracing | references/tracing.md |
| A ready-made recipe to adapt | — | references/patterns.md |
What's new in this release — and what changed in previous ones — is in CHANGELOG.md.
Read the relevant reference file before writing code for that domain — they hold the exact signatures, IDs, and gotchas.
⚠️ Moved or removed in SDK 0.2.48 — do not write these
Pre-0.2.48 code (and some still-published docs) use forms that now fail — two of them silently:
from aixplain.v2.inspector import InspectorAction, EvaluatorConfig, …→ removed from v2. Build guardrails asaix.Inspector(action="abort", metric={...})with plain strings/dicts. Seereferences/governance.md.from aixplain.v2.file import FileUploader→ dead. Canonical is nowfrom aixplain.v2 import FileUploader(also re-exported fromaixplain.v2.upload_utils);aixplain.v2.filehosts theFileresource instead.model.inputs.get_required_parameters() / get_all_parameters() / reset_parameter() / reset_all_parameters()→ renamed to.required,dict(.items()),.reset(k),.reset().- 🔇
agent.max_iterations = Nafter construction is a no-op — setagent.budget.max_iterations = N.- 🔇
generate_session_id()/create_session()are gone, andsession_id=passed torun()is silently stripped (you get a stateless run, no error). Useaix.Session— seereferences/agents.md.
🔬 Field-verified runtime gotchas (silent — not in the docs, not visible in signatures)
Observed in live runs. The SDK accepts all of these without error, so only behaviour reveals them:
agent.save()resetsagent.llmto the platform default — re-assert the model after saving and verify it stuck, or your model choice silently reverts.Budget(max_cost=…)is accepted and persisted but not enforced; onlymax_duration_seconds/max_iterationsactually bound a run.- aiR index search: pass
num_results.top_kis shown in the docs (and emitted by the SDK's ownrlm.py) but is silently ignored, so your result limit won't apply.model.as_tool()breaks video input (the payload gets wrapped in a list) — call the model directly for video instead of attaching it to an agent.
Not in the v2 SDK: pipelines, fine-tuning, benchmarking, and datasets/corpora. The old v1 factory route is gone — v1 is removed in SDK
0.3.0(0.2.48is the last release shipping it), so never hand a useraixplain.factoriescode. Use Studio, or a team agent for multi-step work. Seereferences/deployment-access.md § What the v2 SDK does NOT cover.
aix.Tool.search(...), aix.Model.search(...), aix.Integration.search()["results"]. Never say "not available" without searching. IDs in the reference tables can drift — if one 404s, search by name.allowed_actions to the minimum the task needs — the default (all actions) over-privileges the agent and hurts its reasoning. See references/tools-integrations.md.llm unless the user asks for a specific model (the platform default is good). Set output_format and, for JSON, expected_output.agent.save() (or team.save(save_subcomponents=True)) promotes DRAFT → ONBOARDED and gives a persistent endpoint. There is no separate deploy().agent.run(query=...), read .data.output. Inspect .data.steps if it misbehaves.https://app.aixplain.com/studiohttps://app.aixplain.com/dashboard
(aiXplain consolidated onto app.aixplain.com — studio./console. hosts and per-agent deep links like /build/<ID>/schema are gone. Give the user the agent ID alongside the link.).run(...); async via .run_async(...) then .sync_poll(url) (blocks, returns the same shape) or manual .poll(url) until .completed.response.data.output, .status, .data.steps, .data.execution_stats; models → response.data, .status, .usage, ._raw_data.save() raises name_already_exists, ask the user: update the existing asset or create under a new name. Appending int(time.time()) to a name keeps demos unique.Models/agents/tools take URLs, not local paths. Upload first and pass the returned URL:
from aixplain.v2 import FileUploader
url = FileUploader(api_key=os.environ["AIXPLAIN_API_KEY"]).upload(
"/path/to/file.mp3", is_temp=True, return_download_link=True) # download link, not raw s3://
Use return_download_link=True so the URL is browser-accessible. Size limits: audio 50 MB, image/documents 25 MB, video/database 300 MB. (For .html/.zip outputs the SDK's MIME detector can mislabel the extension — set the right content type when it matters.)
When you hit a quirk that is clearly aiXplain-caused (not the user's code/config) — an advertised action that always fails, a documented parameter the backend ignores, a connector requesting too few scopes — offer to file an issue at https://github.com/aixplain/aiXplain. Reproduce it first to confirm the cause is on aiXplain's side, draft the title/body, and get the user's approval before posting (the repo is public). Redact API keys, emails, and asset/account IDs; keep the repro generic. Include SDK version, asset type, a minimal repro, and expected vs. actual behavior.
CHANGELOG.md (opens in a new tab)references/agents.md (opens in a new tab)references/deployment-access.md (opens in a new tab)references/evaluation.md (opens in a new tab)references/governance.md (opens in a new tab)references/knowledge-memory.md (opens in a new tab)references/models.md (opens in a new tab)references/patterns.md (opens in a new tab)references/tools-integrations.md (opens in a new tab)references/tracing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aixplain/aixplain --plugin aixplain2 skills in this plugin
Other plugins' skills for the same job