Uses of Annotation Interface
dev.langchain4j.Internal
Packages that use Internal
Package
Description
-
Uses of Internal in dev.langchain4j.agentic.agent
Methods in dev.langchain4j.agentic.agent with annotations of type InternalModifier and TypeMethodDescriptionstatic <T> AgentBuilder<T, AgentBuilder<T, ?>> AgentBuilder.withoutDeclarativeConfiguration(Class<T> agentServiceClass) -
Uses of Internal in dev.langchain4j.agentic.declarative
Classes in dev.langchain4j.agentic.declarative with annotations of type Internal -
Uses of Internal in dev.langchain4j.agentic.internal
Classes in dev.langchain4j.agentic.internal with annotations of type Internal -
Uses of Internal in dev.langchain4j.agentic.observability
Classes in dev.langchain4j.agentic.observability with annotations of type InternalMethods in dev.langchain4j.agentic.observability with annotations of type Internal -
Uses of Internal in dev.langchain4j.agentic.scope
Classes in dev.langchain4j.agentic.scope with annotations of type InternalModifier and TypeInterfaceDescriptioninterfaceA codec for serializing and deserializingDefaultAgenticScopeobjects to and from JSON.classSingleton registry for managing AgenticScope instances.class -
Uses of Internal in dev.langchain4j.data.message
Classes in dev.langchain4j.data.message with annotations of type InternalModifier and TypeInterfaceDescriptioninterfaceA codec for serializing and deserializingChatMessageobjects to and from JSON.class -
Uses of Internal in dev.langchain4j.guardrail
Classes in dev.langchain4j.guardrail with annotations of type InternalModifier and TypeClassDescriptionclassAbstractGuardrailExecutor<C extends GuardrailsConfig, P extends GuardrailRequest<P>, R extends GuardrailResult<R>, G extends Guardrail<P,R>, E extends GuardrailExecutedEvent<P, R, G>, F extends GuardrailResult.Failure> Abstract base class forGuardrailExecutors. -
Uses of Internal in dev.langchain4j.http.client.log
Classes in dev.langchain4j.http.client.log with annotations of type Internal -
Uses of Internal in dev.langchain4j.http.client.sse
Classes in dev.langchain4j.http.client.sse with annotations of type InternalModifier and TypeClassDescriptionclassclassclass -
Uses of Internal in dev.langchain4j.internal
Classes in dev.langchain4j.internal with annotations of type InternalModifier and TypeClassDescriptionfinal classFactory for the "not implemented" result of an asynchronous / reactive SPI default method.final classPropagates cancellation from a single caller-facing "root" future to every downstream future produced while composing an asynchronous, possibly fan-out, pipeline (e.g. the RAG graph: transform → route → retrieve over many queries × retrievers).classclassUtility methods for working withCompletableFuture.classUtility class to guess the mime-type of a file from its path or URI.classResolves theExecutorthat LangChain4j uses to offload blocking work and run its asynchronous continuations.interfaceclassUtility methods for creating common exceptions.classclass@interfaceAnnotation to mark methods where JaCoCo coverage should be ignored.classJSON helper class.static interfaceThe abstract JSON codec interface.classclassConverts betweenJsonSchemaElementand JSON SchemaMaprepresentation with round-trip fidelity.classclassDelegatingStreamingChatResponseHandlerthat records whether the underlying handler received any typed, user-facing callback (partial response/thinking/tool call, complete tool call, complete response or error) while processing a single provider streaming event - i.e. whether the event was mapped to a typed callback.classfinal classDetection and naming for polymorphic base types — sealed interfaces / classes (no annotations needed) and types annotated with Jackson'sJsonSubTypes.final classEntry point for the JSON codec used by provider wire DTOs.classDescribes how a provider's wire DTOs are mapped to JSON, in terms that carry no dependency on a particular JSON library.final classUtility class for retrying actions.final classEntry point for the JSON codec used where values are not known ahead of time and their types have to be written into the document.classInternal helper that helps to build partial and complete tool calls during streaming.classHandles JSON serialization and deserialization ofToolSpecification.classclassDecides which types may be instantiated while reading JSON that carries type information.final classBuildsTypeinstances for generic types, so that a caller can ask aJson.JsonCodecfor aList<Foo>without a JSON library's type token.classUtility methods.classUtility class for validating method arguments.classUtility class for working with virtual threads introduced in Java 21. -
Uses of Internal in dev.langchain4j.invocation
Classes in dev.langchain4j.invocation with annotations of type InternalModifier and TypeInterfaceDescriptioninterfaceA marker interface for components that are managed by LangChain4j framework. -
Uses of Internal in dev.langchain4j.jackson3
Classes in dev.langchain4j.jackson3 with annotations of type InternalModifier and TypeClassDescriptionclassJackson 3 twin ofJacksonChatMessageJsonCodec.classfinal classJackson 3 changed a number of defaults.classJackson 3 implementation ofJson.JsonCodec.classclassJackson 3 codec for provider wire DTOs.classclassJackson 3 codec for JSON that carries type information.classclassJackson 3 twin of the default structured prompt factory.classJackson 3 twin of the default tool specification codec.class -
Uses of Internal in dev.langchain4j.jackson3.inmemory
Classes in dev.langchain4j.jackson3.inmemory with annotations of type InternalModifier and TypeClassDescriptionclassJackson 3 twin of the default in-memory embedding store codec.class -
Uses of Internal in dev.langchain4j.mcp.client
Classes in dev.langchain4j.mcp.client with annotations of type InternalModifier and TypeClassDescriptionfinal classConverts Jackson's tree model into plain JDK values, so that MCP APIs can expose JSON payloads without requiring callers to depend on Jackson. -
Uses of Internal in dev.langchain4j.mcp.client.transport
Classes in dev.langchain4j.mcp.client.transport with annotations of type InternalModifier and TypeClassDescriptionclassEncodes MCP header values per the spec's Value Encoding rule.final classBridges between JSON text and Jackson's tree model while both the deprecatedJsonNode-based transport API and its replacement coexist. -
Uses of Internal in dev.langchain4j.mcp.protocol
Classes in dev.langchain4j.mcp.protocol with annotations of type InternalModifier and TypeClassDescriptionclassCorresponds to theparamsof theCallToolRequesttype from the MCP schema.classCorresponds to theCallToolRequesttype from the MCP schema.classCorresponds to theCallToolResulttype from the MCP schema.classCorresponds to theCancelledNotificationtype from the MCP schema.classCorresponds to theparamsof theCancelledNotificationtype from the MCP schema.classclassCorresponds to theJSONRPCNotificationtype from the MCP schema.classCorresponds to theparamsof theJSONRPCRequesttype from the MCP schema.classCorresponds to theJSONRPCRequesttype from the MCP schema.classCorresponds to theJSONRPCResponsetype from the MCP schema.classCorresponds to theJSONRPCErrortype from the MCP schema.classCorresponds to theparamsof theGetPromptRequesttype from the MCP schema.classCorresponds to theGetPromptRequesttype from the MCP schema.classCorresponds to theGetPromptResulttype from the MCP schema.classCorresponds to theImplementationtype from the MCP schema.classCorresponds to theInitializedNotificationtype from the MCP schema.classCorresponds to theparamsof theInitializeRequesttype from the MCP schema.classCorresponds to theInitializeRequesttype from the MCP schema.classCorresponds to theInitializeResulttype from the MCP schema.classCorresponds to theJSONRPCMessagetype from the MCP schema.classCorresponds to theparamsof theListPromptsRequesttype from the MCP schema.classCorresponds to theListPromptsRequesttype from the MCP schema.classCorresponds to theListPromptsResulttype from the MCP schema.classCorresponds to theparamsof theListResourcesRequesttype from the MCP schema.classCorresponds to theListResourcesRequesttype from the MCP schema.classCorresponds to theListResourcesResulttype from the MCP schema.classCorresponds to theparamsof theListResourceTemplatesRequesttype from the MCP schema.classCorresponds to theListResourceTemplatesRequesttype from the MCP schema.classCorresponds to theListResourceTemplatesResulttype from the MCP schema.classCorresponds to theparamsof theListToolsRequesttype from the MCP schema.classCorresponds to theListToolsRequesttype from the MCP schema.classCorresponds to theListToolsResulttype from the MCP schema.classThe pagination envelope shared by everylistoperation in the MCP schema.classCorresponds to thePingRequesttype from the MCP schema.classCorresponds to theEmptyResulttype from the MCP schema (response to aPingRequest).classCorresponds to theparamsof theReadResourceRequesttype from the MCP schema.classCorresponds to theReadResourceRequesttype from the MCP schema.classCorresponds to theReadResourceResulttype from the MCP schema.classCorresponds to theRootsListChangedNotificationtype from the MCP schema.classCorresponds to theListRootsResulttype from the MCP schema.classCorresponds to theparamsof theServerDiscoverRequesttype from the MCP schema.classCorresponds to theServerDiscoverRequesttype from the MCP schema.classCorresponds to the result ofserver/discoverin the modern MCP protocol.enumEnum representing method names for server-initiated MCP messages.classOnly used with the legacy MCP protocol (versions up to 2025-11-25).classstatic classclassCorresponds to theSubscriptionsListenRequesttype from the MCP schema.classOnly used with the legacy MCP protocol (versions up to 2025-11-25). -
Uses of Internal in dev.langchain4j.mcp.registryclient
Classes in dev.langchain4j.mcp.registryclient with annotations of type Internal -
Uses of Internal in dev.langchain4j.mcp.transport.stdio
Classes in dev.langchain4j.mcp.transport.stdio with annotations of type Internal -
Uses of Internal in dev.langchain4j.model.anthropic.internal.client
Classes in dev.langchain4j.model.anthropic.internal.client with annotations of type InternalModifier and TypeClassDescriptionclassinterfaceclassclassDefault implementation ofAnthropicClientthat provides methods to interact with the Anthropic API for creating messages, counting tokens, and listing models.class -
Uses of Internal in dev.langchain4j.model.anthropic.internal.mapper
Classes in dev.langchain4j.model.anthropic.internal.mapper with annotations of type Internal -
Uses of Internal in dev.langchain4j.model.chat
Classes in dev.langchain4j.model.chat with annotations of type InternalModifier and TypeClassDescriptionfinal classBridges a single reactiveStreamingChatModel.chat(ChatRequest)call to aCompletableFutureof its terminalChatResponse: it subscribes with unbounded demand and completes the future with the lastChatResponseemitted by the stream. -
Uses of Internal in dev.langchain4j.model.embedding
Classes in dev.langchain4j.model.embedding with annotations of type Internal -
Uses of Internal in dev.langchain4j.model.input.structured
Classes in dev.langchain4j.model.input.structured with annotations of type InternalModifier and TypeClassDescriptionclassUtility class for structured prompts. -
Uses of Internal in dev.langchain4j.model.mistralai.internal.client
Classes in dev.langchain4j.model.mistralai.internal.client with annotations of type InternalModifier and TypeClassDescriptionclassclassinterface -
Uses of Internal in dev.langchain4j.model.mistralai.internal.mapper
Classes in dev.langchain4j.model.mistralai.internal.mapper with annotations of type Internal -
Uses of Internal in dev.langchain4j.model.openai
Classes in dev.langchain4j.model.openai with annotations of type InternalModifier and TypeClassDescriptionclassThis class needs to be thread safe because it is called when a streaming result comes back and there is no guarantee that this thread will be the same as the one that initiated the request, in fact it almost certainly won't be. -
Uses of Internal in dev.langchain4j.model.openai.internal
Classes in dev.langchain4j.model.openai.internal with annotations of type InternalModifier and TypeClassDescriptionfinal classfinal recordclassclass -
Uses of Internal in dev.langchain4j.model.openai.spi
Classes in dev.langchain4j.model.openai.spi with annotations of type InternalModifier and TypeInterfaceDescriptioninterfaceA factory for buildingOpenAiAudioTranscriptionModel.Builderinstances.interfaceA factory for buildingOpenAiChatModel.OpenAiChatModelBuilderinstances.interfaceA factory for buildingOpenAiEmbeddingModel.OpenAiEmbeddingModelBuilderinstances.interfaceA factory for buildingOpenAiImageModel.OpenAiImageModelBuilderinstances.interfaceA factory for buildingOpenAiLanguageModel.OpenAiLanguageModelBuilderinstances.interfaceA factory for buildingOpenAiModerationModel.OpenAiModerationModelBuilderinstances.interfaceA factory for buildingOpenAiStreamingChatModel.OpenAiStreamingChatModelBuilderinstances.interfaceA factory for buildingOpenAiStreamingLanguageModel.OpenAiStreamingLanguageModelBuilderinstances.interfaceA factory for buildingOpenAiTextToSpeechModel.Builderinstances. -
Uses of Internal in dev.langchain4j.model.vertexai.anthropic.internal.client
Classes in dev.langchain4j.model.vertexai.anthropic.internal.client with annotations of type Internal -
Uses of Internal in dev.langchain4j.reactive.streaming
Classes in dev.langchain4j.reactive.streaming with annotations of type InternalModifier and TypeClassDescriptionfinal classBuilds a reactivePublisher<ChatModelStreamingEvent>for a streaming chat model from an upstreamPublisher<HttpStreamingEvent>(typicallyhttpClient.stream(request, parser)), factoring out the boilerplate every provider's reactive path otherwise hand-rolls: a bounded, back-pressuredTubeofChatModelStreamingEvents (ZeroPublisher); a subscriber whose cancellation is subscription-based — it cancels the upstreamFlow.Subscriptionon any terminal signal (a downstream cancel, an error, or a buffer overflow), so, for example, an overflow actually aborts the HTTP connection; and delegation of each upstream event to a provider-suppliedHttpStreamingChatPublisher.Sink. Only the per-event interpretation (parsing the provider's SSE payloads and driving aStreamingChatResponseHandler/TubeBackedStreamingChatResponseHandler) is provider-specific; that lives in theHttpStreamingChatPublisher.Sink, created per subscription from theTube.final classShared defaults for the reactive (Flow.Publisher) streaming path used by streaming chat model providers.final classBridge from the handler-basedStreamingChatResponseHandlercontract to aTubeofChatModelStreamingEvents. -
Uses of Internal in dev.langchain4j.service
Classes in dev.langchain4j.service with annotations of type InternalModifier and TypeClassDescriptionclassclassA cold, non-blocking reactive stream for an AI Service method that returns aFlow.PublisherofAiServiceStreamingEvents.classclassParameters for creating anAiServiceTokenStream.classUtility class responsible for resolving variable names and values for prompt templates by leveraging method parameters and their annotations.classMethods in dev.langchain4j.service with annotations of type InternalModifier and TypeMethodDescriptionstatic <T> AiServices<T> AiServices.builder(AiServiceContext context) -
Uses of Internal in dev.langchain4j.service.guardrail
Classes in dev.langchain4j.service.guardrail with annotations of type InternalModifier and TypeClassDescriptionclassResponsible for managing and applying input and output guardrails to methods of a specified AI service class. -
Uses of Internal in dev.langchain4j.service.memory
Classes in dev.langchain4j.service.memory with annotations of type Internal -
Uses of Internal in dev.langchain4j.service.output
Classes in dev.langchain4j.service.output with annotations of type Internal -
Uses of Internal in dev.langchain4j.service.tool
Classes in dev.langchain4j.service.tool with annotations of type InternalModifier and TypeClassDescriptionclassstatic final recordclassclass -
Uses of Internal in dev.langchain4j.service.tool.search
Classes in dev.langchain4j.service.tool.search with annotations of type Internal -
Uses of Internal in dev.langchain4j.spi
Classes in dev.langchain4j.spi with annotations of type InternalModifier and TypeClassDescriptionclassUtility wrapper aroundServiceLoader.load(). -
Uses of Internal in dev.langchain4j.spi.agent.tool
Classes in dev.langchain4j.spi.agent.tool with annotations of type InternalModifier and TypeInterfaceDescriptioninterfaceA factory for creatingToolSpecificationJsonCodecinstances through SPI. -
Uses of Internal in dev.langchain4j.spi.data.document.parser
Classes in dev.langchain4j.spi.data.document.parser with annotations of type InternalModifier and TypeInterfaceDescriptioninterfaceA factory for creatingDocumentParserinstances through SPI. -
Uses of Internal in dev.langchain4j.spi.data.document.splitter
Classes in dev.langchain4j.spi.data.document.splitter with annotations of type InternalModifier and TypeInterfaceDescriptioninterfaceA factory for creatingDocumentSplitterinstances through SPI. -
Uses of Internal in dev.langchain4j.spi.data.message
Classes in dev.langchain4j.spi.data.message with annotations of type InternalModifier and TypeInterfaceDescriptioninterfaceA factory for creatingChatMessageJsonCodecobjects. -
Uses of Internal in dev.langchain4j.spi.json
Classes in dev.langchain4j.spi.json with annotations of type InternalModifier and TypeInterfaceDescriptioninterfaceA factory for creatingJson.JsonCodecinstances through SPI.interfaceCreates theJson.JsonCodecused to serialize a provider's wire DTOs.interfaceA factory for a JSON codec that writes and reads type information, discovered throughServiceHelper. -
Uses of Internal in dev.langchain4j.spi.model.embedding
Classes in dev.langchain4j.spi.model.embedding with annotations of type InternalModifier and TypeInterfaceDescriptioninterfaceA factory for creatingEmbeddingModelinstances through SPI. -
Uses of Internal in dev.langchain4j.spi.prompt
Classes in dev.langchain4j.spi.prompt with annotations of type InternalModifier and TypeInterfaceDescriptioninterfaceA factory for creating prompt templates.static interfaceInterface for input for the factory.static interfaceInterface for a prompt template. -
Uses of Internal in dev.langchain4j.spi.prompt.structured
Classes in dev.langchain4j.spi.prompt.structured with annotations of type InternalModifier and TypeInterfaceDescriptioninterfaceRepresents a factory for structured prompts. -
Uses of Internal in dev.langchain4j.spi.services
Classes in dev.langchain4j.spi.services with annotations of type InternalModifier and TypeInterfaceDescriptioninterfaceinterfaceinterfaceSPI for adapting a single-value asynchronous type (e.g.interfaceSPI for adapting the canonical reactive stream used internally by non-blocking streaming AI Services — aFlow.Publisher— to a third-party reactive type (e.g.interface -
Uses of Internal in dev.langchain4j.spi.store.embedding.inmemory
Classes in dev.langchain4j.spi.store.embedding.inmemory with annotations of type Internal -
Uses of Internal in dev.langchain4j.store.embedding.inmemory
Classes in dev.langchain4j.store.embedding.inmemory with annotations of type InternalModifier and TypeClassDescriptionstatic classInMemoryEmbeddingStore.Entry<Embedded>Public so that alternative JSON codecs, supplied throughInMemoryEmbeddingStoreJsonCodecFactory, can describe how an entry is serialized without living in this package.interface