1
Setup your project in
chat-with-tools.2
Write your first Agentica agent.
Installation
We’ll setup our project in a new directory calledchat-with-tools.
- Python+uv
- Python+pip
- TypeScript+Node
- TypeScript+Bun
Prerequisites:Export your API key under the Then, start editing your
- Python version
3.12.* uvpackage manager- Your Agentica API key from the login page
AGENTICA_API_KEY environment variable.main.py file.Your First Agent
- Python
- TypeScript
main.py
- We spawned an agent with a premise describing its role.
- The
StreamLoggerlets us stream the agent’s thinking as it runs. - We passed tools to
agent.call()— the agent automatically decides when to use them. - The agent maintains conversation history, so it remembers context across messages.