Package ai.extend.types
Class JsonOutputMetadataValue
- java.lang.Object
-
- ai.extend.types.JsonOutputMetadataValue
-
public final class JsonOutputMetadataValue extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonOutputMetadataValue.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonOutputMetadataValue.Builderbuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.util.List<JsonOutputMetadataValueCitationsItem>>getCitations()java.util.Optional<java.util.List<Insight>>getInsights()java.util.Optional<java.lang.Double>getLogprobsConfidence()java.util.Optional<java.lang.Double>getOcrConfidence()java.util.Optional<java.lang.Integer>getReviewAgentScore()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getOcrConfidence
public java.util.Optional<java.lang.Double> getOcrConfidence()
- Returns:
- Confidence score from OCR processing, if applicable
-
getLogprobsConfidence
public java.util.Optional<java.lang.Double> getLogprobsConfidence()
- Returns:
- Confidence score based on model logprobs
-
getReviewAgentScore
public java.util.Optional<java.lang.Integer> getReviewAgentScore()
- Returns:
- A 1-5 score indicating the review agent's confidence in the extracted value.
- 5: High confidence, no issues detected
- 4: Good confidence, minor observations
- 3: Moderate confidence, some uncertainty
- 2: Low confidence, likely issues
- 1: Very low confidence, significant problems detected
These scores will be present when the
reviewAgent.enabledflag is set totruein the processor config. To learn more, view the Review Agent Documentation
-
getCitations
public java.util.Optional<java.util.List<JsonOutputMetadataValueCitationsItem>> getCitations()
-
getInsights
public java.util.Optional<java.util.List<Insight>> getInsights()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static JsonOutputMetadataValue.Builder builder()
-
-