Skip to main content

aiXplain Agents SDK

Build and deploy autonomous AI agents on production-grade infrastructure, instantly.


aiXplain agents

aiXplain Agents SDK gives developers Python and REST APIs to build, run, and deploy autonomous multi-step agents on AgenticOS. Agents include built-in memory for short- and long-term context (opt-in), and adapt at runtime by planning steps, selecting tools and models, running code, and refining outputs until tasks are complete.

aiXplain agents include micro-agents for runtime policy enforcement and access control, plus proprietary meta-agents like Evolver for self-improvement.

With one API key, access 900+ vendor-agnostic models, tools, and integrations in the aiXplain Marketplace with consolidated billing, and swap assets without rewriting pipelines.

Why aiXplain for developers

  • Autonomy — agents plan and adapt at runtime instead of following fixed workflows.
  • Delegation — route complex work to specialized subagents during execution.
  • Policy enforcement — apply runtime guardrails with Inspector and Bodyguard on every run.
  • Observability — inspect step-level traces, tool calls, and outcomes for debugging.
  • Portability — swap models and tools without rewriting application logic.
  • Flexible deployment — run the same agent definition serverless or private.
aiXplain team-agent runtime flow

AgenticOS

AgenticOS is the runtime behind aiXplain Agents. It orchestrates multi-step execution, routes model and tool calls with fallback policies, enforces governance at runtime, records step-level traces, and supports both serverless and private deployment.

aiXplain AgenticOS architecture

Quick start

pip install aixplain

Get your API key from your aiXplain account.

v2 (default)

Create and run your first agent (v2)

from aixplain import Aixplain

aix = Aixplain(api_key="<AIXPLAIN_API_KEY>")

search_tool = aix.Tool.get("tavily/tavily-web-search/tavily")

agent = aix.Agent(
    name="Research agent",
    description="Answers questions with concise web-grounded findings.",
    instructions="Use the search tool when needed and cite key findings.",
    tools=[search_tool],
)
agent.save()

result = agent.run(query="Summarize the latest AgenticOS updates.")
print(result.data.output)

Build a multi-agent team (v2)

from aixplain import Aixplain

aix = Aixplain(api_key="<AIXPLAIN_API_KEY>")
search_tool = aix.Tool.get("tavily/tavily-web-search/tavily")

planner = aix.Agent(
    name="Planner",
    instructions="Break requests into clear subtasks."
)

researcher = aix.Agent(
    name="Researcher",
    instructions="Find and summarize reliable sources.",
    tools=[search_tool],
)

team_agent = aix.Agent(
    name="Research team",
    instructions="Delegate work to subagents, then return one final answer.",
    subagents=[planner, researcher],
)
team_agent.save()

response = team_agent.run(query="Compare top open-source agent frameworks in 5 bullets.")
print(response.data.output)
v1 (legacy)

Create and run your first agent (v1)

from aixplain.factories import AgentFactory, ModelFactory

weather_tool = ModelFactory.get("66f83c216eb563266175e201")

agent = AgentFactory.create(
    name="Weather Agent",
    description="Answers weather queries.",
    instructions="Use the weather tool to answer user questions.",
    tools=[weather_tool],
)

result = agent.run("What is the weather in Liverpool, UK?")
print(result["data"]["output"])

You can still access legacy docs at docs.aixplain.com/1.0.


Data handling and deployment

aiXplain applies runtime governance and enterprise controls by default:

  • No data retained by default — agent memory is opt-in (short-term and long-term).
  • SOC 2 Type II certified — enterprise security and compliance posture.
  • Runtime policy enforcement — Inspector and Bodyguard govern every agent execution.
  • Sovereign deployment options — serverless or private (on-prem, VPC, and air-gapped).
  • Encryption — TLS 1.2+ in transit and encrypted storage at rest.

Learn more at aiXplain Security and Sovereignty.


Pricing

Start free, then scale with usage-based pricing.

  • Pay as you go — prepaid usage with no surprise overage bills.
  • Subscription plans — reduce effective consumption-based rates.
  • Custom enterprise pricing — available for advanced scale and deployment needs.

Learn more at aiXplain Pricing.


Community & support


License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Metadata

Release files for aiXplain 0.2.43

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiXplain 0.2.43
File Size Uploaded Provenance Actions
aixplain-0.2.43.tar.gz 1.3 MB Without provenance Details for aixplain-0.2.43.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aiXplain 0.2.43
File Interpreter ABI Platform Actions
aixplain-0.2.43-py3-none-any.whl Python 3 none any Details for aixplain-0.2.43-py3-none-any.whl

Total release size: 1.9 MB

Release files / aixplain-0.2.43.tar.gz

Download URL aixplain-0.2.43.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
728f95ff345887aff1fb13fa4750d811d5f72b07840e97f72aed0f9db5469d5c
BLAKE2b-256 checksum
How to use checksums
5339266f4d0388eeb6aa63f1783b40de663a3fea03f4b4e79c9ca28c1b4cb292
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / aixplain-0.2.43-py3-none-any.whl

Download URL aixplain-0.2.43-py3-none-any.whl
Size 635.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0bb82326e58becce72b4e5cdb1741ceb23faa30015b96e538c028a53ab38af8
BLAKE2b-256 checksum
How to use checksums
51932310d500aeb84a890983c7856cd1167dcaabb53d96c8d41175aab80c173f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for aiXplain 0.2.43

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.43 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page