Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionUse
MessageContent.ImageMessageContent.fromUri(String)instead.UseMessageContent.ImageMessageContent.fromUri(URI)instead.UseMessageContent.PdfMessageContent.fromUri(String)instead.UseMessageContent.PdfMessageContent.fromUri(URI)instead.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 InterfacesInterfaceDescriptionImplement
ToolCallGuardrail,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 ClassesClassDescriptionSimilarityGuard is deprecated for every
use-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.binary not supported, always returns empty. UseMetadata.get(String).binary not supported, always returns empty. UseMetadata.getAll(String).
-
Deprecated ConstructorsConstructorDescriptionUse constructor with thinkingLevel, or the static factory method and
withmethods.