Basic monitoring is only available for prompts retrieved directly from Basalt using the
get method. This approach is designed for simple use cases where you’re using a single prompt and not complex workflows. For advanced monitoring scenarios, please refer to the Tracing documentation.Basic Usage
When you retrieve a prompt using the SDK, it automatically includes ageneration object that can be used to monitor the complete interaction. Here’s how to use it:
User and Organization Identification
You can associate the generation with a specific user and organization by using theidentify method:
Evaluation
You can add automatic evaluators to assess the quality of the LLM output:generation.end() is called. For more information on available evaluators and how to create custom ones, see the Evaluation documentation.