Skip to content

Commit c4e949e

Browse files
jsonbaileyclaude
andcommitted
chore: simplify :return: docstrings on evaluate methods
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8ed390f commit c4e949e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/sdk/server-ai/src/ldai/judge/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async def evaluate(
5151
:param input_text: The input prompt or question that was provided to the AI
5252
:param output_text: The AI-generated response to be evaluated
5353
:param sampling_rate: Sampling rate (0-1) to determine if evaluation should be processed (defaults to 1)
54-
:return: Evaluation result; ``sampled=True`` when the evaluation was sampled and run
54+
:return: The result of the judge evaluation.
5555
"""
5656
judge_result = JudgeResult(judge_config_key=self._ai_config.key)
5757

@@ -110,7 +110,7 @@ async def evaluate_messages(
110110
:param messages: Array of messages representing the conversation history
111111
:param response: The AI response to be evaluated
112112
:param sampling_ratio: Sampling ratio (0-1) to determine if evaluation should be processed (defaults to 1)
113-
:return: Evaluation result; ``sampled=True`` when the evaluation was sampled and run
113+
:return: The result of the judge evaluation.
114114
"""
115115
input_text = '\r\n'.join([msg.content for msg in messages]) if messages else ''
116116
output_text = response.message.content

0 commit comments

Comments
 (0)