Skip to main content
In this quickstart, you’ll build an AI agent that can search the web and analyze images. Let’s dive in!
Requirements: Python 3.11 or higher
1

Install Slide

2

Set Up Your API Key

Your agent needs an API key to use the LLM. Choose your provider:
Create your API key from platform.openai.com then add it to your environment:
For production, use a .env file. If you choose this approach:
  1. Install python-dotenv: uv add python-dotenv or pip install python-dotenv
  2. Create a .env file with your API keys
  3. Uncomment the dotenv import lines in the code example below
3

Create Your Agent

Create a file called agent.py:
4

Run Your Agent

Your agent will search for information about the Mars rover and create a summary. That’s it! 🎉

What’s Next?

Now that you have a working agent, explore these guides to add more capabilities:

Your First Agent

Detailed walkthrough with persistence and interactive sessions

Tyler CLI

Chat with agents instantly using the interactive CLI

Conversation Persistence

Make your agent maintain conversation history

Streaming Responses

See responses as they’re generated in real-time

Testing Agents

Write tests to ensure your agent behaves correctly

Deploy Your Agent

Deploy to Slack

Turn your agent into a Slack agent

Adding Tools

Add built-in and custom tools to agents

Troubleshooting

If you see errors like “No solution found when resolving dependencies” or “requires Python>=3.11”:For uv users:
For pip users: We recommend switching to uv for better dependency management:
Make sure to set your OpenAI API key:
Or use a different model provider:
Tyler automatically handles model-specific parameter restrictions. For example, O-series models only support temperature=1, but Tyler will automatically drop incompatible parameters, so you can use the same agent configuration across all models.
Make sure you’ve installed all packages:
Remember to use asyncio.run() or run in an async context: