Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionEvaluate interactions with an
Evaluatorcomponent, which records its verdict in the ledger, metrics and traces.Write anEvaluatorcomponent that calls a judge agent of your own to judge whether an output is grounded in a reference text.Write anEvaluatorcomponent that calls a judge agent of your own to judge a summarization.Write anEvaluatorcomponent that calls a judge agent of your own to judge if a text is racist, biased or toxic.UseMessageContent.ImageMessageContent.fromUri(String)instead.UseMessageContent.ImageMessageContent.fromUri(URI)instead.UseMessageContent.PdfMessageContent.fromUri(String)instead.UseMessageContent.PdfMessageContent.fromUri(URI)instead.Use constructor with api and reasoningEffort, or the static factory method andwithmethods.Use constructor with thinkingLevel, or the static factory method andwithmethods.SimilarityGuard is deprecated for everyuse-forvalue. Formodel-requestandmcp-tool-response, useModelCallSimilarityGuard. The SDK has no built-in replacement formodel-responseormcp-tool-request.ImplementToolCallGuardrail,ModelCallGuardrailorAgentResponseGuardrailinstead. The new interfaces return aDecision(Allow/Deny/Fail) and receive a per-call context.binary not supported, always returns empty. UseMetadata.get(String).binary not supported, always returns empty. UseMetadata.getAll(String).UseSanitizerClient, which masks with one configured sanitizer by name.
-
Deprecated InterfacesInterfaceDescriptionEvaluate interactions with an
Evaluatorcomponent, which records its verdict in the ledger, metrics and traces.ImplementToolCallGuardrail,ModelCallGuardrailorAgentResponseGuardrailinstead. The new interfaces return aDecision(Allow/Deny/Fail) and receive a per-call context.UseSanitizerClient, which masks with one configured sanitizer by name.
-
Deprecated ClassesClassDescriptionWrite an
Evaluatorcomponent that calls a judge agent of your own to judge whether an output is grounded in a reference text.Write anEvaluatorcomponent that calls a judge agent of your own to judge a summarization.Write anEvaluatorcomponent that calls a judge agent of your own to judge if a text is racist, biased or toxic.SimilarityGuard is deprecated for everyuse-forvalue. Formodel-requestandmcp-tool-response, useModelCallSimilarityGuard. The SDK has no built-in replacement formodel-responseormcp-tool-request.
-
Deprecated Record ClassesRecord ClassDescription
-
Deprecated MethodsMethodDescriptionUse
MessageContent.ImageMessageContent.fromUri(String)instead.UseMessageContent.ImageMessageContent.fromUri(URI)instead.UseMessageContent.PdfMessageContent.fromUri(String)instead.UseMessageContent.PdfMessageContent.fromUri(URI)instead.Switch over the subject and readSubject.Interaction.agentComponentId()instead.Switch over the subject and readSubject.Interaction.interactionId()instead.Switch overEvaluationRecord.subject()instead.Switch overEvaluationRecord.subject()instead.binary not supported, always returns empty. UseMetadata.get(String).binary not supported, always returns empty. UseMetadata.getAll(String).
-
Deprecated ConstructorsConstructorDescriptionUse constructor with api and reasoningEffort, or the static factory method and
withmethods.Use constructor with thinkingLevel, or the static factory method andwithmethods.Use the constructor with aEvaluationRecord.Subjectand the attributes.