Single-Turn Production Monitoring
For simple, single-turn interactions, create a production session and usegaltea.inference_results.create_and_evaluate() to log and evaluate the interaction in a single call.
Multi-Turn Production Monitoring (Conversations)
For multi-turn conversations, use the session-based workflow to log the entire interaction first and then evaluate it.1. Create a Session
First, create a session at the start of the conversation. For production monitoring, make sure to set
is_production=True.2. Log Conversation Turns
Next, log the user-assistant interactions. You can do this individually as each turn happens or in a single batch after the conversation ends.
- Log Turns Individually
- Log Turns in a Batch
This approach is useful for logging interactions in real-time in a live application.
For more details on evaluating multi-turn conversations, see the Evaluating Conversations guide.
Next Steps
Evaluating Conversations
Evaluate full multi-turn production conversations.
Tracing Agent Operations
Capture and analyze internal agent operations in production.