Judgeval Python-v0 SDKResponse Types

PromptScorer

Class instances for scorer configuration and management

Class instances returned by PromptScorer.get() that provide scorer configuration and management methods.

Note: PromptScorer.create() is deprecated in v0. Create scorers on the Judgment platform and use get() to retrieve them.

Usage Pattern

# Create your scorer on the Judgment platform first, then retrieve it
scorer = PromptScorer.get(name="positivity_scorer")

# PromptScorer instances provide configuration methods
print(scorer.get_name())  # Access properties
scorer.set_threshold(0.8)  # Update configuration
scorer.append_to_prompt("Consider tone and sentiment.")  # Modify prompt

Documentation

See PromptScorer for complete API documentation including:

  • Static method (PromptScorer.get())
  • Configuration methods (.set_prompt(), .set_options(), .set_threshold())
  • Getter methods (.get_prompt(), .get_options(), .get_config())