Prerequisites
- A Latitude account (Sign up at latitude.so or use your self-hosted instance)
- Access to at least one AI provider (OpenAI, Anthropic, Google, etc.)
- Node.js (v16+) installed on your machine
1. Install and Initialize the SDK
2. Get or create a Prompt
3. Fetch a Prompt
4. Run a Prompt
5. Use Streaming Results and Logging
Handling Streaming Responses
Adding Custom Metadata for Logging
6. Trigger Evaluations Programmatically
Next Steps
Now that you’ve integrated Latitude into your code, you can:- Explore additional SDK capabilities in the SDK Reference
- Learn about Webhook integrations for event-driven workflows
- Set up automatic logging from various AI libraries
- Configure custom API authentication for your team