Skip to main content
This guide shows you how to pass Keywords AI parameters using the structured 3-layer approach for comprehensive LLM logging and monitoring.

Understanding the 3-Layer Structure

Keywords AI parameters are organized into three distinct layers, each serving a specific purpose in your LLM observability stack:
  • Layer 1: Required fields - Essential data for basic logging
  • Layer 2: Telemetry - Performance and cost metrics
  • Layer 3: Metadata - Custom tracking and identification

Layer 1: Required fields

These are the essential parameters needed for basic LLM request logging.

Core required fields

Basic implementation

Message structure

Prompt Messages Format:
Completion Message Format:

Layer 2: Telemetry

Performance metrics and cost tracking for monitoring LLM efficiency.

Telemetry parameters

Implementation with telemetry


Layer 3: Metadata

Custom tracking and identification parameters for advanced analytics and filtering.

Metadata parameters

Complete implementation


Need help?

Join our discord — we’ll help you pick the best fit.