AI LLM as Judge Policy

Return the judge score in a response header

Configure the AI LLM as Judge policy to return the score it assigns in a response header. Clients and downstream policies can read the score from the header without parsing the response body.

Prerequisites

  • An OpenAI API key.

  • An existing AI Model.

Environment variables

  • OPENAI_API_KEY: Your OpenAI API key

Set up the policy

Attach the policy

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!