Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionuse contentLoaderuse contentLoaderuse
ContentLoaderUseMessageContent.ImageMessageContent.fromUri(String)instead.UseMessageContent.ImageMessageContent.fromUri(URI)instead.UseMessageContent.ImageUrlMessageContent.uri()instead.UseMessageContent.PdfMessageContent.fromUri(String)instead.UseMessageContent.PdfMessageContent.fromUri(URI)instead.UsePdfUrlMessageContent(URI)instead.UseMessageContent.PdfUrlMessageContent.uri()instead.Use constructor with prompt caching settingsUse constructor with prompt caching settingsUse constructor with baseUrl parameter, or the static factory method andwithmethods.Using SimilarityGuard formodel-requestormodel-responseis deprecated. SimilarityGuard will support onlymcp-tool-requestandmcp-tool-response. Formodel-request, useModelCallSimilarityGuard. The SDK has no replacement formodel-response.ImplementToolCallGuardrail,ModelCallGuardrailorAgentResponseGuardrailinstead. The new interfaces return aDecision(Allow/Deny/Fail) and receive a per-call context. For MCP tool calls,TextGuardrailis still the only guardrail type.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 InterfacesInterfaceDescriptionuse
ContentLoaderImplementToolCallGuardrail,ModelCallGuardrailorAgentResponseGuardrailinstead. The new interfaces return aDecision(Allow/Deny/Fail) and receive a per-call context. For MCP tool calls,TextGuardrailis still the only guardrail type.UseSanitizerClient, which masks with one configured sanitizer by name.
-
Deprecated ClassesClassDescriptionUsing SimilarityGuard for
model-requestormodel-responseis deprecated. SimilarityGuard will support onlymcp-tool-requestandmcp-tool-response. Formodel-request, useModelCallSimilarityGuard. The SDK has no replacement formodel-response.
-
Deprecated Record ClassesRecord ClassDescription
-
Deprecated MethodsMethodDescriptionuse contentLoaderuse contentLoaderUse
MessageContent.ImageMessageContent.fromUri(String)instead.UseMessageContent.ImageMessageContent.fromUri(URI)instead.UseMessageContent.ImageUrlMessageContent.uri()instead.UseMessageContent.PdfMessageContent.fromUri(String)instead.UseMessageContent.PdfMessageContent.fromUri(URI)instead.UseMessageContent.PdfUrlMessageContent.uri()instead.binary not supported, always returns empty. UseMetadata.get(String).binary not supported, always returns empty. UseMetadata.getAll(String).
-
Deprecated ConstructorsConstructorDescriptionUse
PdfUrlMessageContent(URI)instead.Use constructor with prompt caching settingsUse constructor with prompt caching settingsUse constructor with baseUrl parameter, or the static factory method andwithmethods.