Install
openclaw skills install @nurhamdan1987/aixplain-agent-builderDesign and deploy aiXplain agents with conservative defaults, read-only discovery first, and explicit approval gates for higher-risk actions.
openclaw skills install @nurhamdan1987/aixplain-agent-builderUse this skill to plan, inspect, and build aiXplain agents with conservative defaults, read-only discovery first, and explicit approval gates for higher-risk actions.
Start in read-only planning mode.
Until the user explicitly approves a higher-risk step, do not:
If the user wants execution or deployment, confirm that the required environment is already configured. Do not auto-fix the environment.
Before building anything, present a short plan covering:
Wait for approval before creating or updating an agent.
Always search for existing marketplace assets before proposing a new tool or integration.
import os
from aixplain import Aixplain
aix = Aixplain(api_key=os.getenv("AIXPLAIN_API_KEY"))
tool_results = aix.Tool.search(query="web search").results
integration_results = aix.Integration.search(query="google drive").results
model_results = aix.Model.search(query="gpt").results
Do not say a capability is unavailable until you have searched for it.
Use this order of preference:
Treat these as higher-risk and require approval before proposing them:
See references/safety-gates.md.
When the user approves the plan, build the agent with the smallest necessary surface area.
import os
from aixplain import Aixplain
aix = Aixplain(api_key=os.getenv("AIXPLAIN_API_KEY"))
search_tool = aix.Tool.get("<PUBLIC_TOOL_ID>")
agent = aix.Agent(
name="My Agent",
description="Summarizes and answers with linked sources.",
instructions="Use only attached tools. If a request needs missing access, say so clearly.",
tools=[search_tool],
output_format="markdown",
max_tokens=4000,
).save()
Do not specify a custom llm unless the user explicitly asks for one.
Do not upload local files by default when configuring integrations such as:
Preferred behavior:
.run() and the runtime input itself must be a file assetPractical rule:
.run() input requires a remote file referenceIf a backend rejects the direct file path, report the backend-specific validation clearly instead of treating upload as the default first step.
For OAuth-based integrations, a newly created tool may be created successfully but remain unusable until the connection flow is completed.
Treat this as the normal flow:
redirect_urlTreat the presence of redirect_url as the expected pending-auth state.
Typical pattern:
tool = integration.connect(name="My OAuth Tool")
if getattr(tool, "redirect_url", None):
print(tool.redirect_url)
# User must complete OAuth before the tool is runnable.
Before the connection flow is completed, report the tool as pending and provide the redirect_url.
After a successful save, share only the standard Studio links:
https://studio.aixplain.com/build/<AGENT_ID>/schemahttps://studio.aixplain.com/dashboard/analytics/?agent=<AGENT_ID>For debugging, prefer SDK-visible agent configuration, run output, and Studio traces before proposing tool changes.
For detailed execution tracing during SDK runs, prefer:
result = agent.run(
query="...",
progress_verbosity=3,
)
Observed behavior in this environment:
progress_verbosity=3 works with the installed aiXplain v2 agent pathUse this for debugging or verification runs when you need the exact search, tool, and output trace.
references/safety-gates.md - approval rules for risky actionsreferences/read-only-patterns.md - safe search and build examples