Skip to main content

Deploy an AI agent

Step 1: Create an access key.

Step 2: Install the aiXplain SDK.

Step 3: Copy the code snippet to build and deploy an agent.

Next: Build a multi-agent system.

Follow our Python quickstart for more.
pip install aixplain
## Create an Agent
import os
os.environ["TEAM_API_KEY"] = "<ACCESS_KEY>"

from aixplain.factories import AgentFactory
from aixplain.modules.agent import ModelTool

agent = AgentFactory.create(
name="Google Search agent",
description="You are an agent that uses Google Search to answer queries.",
tools=[
# Google Search
ModelTool(model="65c51c556eb563350f6e1bb1"),
],
)
agent_response = agent.run("What's an AI agent?")