66from ldclient .client import LDClient
77
88from ldai .chat import TrackedChat
9- from ldai .judge import AIJudge
9+ from ldai .judge import Judge
1010from ldai .models import (AIAgentConfig , AIAgentConfigDefault ,
1111 AIAgentConfigRequest , AIAgents , AICompletionConfig ,
1212 AICompletionConfigDefault , AIJudgeConfig ,
@@ -121,7 +121,7 @@ async def create_judge(
121121 default_value : AIJudgeConfigDefault ,
122122 variables : Optional [Dict [str , Any ]] = None ,
123123 default_ai_provider : Optional [SupportedAIProvider ] = None ,
124- ) -> Optional [AIJudge ]:
124+ ) -> Optional [Judge ]:
125125 """
126126 Creates and returns a new Judge instance for AI evaluation.
127127
@@ -182,7 +182,7 @@ async def create_judge(
182182 if not provider :
183183 return None
184184
185- return AIJudge (judge_config , judge_config .tracker , provider , self ._logger )
185+ return Judge (judge_config , judge_config .tracker , provider , self ._logger )
186186 except Exception as error :
187187 # Would log error if logger available
188188 return None
@@ -193,7 +193,7 @@ async def _initialize_judges(
193193 context : Context ,
194194 variables : Optional [Dict [str , Any ]] = None ,
195195 default_ai_provider : Optional [SupportedAIProvider ] = None ,
196- ) -> Dict [str , AIJudge ]:
196+ ) -> Dict [str , Judge ]:
197197 """
198198 Initialize judges from judge configurations.
199199
@@ -203,7 +203,7 @@ async def _initialize_judges(
203203 :param default_ai_provider: Optional default AI provider to use
204204 :return: Dictionary of judge instances keyed by their configuration keys
205205 """
206- judges : Dict [str , AIJudge ] = {}
206+ judges : Dict [str , Judge ] = {}
207207
208208 async def create_judge_for_config (judge_key : str ):
209209 judge = await self .create_judge (
0 commit comments