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.
- After installing AgentStack, start a new project by running the following in your terminal:
agentstack init <project_name>
- 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:
agentstack generate agent <agent_name>
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.
- Create a new task by running the following:
agentstack generate task <task_name>
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.
- Add AgentQL as a tool for your agent project by running the following:
agentstack tools add agentql
- In the
.env
file in your project, add your AgentQL API key as an environment variableAGENTQL_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:
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.