To install and initialize AgentGuard, proceed as follows:
- Ensure that Node.js is installed on your system (recommended version 18 or higher).
- Clone AgentGuard's GitHub repository:
git clone https://github.com/dipampaul17/AgentGuard.git
The - Go to the project directory and install the dependencies:
npm install
The - Run the validation script to check if the installation was successful:
node verify-installation.js
The - Initialize AgentGuard in the project, for example:
const agentGuard = require('agent-guard'); await agentGuard.init({ limit: 50 });
whichlimit: 50
Indicates a budget cap of $50.
Once the above steps have been completed, AgentGuard is ready to start monitoring the cost of the project.
This answer comes from the articleAgentGuard: A Tool for Monitoring AI Agent Costs in Real Time and Preventing OverspendingThe