Getting Started with Metering
This guide walks you through setting up your first agent and seeing usage data in real-time. You’ll create an agent type, deploy an instance, integrate the SDK, and view live metering data.Step 1: Create Agent Type
An agent type defines what kind of AI service you’re offering. It’s like a template that describes your agent’s capabilities. Navigate to Agents > Types > Create New. Fill in the form with your agent details. Give it a name like “OCR Agent” and a description that explains what it does. The type field identifies the agent framework or technology you’re using. Once you create the agent type, it’s ready to use. You can create multiple instances from a single agent type.Step 2: Create Agent Instance
An agent instance is a specific deployment of your agent type. This is where your agent actually runs and sends usage data. Navigate to Agents > Instances > Create New. Fill in the instance details. Give it a name like “OCR Agent instance for Acme” and select the agent type you created. You can also associate it with an account and contact if you have those set up. When you create the instance, you’ll receive a secret token. This token identifies which instance is sending events. Keep it secure.Step 3: Integrate SDK
Install the Valmi Value Python SDK and configure it with your instance’s secret token. First, install the SDK:VALUE_AGENT_SECRET environment variable to your instance’s secret token: