Overview
AgentKit is a framework for building AI agents with tools, memory, and autonomous behavior. It provides a structured way to define what an agent can do and how it makes decisions, enabling developers to build flexible, task-oriented agents. By integrating with GBOX, AgentKit agents gain the ability to control managed headless browsers, enabling them to autonomously search the web, extract data, and interact with websites. This makes them well-suited for real-time information retrieval and robust web automation.Getting Started
1
Install Dependencies
Install the necessary dependencies for your project.
2
Add Environment Variables
Create a
.env file in your project root and add your GBOX API key:3
Setup an AgentKit Network with an Agent
Create a new file
agent.ts and set up your AgentKit network with an agent that can use GBOX:4
Define the Search Tool
Define the
searchReddit tool that uses GBOX to search Reddit:5
Put It All Together
Now, combine everything in your
agent.ts file to create a complete AgentKit network that can search Reddit:6
Run Your Agent
You can run your agent using the following command:This will execute the agent, which will search Reddit for the specified query and return summarized results.