Install the SDK
npm install @handit.ai/node
pip install -U handit-sdk
Configure Your Environment
Get your API key from the Handit.AI Dashboard and configure the SDK:
import { config } from '@handit.ai/node';
// Configure with your API key
config({
apiKey: 'your-api-key', // Required: your API key
});
from handit import HanditTracker
tracker = HanditTracker()
tracker.config(api_key="your-api-key")
Set Up Agent Configuration
Copy your agent's tracking configuration from the Connect Agent section in the AI Performance Hub:
const agentsTrackingConfig = {
"mariaManager": {
"documentCompressor": "mariaManager-documentCopp",
"taskAssigner": "mariaManager-taskAssigner",
"taskAssignerApiCall": "mariaManager-tooltaskAssign02",
"vectorStoreRetrieval": "mariaManager-toolvectorStorq4"
}
}
agent_config = {
"mar_i_a_manager": {
"document_compressor": "mariaManager-documentCopp",
"task_assigner": "mariaManager-taskAssigner",
"task_assigner_api_call": "mariaManager-tooltaskAssign02",
"vector_store_retrieval": "mariaManager-toolvectorStorq4"
}
}