Monitor and debug your AI agents with built-in observability features
SpinAI provides built-in observability features to help you monitor and debug your AI agents. By enabling logging, you can track agent interactions, performance metrics, and costs in real-time through the SpinAI dashboard.
Then, configure your agent with the API key and a unique agent ID:
Copy
const agent = createAgent({ instructions: "You are a customer support agent.", actions: [getCustomerInfo, getSubscriptionStatus, createTicket], model, // Enable observability with these two fields: agentId: "customer-support-agent", // Choose any unique identifier spinApiKey: process.env.SPINAI_API_KEY,});