AgentStack Integration

AgentQL integrates with AgentStack, allowing you to scaffold agent projects with AgentQL and other tools.

AgentStack is a developer tool that makes building agents efficient and fast with just a few CLI commands.

Set up AgentQL with AgentStack

Before you start, install AgentStack and get your AgentQL API key.

  1. After installing AgentStack, start a new project by running the following in your terminal:
terminal
agentstack init <project_name>
  1. To create a new agent, you can either get started by selecting a template or, if you'd like to start on an empty project, run the following:
terminal
agentstack generate agent <agent_name>
note

In your newly added agent, there is an agent.yaml file where you can provide descriptions for each agent's role, goal, and backstory to configure its behavior. Learn more about Agents in AgentStack's documentation.

  1. Create a new task by running the following:
terminal
agentstack generate task <task_name>
note

Similar to AgentStack's agents, there is also a task.yaml file to fill out each task's description, expected output, and the agent that does the task. Learn more about Tasks in AgentStack's documentation.

You can create multiple tasks and agents by running those previous commands multiple times.

  1. Add AgentQL as a tool for your agent project by running the following:
terminal
agentstack tools add agentql
  1. In the .env file in your project, add your AgentQL API key as an environment variable AGENTQL_API_KEY=<API_KEY>.

Once that's done you can start creating your first agent! You can also use AgentStack's examples to get started.

Usage

Once you finish building your project, run it with the following command:

terminal
agentstack run

When your project is running, the agent decides which available tools to use to perform each of its respective tasks.

Support

If you have any questions about using AgentQL with AgentStack, you can join AgentStack's Discord here.

Examples