A B C D E F G H I J K L M N O P Q R S T U V W 
All Classes All Packages

A

accept(String) - Method in class com.composum.ai.backend.base.service.StringstreamSlowdown
 
activate(GPTBackendConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTBackendsConfigurationServiceImpl
 
activate(GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig, BundleContext) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
activate(GPTDictationServiceImpl.GPTDictationServiceConfig) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
activate(GPTTranslationServiceImpl.Config) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
activate(GetPageMarkdownAITool.Config) - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
 
activate(ModifyPageReadTool.Config) - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool
 
activate(ModifyPageWriteTool.Config) - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageWriteTool
 
activate(SearchPageAITool.Config) - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
 
activate(ApproximateMarkdownServiceImpl.Config) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
activate(HtmlToApproximateMarkdownServicePlugin.Config) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
 
activate(MarkdownSlingCacheImpl.Config) - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
 
activate(SlingCaConfigPluginImpl.Config) - Method in class com.composum.ai.backend.slingbase.impl.SlingCaConfigPluginImpl
 
activate(GPTPermissionConfiguration) - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginFactoryImpl
 
activate(GPTPermissionConfiguration) - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginImpl
 
activate(GPTPromptLibrary) - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIPromptlibConfigurationPluginImpl
 
activate(BundleContext) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
 
activate(BundleContext) - Method in class com.composum.ai.backend.slingbase.AIDictationServlet
 
adaptTo(Class<AdapterType>) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
addCookie(Cookie) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
additionalHeader1Key() - Method in annotation type com.composum.ai.backend.base.service.chat.GPTBackendConfiguration
 
additionalHeader1Value() - Method in annotation type com.composum.ai.backend.base.service.chat.GPTBackendConfiguration
 
additionalHeader2Key() - Method in annotation type com.composum.ai.backend.base.service.chat.GPTBackendConfiguration
 
additionalHeader2Value() - Method in annotation type com.composum.ai.backend.base.service.chat.GPTBackendConfiguration
 
additionalHeader3Key() - Method in annotation type com.composum.ai.backend.base.service.chat.GPTBackendConfiguration
 
additionalHeader3Value() - Method in annotation type com.composum.ai.backend.base.service.chat.GPTBackendConfiguration
 
addMessage(GPTChatMessage) - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
Builder style adding of messages.
addMessage(GPTMessageRole, String) - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
Builder style adding of messages.
addMessages(List<GPTChatMessage>) - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
Builder style adding of messages.
addTool(AITool) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
 
addWholeResponseListener(Consumer<String>) - Method in class com.composum.ai.backend.slingbase.EventStream
 
ADMISSIBLE_PATH_PATTERN - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
We allow generating markdown for subpaths of /content, /public and /preview .
admissibleKey(String) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
admissibleValue(Object) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
We do not print pure numbers, booleans and some special strings since those are likely attributes determining the component layout, not actual text that is printed.
AIConfigurationPlugin - Interface in com.composum.ai.backend.slingbase
 
aiConfigurationService - Variable in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
 
AIConfigurationService - Interface in com.composum.ai.backend.slingbase
This is the primary service interface that provides methods to check which AI services are allowed.
AIConfigurationServiceImpl - Class in com.composum.ai.backend.slingbase.impl
Collects the configurations from AIConfigurationPlugins and aggregates them.
AIConfigurationServiceImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
 
AIConfigurationServlet - Class in com.composum.ai.backend.slingbase
AIConfigurationServlet provides access to AI configurations.
AIConfigurationServlet() - Constructor for class com.composum.ai.backend.slingbase.AIConfigurationServlet
 
AICreateServlet - Class in com.composum.ai.backend.slingbase
Servlet providing the various services from the backend as servlet, which are useable for the authors.
AICreateServlet() - Constructor for class com.composum.ai.backend.slingbase.AICreateServlet
 
AIDictationServlet - Class in com.composum.ai.backend.slingbase
Servlet providing a dictation service - returns a transcribed text from an audio file.
AIDictationServlet() - Constructor for class com.composum.ai.backend.slingbase.AIDictationServlet
 
AIResourceUtil - Class in com.composum.ai.backend.slingbase
 
AIResourceUtil() - Constructor for class com.composum.ai.backend.slingbase.AIResourceUtil
 
AITemplatingRetryableException(String) - Constructor for exception com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl.AITemplatingRetryableException
 
AITemplatingService - Interface in com.composum.ai.backend.slingbase.experimential
Experimential service to provide page templating functionality: a page / component contains various prompts in it's properties which are replaced by the response of the AI.
AITemplatingServiceImpl - Class in com.composum.ai.backend.slingbase.experimential.impl
This implementation uses the markers: A field that is a prompt begins with PROMPTFIELD: A field that is referenced by other fields begins with PROMPTFIELD#ID: where ID is a unique identifier for the field A URL source is added as SOURCEURL(https://example.com/) after that. A prompt that applies to the whole page can be put into a multi line field; it begins on a line with PAGEPROMPT:
AITemplatingServiceImpl() - Constructor for class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
AITemplatingServiceImpl.AITemplatingRetryableException - Exception in com.composum.ai.backend.slingbase.experimential.impl
An exception that says something is wrong with the response, but that might be temporary and can be retried.
AITemplatingServiceImpl.Replacement - Class in com.composum.ai.backend.slingbase.experimential.impl
 
AITemplatingServlet - Class in com.composum.ai.backend.slingbase.experimential
Servlet providing services related to templating.
AITemplatingServlet() - Constructor for class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
 
AITemplatingServlet.Method - Enum in com.composum.ai.backend.slingbase.experimential
 
AITool - Interface in com.composum.ai.backend.slingbase.experimential
An action the AI can perform - likely from the sidebar chat.
allowDenyCheck(String, Pattern, Pattern) - Static method in class com.composum.ai.backend.slingbase.impl.AllowDenyMatcherUtil
Check whether a value matches the allowPattern but not the denyPattern.
AllowDenyMatcherUtil - Class in com.composum.ai.backend.slingbase.impl
Utilities for matching allow / deny String[] pattern collections.
AllowDenyMatcherUtil() - Constructor for class com.composum.ai.backend.slingbase.impl.AllowDenyMatcherUtil
 
allowedComponents() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
 
allowedPageTemplates() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
 
allowedPaths() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
 
allowedPathsRegex() - Method in annotation type com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool.Config
 
allowedPathsRegex() - Method in annotation type com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool.Config
 
allowedPathsRegex() - Method in annotation type com.composum.ai.backend.slingbase.experimential.impl.ModifyPageWriteTool.Config
 
allowedResourceTypePattern - Variable in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
 
allowedResourceTypes() - Method in annotation type com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.Config
 
allowedServices(SlingHttpServletRequest, String) - Method in class com.composum.ai.backend.slingbase.impl.SlingCaConfigPluginImpl
 
allowedServices(SlingHttpServletRequest, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationPlugin
Determines the allowed services based on the provided request, content path, and editor URL.
allowedServices(SlingHttpServletRequest, String) - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginImpl
 
allowedServices(SlingHttpServletRequest, String, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationService
Method to check which services are allowed, based on the path and editor URL provided.
allowedServices(SlingHttpServletRequest, String, String) - Method in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
Union of the plugin's results.
allowedUsers() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
 
allowedViews() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
 
allows(String, String) - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
Checks whether this allows the given service for the given resourceType
allows(String, String) - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
 
apiEndpoint() - Method in annotation type com.composum.ai.backend.base.service.chat.GPTBackendConfiguration
 
approximateMarkdown(Resource, PrintWriter, SlingHttpServletRequest, SlingHttpServletResponse) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownService
Generates a text formatted with markdown that heuristically represents the text content of a page or resource, mainly for use with the AI.
approximateMarkdown(Resource, PrintWriter, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
approximateMarkdown(Resource, SlingHttpServletRequest, SlingHttpServletResponse) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownService
Generates a text formatted with markdown that heuristically represents the text content of a page or resource, mainly for use with the AI.
approximateMarkdown(Resource, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
ApproximateMarkdownService - Interface in com.composum.ai.backend.slingbase
A service to create markdown with an approximate text content from a page or resource, for use with querying the AI about it.
ApproximateMarkdownService.Link - Class in com.composum.ai.backend.slingbase
A link from a component.
ApproximateMarkdownServiceImpl - Class in com.composum.ai.backend.slingbase.impl
Implementation for ApproximateMarkdownService.
ApproximateMarkdownServiceImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
ApproximateMarkdownServiceImpl.Config - Annotation Type in com.composum.ai.backend.slingbase.impl
Configuration class Config that allows us to configure TEXT_ATTRIBUTES.
ApproximateMarkdownServicePlugin - Interface in com.composum.ai.backend.slingbase
Implements special treatment for some resources, depending on the actual system.
ApproximateMarkdownServicePlugin.PluginResult - Enum in com.composum.ai.backend.slingbase
Result of the plugin execution.
ApproximateMarkdownServlet - Class in com.composum.ai.backend.slingbase
Renders an approximate markdown representation of the text content of a page / resource.
ApproximateMarkdownServlet() - Constructor for class com.composum.ai.backend.slingbase.ApproximateMarkdownServlet
 
ASSISTANT - com.composum.ai.backend.base.service.chat.GPTMessageRole
The assistant messages help store prior responses.
ASSISTANT - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.Role
 
ATTRIBUTE_TO_MARKDOWN_PREFIX - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
attributeToMarkdown(Resource, String, String) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
authenticate(HttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 

B

backendId() - Method in annotation type com.composum.ai.backend.base.service.chat.GPTBackendConfiguration
 
backendsConfigurationServices - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTBackendsServiceImpl
 
backendsService - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
basicCheck(GPTPermissionConfiguration, SlingHttpServletRequest, String, String) - Method in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
Determines whether the configuration allows access wrt.
blacklistedResourceType - Variable in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
ResourceTypes we ignore since their rendering uses unsupported methods.
blacklistedResourceTypeCleanupTime - Variable in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
 
buildException(Integer, String) - Static method in exception com.composum.ai.backend.base.service.GPTException
 
buildResult() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
 
bundleContext - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
bundleContext - Variable in class com.composum.ai.backend.slingbase.AICreateServlet
 
bundleContext - Variable in class com.composum.ai.backend.slingbase.AIDictationServlet
 

C

cacheDir - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
cacheMarkdown(Resource, String) - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
 
cacheMarkdown(Resource, String) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin
An optional way to cache calculated markdowns - if a plugin implements this, it can retrieve that on ApproximateMarkdownServicePlugin.maybeHandle(Resource, PrintWriter, ApproximateMarkdownService, SlingHttpServletRequest, SlingHttpServletResponse).
cacheResponse(String, GPTChatRequest, String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
cacheRootPath() - Method in annotation type com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl.Config
 
callback - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
 
cancelled() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.EnsureResultFutureCallback
 
capacityIncrement() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
 
captureHtmlTags(String) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
CapturingResponse(SlingHttpServletResponse, PrintWriter, String) - Constructor for class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
changeSessionId() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
CHAT - com.composum.ai.backend.base.service.chat.GPTConfiguration.Mode
Uses a system prompt appropriate for a chat.
CHAT - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
ChatCompletionChoice - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
Represents a choice in the chat completion response.
ChatCompletionChoice() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
 
ChatCompletionChoiceMessage - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
Represents the message content in a chat completion choice, including the role (e.g., user, assistant) and the actual text content of the message.
ChatCompletionChoiceMessage() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoiceMessage
 
ChatCompletionFunctionCallDetails - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
Represents the a call of a function used as a tool in the chat completion request.
ChatCompletionFunctionCallDetails() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
 
ChatCompletionFunctionDetails - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
Represents the details of a function used as a tool in the chat completion request.
ChatCompletionFunctionDetails() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
 
ChatCompletionMessage - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
Represents a message in a chat completion request, containing the role of the speaker (user, assistant, or system) and the message content, which may include text or other parts.
ChatCompletionMessage() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
 
ChatCompletionMessagePart - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
Represents a part of a chat completion message, which may be a text or an image URL.
ChatCompletionMessagePart() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
 
ChatCompletionMessagePart.ChatCompletionMessagePartListDeSerializer - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
 
ChatCompletionMessagePart.ChatCompletionMessageUrlPart - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
Encodes URL part: { "url": "https://example.com/somepicture.jpg" }
ChatCompletionMessagePart.ImageDetail - Enum in com.composum.ai.backend.base.service.chat.impl.chatmodel
 
ChatCompletionMessagePart.Type - Enum in com.composum.ai.backend.base.service.chat.impl.chatmodel
 
ChatCompletionMessagePartListDeSerializer() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessagePartListDeSerializer
 
ChatCompletionMessageUrlPart() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessageUrlPart
 
ChatCompletionRequest - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
Represents a request to the OpenAI chat completion API, including model, messages, and optional parameters like max tokens, temperature, and response format.
ChatCompletionRequest() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
ChatCompletionRequest.ResponseFormat - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
 
ChatCompletionRequest.ResponseFormatType - Enum in com.composum.ai.backend.base.service.chat.impl.chatmodel
 
ChatCompletionRequest.Role - Enum in com.composum.ai.backend.base.service.chat.impl.chatmodel
 
ChatCompletionResponse - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
Represents the response from the OpenAI chat completion API, containing details about the generated choices, token usage, and metadata like the model used and creation time.
ChatCompletionResponse() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
ChatCompletionResponse.FinishReason - Enum in com.composum.ai.backend.base.service.chat.impl.chatmodel
 
chatCompletionService - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
chatCompletionService - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTEmbeddingServiceImpl
 
chatCompletionService - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
chatCompletionService - Variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
chatCompletionService - Variable in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
 
chatCompletionService - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
chatCompletionService - Variable in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
 
ChatCompletionToolCall - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
Represents a tool call generated by the model in a chat completion response.
ChatCompletionToolCall() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
 
ChatCompletionUsage - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
Represents the token usage details in a chat completion response, including the number of tokens used for the prompt, the completion, and the total.
ChatCompletionUsage() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
 
chatService - Variable in class com.composum.ai.backend.slingbase.ApproximateMarkdownServlet
 
ChatTool - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
Represents a tool in the OpenAI chat completion request, currently limited to functions.
ChatTool() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatTool
 
checkEnabled() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
checkEnabled(GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
checkTokenCount(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
checkUrlAdmissible(URI) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
cleanupBlacklist() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
 
close() - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
Notifies that the request is completely finished / closed, nothing more will arrive.
close() - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
 
close() - Method in class com.composum.ai.backend.base.service.StringstreamSlowdown
 
collectBackgroundInfoPaths(SlingHttpServletRequest, SlingHttpServletResponse, List<URI>) - Method in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
If some of the URLs are paths, we read the markdown for those pages.
collectLinks(Resource, List<ApproximateMarkdownService.Link>) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
Collects links from a resource and its children.
collectPossibleReplacements(Resource) - Method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
collectPrompts(List<AITemplatingServiceImpl.Replacement>, Map<String, AITemplatingServiceImpl.Replacement>, Map<String, String>) - Static method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
collectResponseProblems(List<GPTResponseCheck>, String, String) - Static method in interface com.composum.ai.backend.base.service.chat.GPTResponseCheck
Finds problems of translation wrt.
collectSearchKeywords(String, Resource) - Method in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
Processes a query to have the AI suggest a couple of search keywords for use with the other methods that might find the most relevant results.
collectSearchKeywords(String, Resource) - Method in interface com.composum.ai.backend.slingbase.RAGService
Processes a query to have the AI suggest a couple of search keywords for use with the other methods that might find the most relevant results.
collectTools(Resource, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
 
com.composum.ai.backend.base - package com.composum.ai.backend.base
Composum ChatGPT Base : Base classes for the ChatGPT backend.
com.composum.ai.backend.base.service - package com.composum.ai.backend.base.service
 
com.composum.ai.backend.base.service.chat - package com.composum.ai.backend.base.service.chat
 
com.composum.ai.backend.base.service.chat.impl - package com.composum.ai.backend.base.service.chat.impl
 
com.composum.ai.backend.base.service.chat.impl.chatmodel - package com.composum.ai.backend.base.service.chat.impl.chatmodel
 
com.composum.ai.backend.slingbase - package com.composum.ai.backend.slingbase
 
com.composum.ai.backend.slingbase.experimential - package com.composum.ai.backend.slingbase.experimential
 
com.composum.ai.backend.slingbase.experimential.impl - package com.composum.ai.backend.slingbase.experimential.impl
 
com.composum.ai.backend.slingbase.impl - package com.composum.ai.backend.slingbase.impl
 
com.composum.ai.backend.slingbase.model - package com.composum.ai.backend.slingbase.model
 
comment() - Method in annotation type com.composum.ai.backend.base.service.chat.GPTBackendConfiguration
 
completed(Void) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.EnsureResultFutureCallback
 
ComponentDescription() - Constructor for class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool.ComponentDescription
 
ComponentProperty(String, String) - Constructor for class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool.ComponentProperty
 
config - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
configurationService - Variable in class com.composum.ai.backend.slingbase.AICreateServlet
 
configurationService - Variable in class com.composum.ai.backend.slingbase.AIDictationServlet
 
configurationService - Variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
connectionTimeout - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
connectionTimeout() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
 
containsQuery(Resource, String, int) - Method in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
 
CONTENT_FILTER - com.composum.ai.backend.base.service.chat.GPTFinishReason
Omitted content due to a flag from our content filters.
CONTENT_FILTER - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
 
contentCreationPromptsPath() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPromptLibrary
 
contentCreationService - Variable in class com.composum.ai.backend.slingbase.AICreateServlet
 
convert(String) - Method in class com.composum.ai.backend.base.service.chat.impl.HtmlToMarkdownConverter
 
convertChildren(Node) - Method in class com.composum.ai.backend.base.service.chat.impl.HtmlToMarkdownConverter
 
copy() - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
Returns a copy; the messages list is shallowly copied, but configuration is the same object.
cosineSimilarity(float[], float[]) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTEmbeddingServiceImpl
 
countTokens(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
Counts the number of tokens for the text for the normally used model.
countTokens(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
createExternalRequest(GPTChatRequest) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
Creates the external request.

D

data(CharBuffer, boolean) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
 
deactivate() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTBackendsConfigurationServiceImpl
 
deactivate() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
deactivate() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
deactivate() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
deactivate() - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
 
deactivate() - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool
 
deactivate() - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageWriteTool
 
deactivate() - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
 
deactivate() - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
deactivate() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
 
deactivate() - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
 
deactivate() - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginFactoryImpl
 
deactivate() - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginImpl
 
deactivate() - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIPromptlibConfigurationPluginImpl
 
deactivate() - Method in class com.composum.ai.backend.slingbase.impl.SlingCaConfigPluginImpl
 
DEBUG - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
If set, the AI services will not call the AI but return the JSON request as response, for debugging purposes.
decodeFloatArray(String) - Static method in class com.composum.ai.backend.base.service.chat.impl.GPTEmbeddingServiceImpl
 
DEFAULT_EMBEDDINGS_MODEL - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
DEFAULT_HIGH_INTELLIGENCE_MODEL - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
DEFAULT_IMAGE_MODEL - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
DEFAULT_MAX_REQUEST_SIZE - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
DEFAULT_MODEL - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
DEFAULT_MODEL - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
defaultModel - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
defaultModel() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
 
DEFAULTVALUE_CONNECTIONTIMEOUT - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
DEFAULTVALUE_REQUESTS_PER_DAY - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
DEFAULTVALUE_REQUESTS_PER_DAY - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
DEFAULTVALUE_REQUESTS_PER_HOUR - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
DEFAULTVALUE_REQUESTS_PER_HOUR - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
DEFAULTVALUE_REQUESTS_PER_MINUTE - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
DEFAULTVALUE_REQUESTS_PER_MINUTE - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
DEFAULTVALUE_REQUESTTIMEOUT - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
delegate - Variable in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
 
deniedComponents() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
 
deniedPageTemplates() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
 
deniedPaths() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
 
deniedResourceTypePattern - Variable in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
 
deniedResourceTypes() - Method in annotation type com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.Config
 
deniedUsers() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
 
deniedViews() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
 
descendantsStream(Resource) - Static method in class com.composum.ai.backend.slingbase.AIResourceUtil
Returns a stream that goes through all descendants of a resource, parents come before their children.
descendantsStream(Resource) - Method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
descendantsStream(Resource) - Static method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool
Returns a stream that goes through all descendants of a resource, parents come before their children.
deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessagePartListDeSerializer
 
determineModel(GPTConfiguration, boolean) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
dictationService - Variable in class com.composum.ai.backend.slingbase.AIDictationServlet
 
disabled - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
disabled() - Method in annotation type com.composum.ai.backend.base.service.chat.GPTBackendConfiguration
 
disabled() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
 
disabled() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.GPTDictationServiceConfig
 
disabled() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl.Config
 
disabled() - Method in annotation type com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl.Config
 
diskCache() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl.Config
 
doGet(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
Returns an event stream that was prepared by a previous operation, as a second request after a POST request returning a 202 with a 'Location' header to this servlet, since only GET requests are supported by the EventStream class in browser.
doGet(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.AIDictationServlet
Returns whether dictation is enabled for the content in the suffix: status code OK means it's available, otherwise 404.
doGet(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.RAGServlet
 
doGet(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.AIConfigurationServlet
 
doGet(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownServlet
 
doPost(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
Implements the content creation operation.
doPost(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.AIDictationServlet
Implements the transcription operation.
doPost(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
 

E

EmbeddingObject() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingObject
 
EmbeddingRequest() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
 
EmbeddingResponse() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingResponse
 
embeddingService - Variable in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
 
embeddingsLimiter - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
Rate limiter for embeddings.
embeddingsModel - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
embeddingsModel() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
 
embeddingsUrl - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
embeddingsUrl() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
 
EmptyRequestParameterMap() - Constructor for class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.EmptyRequestParameterMap
 
enabled - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
enabled() - Method in annotation type com.composum.ai.backend.slingbase.impl.SlingCaConfigPluginImpl.Config
 
enc - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
Tokenizer used for GPT-4 variants.
encodeFloatArray(float[]) - Static method in class com.composum.ai.backend.base.service.chat.impl.GPTEmbeddingServiceImpl
 
ensureEmptyOrEndsWith(String) - Method in class com.composum.ai.backend.base.service.chat.impl.HtmlToMarkdownConverter
We ensure sb is either empty or that it ends with the given suffix.
ensureEnabled() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
EnsureResultFutureCallback(CompletableFuture<Void>) - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.EnsureResultFutureCallback
 
entrySet() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.EmptyRequestParameterMap
 
equals(Object) - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
 
equals(Object) - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
 
equals(Object) - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration.GPTContextInfo
 
equals(Object) - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
 
equals(Object) - Method in class com.composum.ai.backend.base.service.chat.GPTToolCall
 
equals(Object) - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownService.Link
 
errorStatusCode - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
If set, we collect the data for the error message, of false we process it as stream.
EventStream - Class in com.composum.ai.backend.slingbase
 
EventStream() - Constructor for class com.composum.ai.backend.slingbase.EventStream
 
execute(String, GPTCompletionCallback.GPTToolExecutionContext) - Method in interface com.composum.ai.backend.base.service.chat.GPTTool
Executes the tool call and returns the result to present to the AI.
execute(String, Resource, GPTCompletionCallback.GPTToolExecutionContext) - Method in interface com.composum.ai.backend.slingbase.experimential.AITool
Executes the tool call and returns the result to present to the AI.
execute(String, Resource, GPTCompletionCallback.GPTToolExecutionContext) - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
Does a query with lucene and then rates the results with the embedding.
execute(String, Resource, GPTCompletionCallback.GPTToolExecutionContext) - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool
 
execute(String, Resource, GPTCompletionCallback.GPTToolExecutionContext) - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageWriteTool
 
execute(String, Resource, GPTCompletionCallback.GPTToolExecutionContext) - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
Does a query with lucene and then rates the results with the embedding.
executePlugins(Resource, PrintWriter, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
executePrompt(String, GPTChatRequest) - Method in interface com.composum.ai.backend.base.service.chat.GPTContentCreationService
Executes a given prompt from the user using ChatGPT.
executePrompt(String, GPTChatRequest) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
executePromptOnText(String, String, GPTChatRequest) - Method in interface com.composum.ai.backend.base.service.chat.GPTContentCreationService
Executes a given prompt from the user using ChatGPT, using the given text as context.
executePromptOnText(String, String, GPTChatRequest) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
executePromptOnTextStreaming(String, String, GPTChatRequest, GPTCompletionCallback) - Method in interface com.composum.ai.backend.base.service.chat.GPTContentCreationService
Executes a given prompt from the user using ChatGPT, using the given text as context.
executePromptOnTextStreaming(String, String, GPTChatRequest, GPTCompletionCallback) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
executePromptStreaming(String, GPTChatRequest, GPTCompletionCallback) - Method in interface com.composum.ai.backend.base.service.chat.GPTContentCreationService
Executes a given prompt from the user using ChatGPT.
executePromptStreaming(String, GPTChatRequest, GPTCompletionCallback) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
executeReplacements(Map<String, String>, Map<String, AITemplatingServiceImpl.Replacement>) - Static method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
extractPagePrompts(List<AITemplatingServiceImpl.Replacement>) - Static method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
extractParts(String) - Static method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
Splits the response at the %%%%%%%% ID %%%%%%%% separators and puts the items into a map.
extractRetryableException(Throwable) - Static method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
extractSourceUrls(List<AITemplatingServiceImpl.Replacement>) - Static method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 

F

factoryList - Variable in class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginImpl
 
failed(Exception) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.EnsureResultFutureCallback
 
failed(Exception) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
 
fakeTranslation() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl.Config
 
fakeTranslation(String) - Static method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
This turns the capitalization of every odd letter in each word on it's head.
findMostRelated(String, List<String>, int, GPTConfiguration, GPTEmbeddingService.EmbeddingsCache) - Method in interface com.composum.ai.backend.base.service.chat.GPTEmbeddingService
Determines the at most limit to query semantically closest of the comparedStrings according to the embedding service.
findMostRelated(String, List<String>, int, GPTConfiguration, GPTEmbeddingService.EmbeddingsCache) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTEmbeddingServiceImpl
 
flush() - Method in class com.composum.ai.backend.base.service.StringstreamSlowdown
 
flushBuffer() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
fragmentedTranslation(List<String>, String, GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.GPTTranslationService
Translates the texts into the target language.
fragmentedTranslation(List<String>, String, GPTConfiguration, AtomicInteger, List<GPTResponseCheck>) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
fragmentedTranslation(List<String>, String, GPTConfiguration, List<GPTResponseCheck>) - Method in interface com.composum.ai.backend.base.service.chat.GPTTranslationService
Translates the texts into the target language.
fragmentedTranslation(List<String>, String, GPTConfiguration, List<GPTResponseCheck>) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
We join all text fragments we have to translate into one big texts separated with separators like `%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 573472 %%%%%%%%%%%%%%%%` and then translate that.
fragmentedTranslationDivideAndConquer(List<String>, String, GPTConfiguration, AtomicInteger, List<GPTResponseCheck>) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
We try to translate the whole lot of texts.
from(GPTPermissionConfiguration) - Static method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
 
from(GPTPermissionConfiguration) - Static method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
Reads out the services and component regex information, the other stuff has to be checked elsewhere.
fromChatGPT(String) - Static method in enum com.composum.ai.backend.base.service.chat.GPTFinishReason
 
FUNCTION_CALL - com.composum.ai.backend.base.service.chat.GPTFinishReason
Deprecated.
FUNCTION_CALL - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
Deprecated.

G

GENERATE - com.composum.ai.backend.base.service.chat.GPTConfiguration.Mode
Uses a system prompt appropriate for text generation.
GENERATE - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
generateDescription(String, int, GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.GPTContentCreationService
Generates a description from the given text.
generateDescription(String, int, GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
generateKeywords(String, GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.GPTContentCreationService
Generates a list of keywords from the given text.
generateKeywords(String, GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
getActiveBackends() - Method in interface com.composum.ai.backend.base.service.chat.GPTBackendsService
Returns a list of active backends.
getActiveBackends() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTBackendsServiceImpl
 
getAdditionalInstructions() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
Optionally, additional instructions to add to the system prompt.
getAllModels() - Method in interface com.composum.ai.backend.base.service.chat.GPTBackendsService
List of all model names configured for the active backends, no matter from which backend.
getAllModels() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTBackendsServiceImpl
 
getAllowedComponents() - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
Regular expressions for allowed components.
getAnswerType() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
The type of answer we want from the LLM.
getArguments() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
A JSON for the arguments the function is called with.
getArguments() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
 
getAsyncContext() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
getAttribute(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
getBackendNameFromPrefixedModel(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTBackendsServiceImpl
 
getBackends() - Method in interface com.composum.ai.backend.base.service.chat.GPTBackendsConfigurationService
 
getBackends() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTBackendsConfigurationServiceImpl
 
getCachedEmbedding(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTEmbeddingService.EmbeddingsCache
 
getCachedResponse(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
getChoices() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
getCompletionTokens() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
 
getComponentLinks(Resource) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
Returns a number of links that are saved in the component or siblings of the component that could be used as a proposal for the user to be used as source for the AI via markdown generation etc.
getComponentLinks(Resource) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownService
Returns a number of links that are saved in the component or siblings of the component that could be used as a proposal for the user to be used as source for the AI via markdown generation etc.
getConfig() - Method in interface com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginFactory
 
getConfig() - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginFactoryImpl
 
getConfiguration() - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
Sets the LLM configuration
getConfigurationForModel(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTBackendsService
Determines the backend a model is from.
getConfigurationForModel(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTBackendsServiceImpl
 
getContent() - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
The content of the message, be that an answer of the assistant or a question of the user.
getContent() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoiceMessage
 
getContent() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
 
getContexts() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
Additional context information to provide to the AI.
getCreated() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
getCurrentTimeMillis() - Method in class com.composum.ai.backend.base.service.chat.RateLimiter
Provides the possibility to fake time, for easy unittests.
getData() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingResponse
 
getDebug() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
If this is set, then the services will not call the AI and return the JSON request instead of the AI response.
getDelta() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
Alternative to ChatCompletionChoice.getMessage() if it's a response chunk.
getDeniedComponents() - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
Regular expressions for denied components.
getDescription() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionDetails
A brief description of what the function does.
getDescription() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
 
getDescription() - Method in exception com.composum.ai.backend.base.service.GPTException.GPTUserNotificationException
 
getDescription(Locale) - Method in interface com.composum.ai.backend.slingbase.experimential.AITool
Human readable description.
getDescription(Locale) - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
 
getDescription(Locale) - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool
 
getDescription(Locale) - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageWriteTool
 
getDescription(Locale) - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
 
getDetail() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessageUrlPart
 
getDimensions() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
 
getEmbedding() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingObject
 
getEmbeddings(List<String>, GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
Calculates embeddings for the given list of texts.
getEmbeddings(List<String>, GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
getEmbeddings(List<String>, GPTConfiguration, GPTEmbeddingService.EmbeddingsCache) - Method in interface com.composum.ai.backend.base.service.chat.GPTEmbeddingService
Get embeddings for the given texts.
getEmbeddings(List<String>, GPTConfiguration, GPTEmbeddingService.EmbeddingsCache) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTEmbeddingServiceImpl
 
getEmbeddingsCache(Map<String, Resource>) - Method in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
 
getEmbeddingsImpl(List<String>, GPTConfiguration, long) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
getEmbeddingsImplDivideAndConquer(List<String>, GPTConfiguration, long) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
getEmbeddingsModel() - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
getEmbeddingsModel() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
getEncodingFormat() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
 
getError() - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
 
getFinishReason() - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
 
getFinishReason() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
 
getFunction() - Method in class com.composum.ai.backend.base.service.chat.GPTToolCall
The function being called by the model, including its name and arguments.
getFunction() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
 
getFunction() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatTool
 
getGetTemplateStreamFromBundle(Bundle, String) - Static method in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
 
getGetTemplateStreamFromClassloader(ClassLoader, String) - Static method in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
 
getGPTConfiguration(ResourceResolver, String) - Method in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
 
getGPTConfiguration(ResourceResolver, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationPlugin
Reads the GPTConfiguration from sling context aware configurations.
getGPTConfiguration(ResourceResolver, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationService
Reads the GPTConfiguration from sling context aware configurations.
getGPTConfiguration(ResourceResolver, String) - Method in class com.composum.ai.backend.slingbase.impl.SlingCaConfigPluginImpl
 
getGPTConfigurationMap(SlingHttpServletRequest, String, String) - Method in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
 
getGPTConfigurationMap(SlingHttpServletRequest, String, String) - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIPromptlibConfigurationPluginImpl
This method tries to parse the mapPath as JSON.
getGPTConfigurationMap(SlingHttpServletRequest, String, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationPlugin
 
getGPTConfigurationMap(SlingHttpServletRequest, String, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationService
Decodes the map from the given mapPath, as determined from the appropriate method of AIConfigurationService.getGPTPromptLibraryPaths(SlingHttpServletRequest, String).
getGPTPromptLibraryPaths(SlingHttpServletRequest, String) - Method in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
 
getGPTPromptLibraryPaths(SlingHttpServletRequest, String) - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIPromptlibConfigurationPluginImpl
 
getGPTPromptLibraryPaths(SlingHttpServletRequest, String) - Method in class com.composum.ai.backend.slingbase.impl.SlingCaConfigPluginImpl
 
getGPTPromptLibraryPaths(SlingHttpServletRequest, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationPlugin
Reads the GPTPromptLibrary from sling context aware configurations or OSGI configurations, falling back to default values.
getGPTPromptLibraryPaths(SlingHttpServletRequest, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationService
Reads the GPTPromptLibrary from sling context aware configurations, falling back to OSGI configurations, falling back to default values.
getGPTPromptLibraryPathsDefault() - Method in interface com.composum.ai.backend.slingbase.AIConfigurationPlugin
getId() - Method in class com.composum.ai.backend.base.service.chat.GPTToolCall
The ID of the tool call.
getId() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
getId() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
 
getImageUrl() - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
The URL with the content of the image to be analyzed.
getImageUrl() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
 
getImageUrl(Resource) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
 
getImageUrl(Resource) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownService
Retrieves the imageURL in a way useable for ChatGPT - usually data:image/jpeg;base64,{base64_image}
getImageUrl(Resource) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin
Retrieves the imageURL in a way useable for ChatGPT - usually data:image/jpeg;base64,{base64_image} If the plugin cannot handle this resource, it should return null.
getImageUrl(Resource) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
getIndex() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
 
getIndex() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
 
getIndex() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingObject
 
getInput() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
 
getInstance() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
getInstance() - Method in interface com.composum.ai.backend.base.service.chat.impl.GPTInternalOpenAIHelper
Returns a helper for implementation in this package.
getLastModified(Resource) - Static method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
 
getMandatoryParameter(SlingHttpServletRequest, SlingHttpServletResponse, String) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
 
getMandatoryParameter(SlingHttpServletRequest, SlingHttpServletResponse, String) - Method in class com.composum.ai.backend.slingbase.AIDictationServlet
 
getMarkdown(String) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownService
Returns a markdown representation of an attribute value, which might be plain text or HTML.
getMarkdown(String) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
getMarkdown(URI) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownService
Retrieves the text content for an URL.
getMarkdown(URI) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
getMasterLinks(Resource) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin
If applicable: this returns links to the master from which the current page was created - e.g.
getMaxTokens() - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
Optionally the maximum number of tokens (approx.
getMaxTokens() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
getMessage() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
 
getMessageLineBlocks(Iterator<String>) - Static method in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
split the lines into blocks of lines where the first line is matching MESSAGE_SEPARATOR
getMessages() - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
Returns the chat messages set with GPTChatRequest.addMessage(GPTMessageRole, String).
getMessages() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
getMessages(Map<String, String>) - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
Returns a list of messages with the placeholders replaced.
getMethod() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
We render with GET, obviously.
getMode() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
getModel() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
If set, this determines the model to use.
getModel() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
getModel() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
getModel() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
 
getModel(GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
getModelNameInBackend(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTBackendsService
If the model is of the form backendId:modelname then this returns the modelname, otherwise returns the model as it is.
getModelNameInBackend(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTBackendsServiceImpl
 
getModelsForBackend(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTBackendsConfigurationService
 
getModelsForBackend(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTBackendsConfigurationServiceImpl
 
getName() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
The name of the function to be called.
getName() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionDetails
The name of the function to be called.
getName() - Method in interface com.composum.ai.backend.base.service.chat.GPTTool
The name of the tool - must be exactly the name given in GPTTool.getToolDeclaration().
getName() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
 
getName() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
 
getName(Locale) - Method in interface com.composum.ai.backend.slingbase.experimential.AITool
Human readable name.
getName(Locale) - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
 
getName(Locale) - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool
 
getName(Locale) - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageWriteTool
 
getName(Locale) - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
 
getObject() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
getOptionalInt(SlingHttpServletRequest, SlingHttpServletResponse, String) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
 
getOptionalInt(SlingHttpServletRequest, SlingHttpServletResponse, String) - Method in class com.composum.ai.backend.slingbase.AIDictationServlet
 
getOrCreateCacheResource(ResourceResolver, String, boolean) - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
 
getOutputStream() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
getPageCachedValue(String, Resource) - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
 
getPageCachedValue(String, Resource) - Method in interface com.composum.ai.backend.slingbase.PageCachedValueService
Reads a value that was cached with that property name from the cache.
GetPageMarkdownAITool - Class in com.composum.ai.backend.slingbase.experimential.impl
 
GetPageMarkdownAITool() - Constructor for class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
 
GetPageMarkdownAITool.Config - Annotation Type in com.composum.ai.backend.slingbase.experimential.impl
 
getParameters() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionDetails
The parameters accepted by the function, defined as an arbitrary JSON schema object.
getParameters() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
 
getPath() - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownService.Link
 
getPayload() - Method in exception com.composum.ai.backend.base.service.GPTException.GPTUserNotificationException
 
getPromptTokens() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
 
getRequest() - Method in class com.composum.ai.backend.slingbase.model.SlingGPTExecutionContext
 
getRequestDispatcher(String, RequestDispatcherOptions) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
getRequestDispatcher(Resource) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
getRequestDispatcher(Resource, RequestDispatcherOptions) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
getRequestParameter(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
getRequestParameterList() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
getRequestParameterMap() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
getRequestParameters(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
getResponse() - Method in class com.composum.ai.backend.slingbase.model.SlingGPTExecutionContext
 
getResponseFormat() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
getResult() - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
 
getRole() - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
Function of the message in the dialog.
getRole() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoiceMessage
 
getRole() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
 
getSeed() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
getSeed() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
getServiceConfiguration() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
getServicePermissions() - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
List of service permissions.
getServices() - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
The name of the service this applies to - one of the SERVICE_ constants.
getSession() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
getSession(boolean) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
getSingleChatCompletion(GPTChatRequest) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
The simplest case: give some messages and get a single response.
getSingleChatCompletion(GPTChatRequest) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
getStatus() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
getStrict() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionDetails
Whether to enforce strict schema adherence for the parameters.
getStrict() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
 
getSystemFingerprint() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
getTemperature() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
The sampling temperature, between 0 and 1.
getTemperature() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
getTemplate(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
Retrieves a (usually cached) chat template with that name.
getTemplate(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
getText() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration.GPTContextInfo
 
getText() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
 
getTime() - Method in class com.composum.ai.backend.base.service.StringstreamSlowdown
 
getTitle() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration.GPTContextInfo
 
getTitle() - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownService.Link
 
getToolCallId() - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
The ID of a prior tool call.
getToolCallId() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
 
getToolCalls() - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
The tool calls that were made in the context of this message.
getToolCalls() - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
 
getToolCalls() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoiceMessage
 
getToolCalls() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
 
getToolDeclaration() - Method in interface com.composum.ai.backend.base.service.chat.GPTTool
The description to use for the OpenAI tool call.
getToolDeclaration() - Method in interface com.composum.ai.backend.slingbase.experimential.AITool
The description to use for the OpenAI tool call.
getToolDeclaration() - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
 
getToolDeclaration() - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool
 
getToolDeclaration() - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageWriteTool
 
getToolDeclaration() - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
 
getToolExecutionContext() - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
For tool calls: set the context to execute actions in.
getToolExecutionContext() - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
 
getToolExecutionContext() - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
 
getToolExecutionContext() - Method in class com.composum.ai.backend.slingbase.EventStream
 
getToolName() - Method in interface com.composum.ai.backend.slingbase.experimential.AITool
Name for the purpose of calling - must match AITool.getToolDeclaration().
getToolName() - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
 
getToolName() - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool
 
getToolName() - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageWriteTool
 
getToolName() - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
 
getTools() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
A list of tools the Model could use.
getTools() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
getTotalTokens() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
 
getType() - Method in class com.composum.ai.backend.base.service.chat.GPTToolCall
The type of the tool, currently only "function" is supported.
getType() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
 
getType() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormat
 
getType() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
Special response "ping" from Anthropic Claude that has no actual content.
getType() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
 
getType() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatTool
 
getUrl() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessageUrlPart
 
getUrl(String, boolean, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownServlet
 
getUsage() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
getUser() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
 
getValue(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.EmptyRequestParameterMap
 
getValues(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.EmptyRequestParameterMap
 
getWholeResponse() - Method in class com.composum.ai.backend.slingbase.EventStream
Returns the whole response, but only if it was received completely, otherwise null.
getWriter() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
GPTBackendConfiguration - Annotation Type in com.composum.ai.backend.base.service.chat
Configuration for a generic LLM backend used by Composum AI.
GPTBackendsConfigurationService - Interface in com.composum.ai.backend.base.service.chat
A service that lists all backends usable with GPTChatCompletionService etc.
GPTBackendsConfigurationServiceImpl - Class in com.composum.ai.backend.base.service.chat.impl
Provides the backend configurations from OSGI.
GPTBackendsConfigurationServiceImpl() - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTBackendsConfigurationServiceImpl
 
GPTBackendsService - Interface in com.composum.ai.backend.base.service.chat
A service managing the backends for GPTChatCompletionService etc.
GPTBackendsServiceImpl - Class in com.composum.ai.backend.base.service.chat.impl
 
GPTBackendsServiceImpl() - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTBackendsServiceImpl
 
GPTChatCompletionService - Interface in com.composum.ai.backend.base.service.chat
Raw abstraction of the ChatGPT chat interface, with only the details that are needed.
GPTChatCompletionServiceImpl - Class in com.composum.ai.backend.base.service.chat.impl
Implements the actual access to the ChatGPT chat API.
GPTChatCompletionServiceImpl() - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
GPTChatCompletionServiceImpl.EnsureResultFutureCallback - Class in com.composum.ai.backend.base.service.chat.impl
Makes doubly sure that result is somehow set after the call.
GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig - Annotation Type in com.composum.ai.backend.base.service.chat.impl
 
GPTChatCompletionServiceImpl.RetryableException - Exception in com.composum.ai.backend.base.service.chat.impl
Thrown when we get a 429 rate limiting response.
GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer - Class in com.composum.ai.backend.base.service.chat.impl
 
GPTChatMessage - Class in com.composum.ai.backend.base.service.chat
A chat message in a dialog with ChatGPT.
GPTChatMessage(GPTMessageRole, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatMessage
 
GPTChatMessage(GPTMessageRole, String, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatMessage
 
GPTChatMessage(GPTMessageRole, String, String, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatMessage
 
GPTChatMessage(GPTMessageRole, String, String, String, List<GPTToolCall>) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatMessage
 
GPTChatMessagesTemplate - Class in com.composum.ai.backend.base.service.chat
A template for chat messages, with placeholders.
GPTChatMessagesTemplate(InputStream, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
Reads the template from the stream, which is closed afterwards.
GPTChatMessagesTemplate(ClassLoader, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
Reads the template from the classloader.
GPTChatMessagesTemplate(Bundle, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
Reads the template from an OSGI bundle.
GPTChatRequest - Class in com.composum.ai.backend.base.service.chat
A request to ChatGPT.
GPTChatRequest() - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatRequest
 
GPTChatRequest(GPTConfiguration) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatRequest
 
GPTChatRequest(List<GPTChatMessage>) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatRequest
 
GPTCompletionCallback - Interface in com.composum.ai.backend.base.service.chat
For a streaming mode this is given as parameter for the method call and receives the streamed data; the method returns only when the response is complete.
GPTCompletionCallback.GPTCompletionCallbackWrapper - Class in com.composum.ai.backend.base.service.chat
Forwards all methods to a delegate.
GPTCompletionCallback.GPTCompletionCollector - Class in com.composum.ai.backend.base.service.chat
A simple collector that just takes note of things.
GPTCompletionCallback.GPTToolExecutionContext - Interface in com.composum.ai.backend.base.service.chat
For tool calls: context to execute actions in.
GPTCompletionCallbackWrapper(GPTCompletionCallback) - Constructor for class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
 
GPTCompletionCollector() - Constructor for class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
 
GPTConfiguration - Class in com.composum.ai.backend.base.service.chat
A configuration to use for accessing the external LLM service.
GPTConfiguration(GPTConfiguration.AnswerType) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
GPTConfiguration(GPTConfiguration.AnswerType, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
GPTConfiguration(GPTConfiguration.AnswerType, String, GPTConfiguration.Mode) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
GPTConfiguration(GPTConfiguration.AnswerType, String, GPTConfiguration.Mode, Boolean) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
GPTConfiguration(GPTConfiguration.AnswerType, String, GPTConfiguration.Mode, Boolean, Boolean) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
GPTConfiguration(GPTConfiguration.AnswerType, String, GPTConfiguration.Mode, Boolean, Boolean, Double) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
GPTConfiguration(GPTConfiguration.AnswerType, String, GPTConfiguration.Mode, Boolean, Boolean, Double, Integer) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
GPTConfiguration(GPTConfiguration.AnswerType, String, GPTConfiguration.Mode, Boolean, Boolean, Double, Integer, List<GPTConfiguration.GPTContextInfo>) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
GPTConfiguration(GPTConfiguration.AnswerType, String, GPTConfiguration.Mode, Boolean, Boolean, Double, Integer, List<GPTConfiguration.GPTContextInfo>, List<GPTTool>) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
GPTConfiguration(GPTConfiguration.AnswerType, String, GPTConfiguration.Mode, Boolean, Boolean, Double, Integer, List<GPTConfiguration.GPTContextInfo>, List<GPTTool>, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
GPTConfiguration.AnswerType - Enum in com.composum.ai.backend.base.service.chat
 
GPTConfiguration.GPTContextInfo - Class in com.composum.ai.backend.base.service.chat
Gives the conversation a history - additional assistant - user message pair.
GPTConfiguration.Mode - Enum in com.composum.ai.backend.base.service.chat
 
GPTContentCreationService - Interface in com.composum.ai.backend.base.service.chat
Service to generate content (keywords / descriptions from a text, and so forth.)
GPTContentCreationServiceImpl - Class in com.composum.ai.backend.base.service.chat.impl
Building on GPTChatCompletionService this implements generating keywords.
GPTContentCreationServiceImpl() - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
GPTContextInfo(String, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration.GPTContextInfo
 
GPTContextLengthExceededException(String) - Constructor for exception com.composum.ai.backend.base.service.GPTException.GPTContextLengthExceededException
 
GPTDictationService - Interface in com.composum.ai.backend.base.service.chat
Services related to dictation.
GPTDictationServiceImpl - Class in com.composum.ai.backend.base.service.chat.impl
 
GPTDictationServiceImpl() - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
GPTDictationServiceImpl.GPTDictationServiceConfig - Annotation Type in com.composum.ai.backend.base.service.chat.impl
Configures whether it's enabled (default false), the model and the request counts, and the maximum request size.
GPTDictationServiceImpl.LimitedInputStream - Class in com.composum.ai.backend.base.service.chat.impl
 
GPTEmbeddingService - Interface in com.composum.ai.backend.base.service.chat
Methods related to embeddings.
GPTEmbeddingService.EmbeddingsCache - Interface in com.composum.ai.backend.base.service.chat
Optional cache for embedding values.
GPTEmbeddingServiceImpl - Class in com.composum.ai.backend.base.service.chat.impl
 
GPTEmbeddingServiceImpl() - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTEmbeddingServiceImpl
 
GPTException - Exception in com.composum.ai.backend.base.service
Any kind of error when accessing GPT.
GPTException(String) - Constructor for exception com.composum.ai.backend.base.service.GPTException
 
GPTException(String, Throwable) - Constructor for exception com.composum.ai.backend.base.service.GPTException
 
GPTException(Throwable) - Constructor for exception com.composum.ai.backend.base.service.GPTException
 
GPTException.GPTContextLengthExceededException - Exception in com.composum.ai.backend.base.service
{ "error": { "message": "This model's maximum context length is 4097 tokens.
GPTException.GPTRetryableResponseErrorException - Exception in com.composum.ai.backend.base.service
An exception that is thrown when the response from the GPT service is not as expected.
GPTException.GPTUserNotificationException - Exception in com.composum.ai.backend.base.service
A special exception if the user should be notified about something instead of completing the task.
GPTFinishReason - Enum in com.composum.ai.backend.base.service.chat
 
GPTFunctionCallDetails - Class in com.composum.ai.backend.base.service.chat
Represents the a call of a function used as a tool in the chat completion request.
GPTFunctionCallDetails(String, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
Creates the object
GPTFunctionDetails - Class in com.composum.ai.backend.base.service.chat
Represents the details of a function used as a tool in the chat completion request.
GPTFunctionDetails(String, String, Object, Boolean) - Constructor for class com.composum.ai.backend.base.service.chat.GPTFunctionDetails
Creates the object
GPTInternalOpenAIHelper - Interface in com.composum.ai.backend.base.service.chat.impl
Helpers for implementation in this package.
GPTInternalOpenAIHelper.GPTInternalOpenAIHelperInst - Class in com.composum.ai.backend.base.service.chat.impl
 
GPTInternalOpenAIHelperInst() - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTInternalOpenAIHelper.GPTInternalOpenAIHelperInst
 
gptLimiter - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
If set, this tells the limits of ChatGPT API itself.
GPTMessageRole - Enum in com.composum.ai.backend.base.service.chat
Role of a GPTChatMessage in a dialog with ChatGPT.
GPTPermissionConfiguration - Annotation Type in com.composum.ai.backend.slingbase.model
Serves both as OSGI configuration for OsgiAIConfigurationPluginImpl as well as Sling Context Aware Configuration, since they both do the same thing, OSGI serving as a fallback or the single global configuration if SlingCAC is not used.
GPTPermissionInfo - Class in com.composum.ai.backend.slingbase.model
Permission information that can be used to determine whether a page or component permits services as the side panel AI or the content creation assistant.
GPTPermissionInfo() - Constructor for class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
 
GPTPermissionInfo.GPTPermissionInfoItem - Class in com.composum.ai.backend.slingbase.model
One set of permissions.
GPTPermissionInfoItem() - Constructor for class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
 
GPTPromptLibrary - Annotation Type in com.composum.ai.backend.slingbase.model
 
GPTResponseCheck - Interface in com.composum.ai.backend.base.service.chat
An additional check that verifies whether the translation was carried out right - such as paths in HTML weren't translated.
GPTRetryableResponseErrorException(String) - Constructor for exception com.composum.ai.backend.base.service.GPTException.GPTRetryableResponseErrorException
 
GPTTool - Interface in com.composum.ai.backend.base.service.chat
An action the AI can perform - likely from the sidebar chat.
GPTToolCall - Class in com.composum.ai.backend.base.service.chat
Represents a tool call generated by the model in a chat completion response.
GPTToolCall(String, String, GPTFunctionCallDetails) - Constructor for class com.composum.ai.backend.base.service.chat.GPTToolCall
Creates the object
GPTTranslationService - Interface in com.composum.ai.backend.base.service.chat
Building on GPTChatCompletionService this implements translation.
GPTTranslationServiceImpl - Class in com.composum.ai.backend.base.service.chat.impl
Building on GPTChatCompletionService this implements translation.
GPTTranslationServiceImpl() - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
GPTTranslationServiceImpl.Config - Annotation Type in com.composum.ai.backend.base.service.chat.impl
 
GPTUserNotificationException(String, String) - Constructor for exception com.composum.ai.backend.base.service.GPTException.GPTUserNotificationException
 
gson - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
gson - Variable in class com.composum.ai.backend.slingbase.AICreateServlet
 
gson - Variable in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
 
gson - Variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
gson - Variable in class com.composum.ai.backend.slingbase.impl.OsgiAIPromptlibConfigurationPluginImpl
 
gson - Variable in class com.composum.ai.backend.slingbase.impl.RAGServlet
 

H

hadInvalidOperation - Variable in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
handleCodeblock(Resource, PrintWriter, boolean) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
HANDLED_ALL - com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin.PluginResult
The plugin handled the current resource and it's children - no need to continue.
HANDLED_ATTRIBUTES - com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin.PluginResult
The plugin handled the attributes of the resource, but not it's children.
handleLabeledAttributes(Resource, PrintWriter, boolean) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
handleResource(Resource, PrintWriter, boolean) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
handleStreamingEvent(GPTCompletionCallback, long, String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
Handle a single line of the streaming response.
HAS_WHITESPACE - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
hashCode() - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
 
hashCode() - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
 
hashCode() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration.GPTContextInfo
 
hashCode() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
 
hashCode() - Method in class com.composum.ai.backend.base.service.chat.GPTToolCall
 
hashCode() - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownService.Link
 
HEADER_IMAGEPATH - Static variable in interface com.composum.ai.backend.slingbase.ApproximateMarkdownService
An additional header for the response that tells that the path is actually an image and gives its path.
HIGH - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ImageDetail
 
HIGH_INTELLIGENCE - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
Requests slower and more expensive "high intelligence" model - use sparingly.
highIntelligenceModel - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
highIntelligenceModel() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
 
highIntelligenceNeededIsSet() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
If true, this requires to uses the slower and more expensive high intelligence model - use sparingly for more challenging tasks.
highIntelligenceNeededIsUnset() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
If true, there is no information whether a "high intelligence model" is used - uses the default.
HTML - com.composum.ai.backend.base.service.chat.GPTConfiguration.AnswerType
Real HTML or, more likely, richtext as simplified HTML.
HTML - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
HTML_TAG_AT_START - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
htmltags - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
HtmlToApproximateMarkdownServicePlugin - Class in com.composum.ai.backend.slingbase.impl
A plugin for the ApproximateMarkdownService that transforms the rendered HTML to markdown.
HtmlToApproximateMarkdownServicePlugin() - Constructor for class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
 
HtmlToApproximateMarkdownServicePlugin.CapturingResponse - Class in com.composum.ai.backend.slingbase.impl
We wrap a response to capture the content, forwarding all but modifying methods to the original response.
HtmlToApproximateMarkdownServicePlugin.Config - Annotation Type in com.composum.ai.backend.slingbase.impl
 
HtmlToApproximateMarkdownServicePlugin.EmptyRequestParameterMap - Class in com.composum.ai.backend.slingbase.impl
 
HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper - Class in com.composum.ai.backend.slingbase.impl
Wraps the request to make sure nothing is modified.
HtmlToApproximateMarkdownServicePlugin.UnsupportedOperationCalled - Exception in com.composum.ai.backend.slingbase.impl
Thrown when unsupported operation was called that requires blacklisting.
htmlToMarkdown(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
Helper for preprocessing HTML so that it can easily read by ChatGPT.
htmlToMarkdown(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
HtmlToMarkdownConverter - Class in com.composum.ai.backend.base.service.chat.impl
A quick HTML markdown converter that handles the tags [a, strong, code, em, p, br, u, ul, li, ol] used in rich text editor.
HtmlToMarkdownConverter() - Constructor for class com.composum.ai.backend.base.service.chat.impl.HtmlToMarkdownConverter
 
httpAsyncClient - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
httpClient - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 

I

id - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
 
IGNORED_ATTRIBUTE_PATTERN - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
Pattern for several kinds of ignored keys.
IGNORED_NODE_NAMES - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
We ignore nodes named i18n or renditions and nodes starting with rep:, dam:, cq:
IGNORED_PROPERTIES - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
A pattern for property names which we ignore.
IGNORED_VALUE_PATTERN - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
Ignored values for labelled output: "true"/ "false" / single number (int / float) attributes or array of numbers attributes, or shorter than 3 digits or path, or array or type date or boolean or {Date} or {Boolean} , inherit, blank, html tags, target .
IMAGE_PATTERN - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
IMAGE_URL - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.Type
 
imageModel - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
imageModel() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
 
imageUrl(String) - Static method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
 
inAdaptTo - Variable in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
insertText(String) - Method in class com.composum.ai.backend.base.service.chat.impl.HtmlToMarkdownConverter
Split text into lines to add indentation before each line.
isAllowedFor(Resource) - Method in interface com.composum.ai.backend.slingbase.experimential.AITool
Whether the tool is enabled for the given resource.
isAllowedFor(Resource) - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
 
isAllowedFor(Resource) - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool
 
isAllowedFor(Resource) - Method in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageWriteTool
 
isAllowedFor(Resource) - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
 
isAvailable(GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.GPTDictationService
Whether the service is enabled and properly configured.
isAvailable(GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
isBecauseOfUnsupportedOperation(Throwable) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
 
isEmpty(Void) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
 
isEmpty(Void) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
 
isEnabled() - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
Whether ChatGPT completion is enabled.
isEnabled() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
isEnabled() - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
 
isEnabled(GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
Checks whether GPTChatCompletionService.isEnabled() and whether gptConfig enables executing GPT calls.
isEnabled(GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
isEnabled(GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.impl.GPTInternalOpenAIHelper
Checks whether ChatGPT is generally and whether gptConfig enables executing GPT calls.
isHtml() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
isIgnoredNode(Resource) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
We start with depth 3 since the higher nodes often contain headers, navigation and such that don't help for ChatGPT.
isModified(Resource, ValueMap, String) - Static method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
 
isNeedsVision() - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownService.Link
 
isOfNodeType(Resource, String) - Static method in class com.composum.ai.backend.slingbase.AIResourceUtil
Checks whether a resource is of a certain node type - be that jcr:primaryType or a mixin.
isStream() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
isVisionEnabled() - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
Returns true if vision is enabled.
isVisionEnabled() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 

J

joinPatternsIntoAnyMatcher(String[]) - Static method in class com.composum.ai.backend.slingbase.impl.AllowDenyMatcherUtil
Makes a pattern that matches whenever one of the patterns matches the input.
joinText(Map<String, String>) - Static method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
joinTexts(List<String>, List<String>) - Static method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
JSON - com.composum.ai.backend.base.service.chat.GPTConfiguration.AnswerType
JSON is not yet supported by all models, so a bit dangerous.
JSON - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
JSON - Static variable in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
JSON_OBJECT - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormatType
 

K

KEEP_HREF_TRANSLATION_CHECK - Static variable in interface com.composum.ai.backend.base.service.chat.GPTResponseCheck
A check that all href attributes in richtext appear in the translation.

L

labeledAttributePatternAllow - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
A pattern which attributes have to be output with a label: the attribute name, a colon and a space and then the trimmed attribute value followed by newline.
labeledAttributePatternDeny - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
labelledAttributeOrder - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
A list of labelled attributes that come first if they are present, in the given order.
labelledAttributeOrder() - Method in annotation type com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl.Config
 
labelledAttributePatternAllow() - Method in annotation type com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl.Config
 
labelledAttributePatternDeny() - Method in annotation type com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl.Config
 
lastGptLimiterCreationTime - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
LASTID - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
LENGTH - com.composum.ai.backend.base.service.chat.GPTFinishReason
The response is not complete, but the maximum length has been reached.
LENGTH - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
 
LimitedInputStream(InputStream, long) - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.LimitedInputStream
 
limiter - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
Limiter that maps the financial reasons to limit.
limiter - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
Link(String, String, boolean) - Constructor for class com.composum.ai.backend.slingbase.ApproximateMarkdownService.Link
 
LOG - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
LOG - Static variable in class com.composum.ai.backend.slingbase.ApproximateMarkdownServlet
 
LOG - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
logAndThrow(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
logAndThrow(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
login(String, String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
logout() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
logUnhandledAttributes(Resource) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
LOW - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ImageDetail
 

M

make(GPTChatMessage) - Static method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
 
make(GPTFunctionCallDetails) - Static method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
 
make(GPTMessageRole) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.Role
 
make(String) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormatType
 
make(List<GPTToolCall>) - Static method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
 
makeAdditionalParameters(int, String, HttpServletResponse, GPTConfiguration) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
 
makeExecuteOnTextRequest(String, String, GPTChatRequest) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
makeExecutePromptRequest(String, GPTChatRequest) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
makeGPTTool(Resource, SlingHttpServletRequest, SlingHttpServletResponse) - Method in interface com.composum.ai.backend.slingbase.experimential.AITool
The form useable by GPTChatCompletionService.
makeRequest(String, GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
makeRequest(Resource, List<String>, List<String>, Map<String, String>, String, String) - Method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
MARKDOWN - com.composum.ai.backend.base.service.chat.GPTConfiguration.AnswerType
The default if nothing is requested - markdown is the "native" output form at least of ChatGPT.
MARKDOWN - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
markdownService - Variable in class com.composum.ai.backend.slingbase.AICreateServlet
 
markdownService - Variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
markdownService - Variable in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
 
MarkdownSlingCacheImpl - Class in com.composum.ai.backend.slingbase.impl
Implements a cache for markdown of pages.
MarkdownSlingCacheImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
 
MarkdownSlingCacheImpl.Config - Annotation Type in com.composum.ai.backend.slingbase.impl
 
markdownToHtml(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
markdownToHtml(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
MARKER_DEBUG_OUTPUT_REQUEST - Static variable in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
If this is embedded into the request then the AI will not be called, but the (JSON) request that would be sent to the AI is given back as a result - put into the output stream or returned, depending on function.
MARKER_DEBUG_PRINT_REQUEST - Static variable in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
If this is embedded into the request processing will be aborted and the whole request would be sent to the AI will be wrapped into an exception which is caught and the request is then printed.
matchesAny(String, String[]) - Static method in class com.composum.ai.backend.slingbase.impl.AllowDenyMatcherUtil
 
matchesAny(String, List<String>) - Static method in class com.composum.ai.backend.slingbase.impl.AllowDenyMatcherUtil
 
maximumTokensPerRequest - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
maximumTokensPerRequest() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
 
maximumTokensPerResponse - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
maximumTokensPerResponse() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
 
maxRequestSize - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
maxRequestSize() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.GPTDictationServiceConfig
 
MAXTOKENS - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
To respect limits of ChatGPT we replace in texts longer than this many words we replace the middle with [...] TODO: use an intelligent algorithm to determine this limit, but that's pretty hard for executePromptOnText.
MAXTRIES - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
The maximum number of retries.
maybeHandle(Resource, PrintWriter, ApproximateMarkdownService, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
 
maybeHandle(Resource, PrintWriter, ApproximateMarkdownService, SlingHttpServletRequest, SlingHttpServletResponse) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin
Checks whether the resource should be handled by this plugin and if so, handles it by printing an appropriate markdown representation to the PrintWriter.
maybeHandle(Resource, PrintWriter, ApproximateMarkdownService, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
 
merge(GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
Creates a configuration that joins the values.
merge(GPTConfiguration, boolean) - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
Creates a configuration that joins the values.
merge(GPTConfiguration, GPTConfiguration) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
mergeAdditively(GPTPermissionInfo, GPTPermissionInfo) - Static method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
Joins the permission informations additively.
mergeDelta(GPTFunctionCallDetails) - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
 
mergeDelta(GPTToolCall) - Method in class com.composum.ai.backend.base.service.chat.GPTToolCall
When streaming, this merges the delta received during the stream.
mergeDelta(ChatCompletionFunctionCallDetails) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
 
mergeDelta(ChatCompletionToolCall) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
 
mergeDelta(List<GPTToolCall>, List<GPTToolCall>) - Static method in class com.composum.ai.backend.base.service.chat.GPTToolCall
When streaming, this merges the delta received during the stream.
mergeDelta(List<ChatCompletionToolCall>, List<ChatCompletionToolCall>) - Static method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
 
mergeIn(GPTChatRequest) - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
Merges in additional parameters: maxtokens overwrites, if there is a system message it's appended to the current one, and the other messages are added at the back.
MESSAGE_SEPARATOR - Static variable in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
matches the lines like ---------- system ---------- that separate the individual messages in the template
model - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
model() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.GPTDictationServiceConfig
 
models() - Method in annotation type com.composum.ai.backend.base.service.chat.GPTBackendConfiguration
 
modified(GPTDictationServiceImpl.GPTDictationServiceConfig) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
ModifyPageReadTool - Class in com.composum.ai.backend.slingbase.experimential.impl
 
ModifyPageReadTool() - Constructor for class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool
 
ModifyPageReadTool.ComponentDescription - Class in com.composum.ai.backend.slingbase.experimential.impl
 
ModifyPageReadTool.ComponentProperty - Class in com.composum.ai.backend.slingbase.experimential.impl
 
ModifyPageReadTool.Config - Annotation Type in com.composum.ai.backend.slingbase.experimential.impl
 
ModifyPageReadTool.PageProperties - Class in com.composum.ai.backend.slingbase.experimential.impl
 
ModifyPageWriteTool - Class in com.composum.ai.backend.slingbase.experimential.impl
 
ModifyPageWriteTool() - Constructor for class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageWriteTool
 
ModifyPageWriteTool.Config - Annotation Type in com.composum.ai.backend.slingbase.experimential.impl
 
MULTITRANSLATION_SEPARATOR_END - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
End of separator like `573472 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%` .
MULTITRANSLATION_SEPARATOR_PATTERN - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
Regexp matching separator like `%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 573472 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%` (group "id" matches the number).
MULTITRANSLATION_SEPARATOR_START - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
Start of separator like `%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 573472 %%%%%%%%%%%%%%%%` .

N

NonModifyingRequestWrapper(SlingHttpServletRequest, String) - Constructor for class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
normalize(String) - Method in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
Turn it into a query for the words mentioned in there - that is, remove all meta characters for CONTAINS queries: AND, OR, words prefixed with -, quotes, backslashes.
normalize(Resource) - Method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
NOT_HANDLED - com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin.PluginResult
 
NULLCFG - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 

O

of(String) - Static method in class com.composum.ai.backend.base.service.chat.RateLimiter
Tries to find something like "Limit: 3 / min." in errorbody and returns a RateLimiter for that.
ofAdditionalInstructions(String) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
ofContext(String, String) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
ofContexts(List<GPTConfiguration.GPTContextInfo>) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
ofHighIntelligenceNeeded(Boolean) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
ofMaxTokens(Integer) - Static method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
Returns a new request with either maxTokens set if that's given, or just an empty request.
ofModel(String) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
ofRichText(boolean) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
Returns GPTConfiguration.HTML if richText is true, GPTConfiguration.MARKDOWN otherwise.
ofTemperature(Double) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
ofTools(List<GPTTool>) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
onError(Throwable) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
 
onError(Throwable) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
 
onError(Throwable) - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
Called when an error occurs.
onError(Throwable) - Method in class com.composum.ai.backend.slingbase.EventStream
Puts an 'exception' event into the stream with data JSON like this: {"success":false,"title":"Internal error","messages":[{"level":"error","text":"something happened"}]}
onFinish(GPTFinishReason) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
 
onFinish(GPTFinishReason) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
 
onFinish(GPTFinishReason) - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
This is called when the response is complete to specify the reason (e.g.
onFinish(GPTFinishReason) - Method in class com.composum.ai.backend.slingbase.EventStream
Successfull conclusion; puts event 'finished' into the stream with data JSON like this: {"success":true,"data":{"result":{"finishreason":"STOP"}}}
onNext(String) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
 
onNext(String) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
 
onNext(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
Called when a couple of characters come in.
onNext(String) - Method in class com.composum.ai.backend.slingbase.EventStream
 
OPENAI_EMBEDDINGS_URL - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
OpenAIEmbeddings - Interface in com.composum.ai.backend.base.service.chat.impl.chatmodel
Request and response for OpenAI embeddings API.
OpenAIEmbeddings.EmbeddingObject - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
 
OpenAIEmbeddings.EmbeddingRequest - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
 
OpenAIEmbeddings.EmbeddingResponse - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
 
openAIHelper - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
orderByEmbedding(String, List<Resource>, SlingHttpServletRequest, SlingHttpServletResponse, Resource) - Method in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
Finds the resources whose markdown approximation has embeddings that are the most similar to the querytext embedding.
orderByEmbedding(String, List<Resource>, SlingHttpServletRequest, SlingHttpServletResponse, Resource) - Method in interface com.composum.ai.backend.slingbase.RAGService
Finds the resources whose markdown approximation has embeddings that are the most similar to the querytext embedding.
OsgiAIConfigurationPluginFactory - Interface in com.composum.ai.backend.slingbase.impl
OsgiAIConfigurationPluginFactoryImpl - Class in com.composum.ai.backend.slingbase.impl
OsgiAIConfigurationPluginFactoryImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginFactoryImpl
 
OsgiAIConfigurationPluginImpl - Class in com.composum.ai.backend.slingbase.impl
This implementation sources its configurations from the OSGI environment, specifically from instances of GPTPermissionConfiguration.
OsgiAIConfigurationPluginImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginImpl
 
OsgiAIPromptlibConfigurationPluginImpl - Class in com.composum.ai.backend.slingbase.impl
This implementation sources the global GPTPromptLibrary configuration from the OSGI environment.
OsgiAIPromptlibConfigurationPluginImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.OsgiAIPromptlibConfigurationPluginImpl
 

P

pageAllowed(SlingHttpServletRequest, String, GPTPermissionConfiguration) - Method in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
 
pageCachedValueService - Variable in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
 
PageCachedValueService - Interface in com.composum.ai.backend.slingbase
Service to cache some values that depend on a page content but are computationally intensive to calculate, like the markdown representation or embeddings or a machine generated summary.
PAGEPROMPT - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
Pattern for a PAGEPROMPT: ...
PageProperties() - Constructor for class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool.PageProperties
 
PARAM_ADDITIONAL_PROMPT - Static variable in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
Parameter that gives an additional prompt to add to the AI request.
PARAM_ADDITIONAL_URLS - Static variable in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
Parameter that gives additional URLs or paths to pages with background information to provide data to the AI.
PARAM_BACKGROUND_INFORMATION - Static variable in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
Parameter that gives additional background information to provide data to the AI (not a prompt!).
PARAM_EDITORURL - Static variable in class com.composum.ai.backend.slingbase.AIConfigurationServlet
Parameter that gives the editor URL to check the permissions for.
PARAM_EMBEDDINGORDER - Static variable in class com.composum.ai.backend.slingbase.impl.RAGServlet
Boolean parameter - if true, the results will be ordered by comparing the embedding with the query embedding.
PARAM_LIMIT - Static variable in class com.composum.ai.backend.slingbase.impl.RAGServlet
Maximum number of results from the search that are ranked with the embedding.
PARAM_LIMITRAGTEXTS - Static variable in class com.composum.ai.backend.slingbase.impl.RAGServlet
For query answering (ragAnswer): the maximum number of pages that are given to the AI to answer.
PARAM_PREPROCESS_QUERY - Static variable in class com.composum.ai.backend.slingbase.impl.RAGServlet
Boolean parameter - if true, the query will be preprocessed before searching to generate likely keywords.
PARAM_QUERY - Static variable in class com.composum.ai.backend.slingbase.impl.RAGServlet
The actual search query.
PARAM_RESOURCE_PATH - Static variable in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
Parameter that gives the page to transform.
PARAM_URL - Static variable in class com.composum.ai.backend.slingbase.ApproximateMarkdownServlet
If this is given with an URL instead of a suffix, we retrieve the HTML from the given source.
PARAMETER_AUDIO_STREAM - Static variable in class com.composum.ai.backend.slingbase.AIDictationServlet
Parameter to transmit the audio stream to be transcribed.
PARAMETER_CHAT - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
Parameter to transmit additional chat after the first prompt AICreateServlet.PARAMETER_PROMPT.
PARAMETER_CONFIGBASEPATH - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
Parameter containing the path of the page, for determining the configuration.
PARAMETER_CONTENT_TYPE - Static variable in class com.composum.ai.backend.slingbase.AIDictationServlet
Parameter to transmit the content type of the audio, e.g.
PARAMETER_INPUT_IMAGE_PATH - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
Parameter to transmit a path to an image instead of a text.
PARAMETER_LANGUAGE - Static variable in class com.composum.ai.backend.slingbase.AIDictationServlet
Parameter to transmit the language code to use, e.g.
PARAMETER_MAXTOKENS - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
Optional numerical parameter limiting the number of tokens (about 3/4 english word on average) to be generated.
PARAMETER_PROMPT - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
Parameter to transmit a prompt on which ChatGPT is to operate - that is, the instructions.
PARAMETER_PROMPT - Static variable in class com.composum.ai.backend.slingbase.AIDictationServlet
Parameter to transmit an optional prompt to give the AI some context, e.g.
PARAMETER_RICHTEXT - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
Optional boolean parameter that indicates the inputText and response are in HTML, not Markdown.
PARAMETER_SOURCE - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
Parameter to transmit a text on which ChatGPT is to operate - not as instructions but as data.
PARAMETER_SOURCEPATH - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
Parameter with a JCR path that is used as input text on which ChatGPT is to operate - not as instructions but as data.
PARAMETER_STREAMID - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
The ID of the stream.
PARAMETER_TEXTLENGTH - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
Description of intended response (generated text) length, optionally including maximum number of tokens, as e.g.
PATTERN_HAS_LETTER - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
PATTERN_HTML_TAG - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
PATTERN_LIMIT_ERROR - Static variable in class com.composum.ai.backend.base.service.chat.RateLimiter
 
PATTERN_SEPARATE_WHITESPACE - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
Separate whitespace at the beginning and end from the non-whitespace text.
PATTERN_TRY_AGAIN - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
PATTERN_TWO_SEPARATE_WHITESPACE - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.ModifyPageReadTool
Heuristic to detect text attributes.
performCallAsync(CompletableFuture<Void>, long, SimpleHttpRequest, GPTCompletionCallback, int, long) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
Executes a call with retries.
PLACEHOLDER_MARKER - Static variable in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
If that's in a string, it likely contains placeholders.
PLACEHOLDER_PATTERN - Static variable in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
 
PLACEHOLDER_TEXT - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
PLACEHOLDER_WORDCOUNTLIMIT - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
plugins - Variable in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
 
plugins - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 
PREFIX_INFORMATIONALLY - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
PREFIX_PROMPT - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
processBlocks(List<List<String>>) - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
 
PROMPTFIELD - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
Matches a text with PROMPTFIELD start and determines the id if there is one given.
property - Variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl.Replacement
 
PROPERTY_MARKDOWN - Static variable in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
The property in the cache tree where the markdown is stored.
PROPERTY_PREFIX_PROMPT - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
Property prefix: if a property contains a prompt, it's copied into a property with this prefix so that we can redo and undo the process.
putCachedEmbedding(String, String) - Method in interface com.composum.ai.backend.base.service.chat.GPTEmbeddingService.EmbeddingsCache
 
putPageCachedValue(String, Resource, String) - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
 
putPageCachedValue(String, Resource, String) - Method in interface com.composum.ai.backend.slingbase.PageCachedValueService
Writes a value that should be cached with that property name to the cache.

Q

QUEUEEND - Static variable in class com.composum.ai.backend.slingbase.EventStream
Special message in the EventStream.queue that signals that we are done.

R

ragAnswer(String, List<Resource>, SlingHttpServletRequest, SlingHttpServletResponse, Resource, int) - Method in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
Answer a question with RAG from the given resources, e.g.
ragAnswer(String, List<Resource>, SlingHttpServletRequest, SlingHttpServletResponse, Resource, int) - Method in interface com.composum.ai.backend.slingbase.RAGService
Answer a question with RAG from the given resources, e.g.
ragAnswer(ResourceResolver, Resource, String, int, boolean, SlingHttpServletRequest, SlingHttpServletResponse, int, boolean) - Method in class com.composum.ai.backend.slingbase.impl.RAGServlet
 
ragService - Variable in class com.composum.ai.backend.slingbase.impl.RAGServlet
 
RAGService - Interface in com.composum.ai.backend.slingbase
Basic services for retrieval augmented generation (RAG).
RAGServiceImpl - Class in com.composum.ai.backend.slingbase.impl
Basic services for retrieval augmented generation (RAG).
RAGServiceImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
 
RAGServlet - Class in com.composum.ai.backend.slingbase.impl
Servlet providing various RAG supported services.
RAGServlet() - Constructor for class com.composum.ai.backend.slingbase.impl.RAGServlet
 
RateLimiter - Class in com.composum.ai.backend.base.service.chat
This class is used to limit the rate of requests to the chat service.
RateLimiter(RateLimiter, int, int, TimeUnit) - Constructor for class com.composum.ai.backend.base.service.chat.RateLimiter
Constructs a rate limiter with a parent.
read() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.LimitedInputStream
 
read(byte[], int, int) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.LimitedInputStream
 
recalculateDelay(String, long) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
If the response body contains a string like "Please try again in 20s." (number varies) we return a value of that many seconds, otherwise just use iterative doubling.
registry - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
related(ResourceResolver, Resource, String, int, boolean, SlingHttpServletRequest, SlingHttpServletResponse, boolean) - Method in class com.composum.ai.backend.slingbase.impl.RAGServlet
Does a plain search for the terms, without actual RAG.
releaseResources() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
 
removeAttribute(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
removeTool(AITool) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
 
renderedAsHTML(Resource, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
We render the resource into a mock response and capture and return the generated HTML.
replaceContexts(List<GPTConfiguration.GPTContextInfo>) - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
Returns a copy with the contexts replaced.
Replacement(Resource, String, String) - Constructor for class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl.Replacement
 
replacePromptsInResource - com.composum.ai.backend.slingbase.experimential.AITemplatingServlet.Method
 
replacePromptsInResource(Resource, String, List<URI>, String) - Method in interface com.composum.ai.backend.slingbase.experimential.AITemplatingService
Replaces all prompts in the resource with the response of the AI.
replacePromptsInResource(Resource, String, List<URI>, String) - Method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
replacePromptsInResource(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
 
requestCounter - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
requestCounter - Variable in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
 
requestsPerDay() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
 
requestsPerDay() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.GPTDictationServiceConfig
 
requestsPerHour() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
 
requestsPerHour() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.GPTDictationServiceConfig
 
requestsPerMinute() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
 
requestsPerMinute() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.GPTDictationServiceConfig
 
requestTimeout - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
requestTimeout() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
 
reset() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
resetBuffer() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
resetToPrompts - com.composum.ai.backend.slingbase.experimential.AITemplatingServlet.Method
 
resetToPrompts(Resource) - Method in interface com.composum.ai.backend.slingbase.experimential.AITemplatingService
Undo #replacePromptsInResource.
resetToPrompts(Resource) - Method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
Sets all properties from its backup copies starting with AITemplatingServiceImpl.PROPERTY_PREFIX_PROMPT and removes the backups.
resetToPrompts(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
 
resource - Variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl.Replacement
 
resourceRendersAsComponentMatching(Resource, Pattern) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin
Returns true when the sling:resourceType or one of the sling:resourceSuperType of the sling:resourceType match the pattern.
resourceResolverFactory - Variable in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
 
ResponseFormat() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormat
 
responseProblem(String, String) - Method in interface com.composum.ai.backend.base.service.chat.GPTResponseCheck
Performs a check, and if the check fails it returns additional instructions with which the request is retried.
result - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.EnsureResultFutureCallback
 
result - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
 
resultBuilder - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
 
resultCount() - Method in annotation type com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool.Config
 
retrieveForwardFragment() - Method in class com.composum.ai.backend.base.service.StringstreamSlowdown
Returns the longest fragment of StringstreamSlowdown.collected ending in a whitespace or punctuation character.
retrieveStream(String, SlingHttpServletRequest) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
 
RetryableException(String) - Constructor for exception com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.RetryableException
 
RICHTEXT_PATTERN - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
Heuristics to identify richtext properties: start and end with a HTML tag.

S

saveStream(EventStream, SlingHttpServletRequest) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
Saves stream for streaming responses into session, to be retrieved with AICreateServlet.retrieveStream(String, SlingHttpServletRequest).
sb - Variable in class com.composum.ai.backend.base.service.chat.impl.HtmlToMarkdownConverter
 
scheduledExecutorService - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
SearchPageAITool - Class in com.composum.ai.backend.slingbase.experimential.impl
 
SearchPageAITool() - Constructor for class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
 
SearchPageAITool.Config - Annotation Type in com.composum.ai.backend.slingbase.experimential.impl
 
searchRelated(Resource, String, int) - Method in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
 
searchRelated(Resource, String, int) - Method in interface com.composum.ai.backend.slingbase.RAGService
Returns a list of up to limit paths that might be related to the query.
seed - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
seed() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl.Config
 
sendError(int) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
sendError(int, String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
sendRedirect(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
separateResultTexts(String, List<String>, List<String>, String) - Static method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
SEPARATOR_PATTERN - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
serialize(List<ChatCompletionMessagePart>, Type, JsonSerializationContext) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessagePartListDeSerializer
To save space: if there is only one element in src that also is a text message, we serialize it as a string, otherwise as object list.
SERVICE_CATEGORIZE - Static variable in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
Only for composum: service name for categorization.
SERVICE_CREATE - Static variable in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
Service name for Content Creation Dialog
SERVICE_SIDEPANEL - Static variable in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
Service name for Side Panel AI
SERVICE_TRANSLATE - Static variable in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
Only for Composum: service name for translation.
services() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
 
SESSIONKEY_STREAMING - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
Session contains a map at this key that maps the streamids to the streaming handle.
setAllowedComponents(List<String>) - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
 
setArguments(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
 
setAttribute(String, Object) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
setBufferSize(int) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
setCharacterEncoding(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
setCharacterEncoding(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
setChoices(List<ChatCompletionChoice>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
setCompletionTokens(int) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
 
setConfiguration(GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
Optionally, sets the configuration.
setContent(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoiceMessage
 
setContent(List<ChatCompletionMessagePart>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
 
setContentLength(int) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
setContentLengthLong(long) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
setContentType(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
setContext(SlingGPTExecutionContext) - Method in class com.composum.ai.backend.slingbase.EventStream
 
setCreated(long) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
setData(List<OpenAIEmbeddings.EmbeddingObject>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingResponse
 
setDateHeader(String, long) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
setDelta(ChatCompletionChoiceMessage) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
 
setDeniedComponents(List<String>) - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
 
setDescription(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
 
setDetail(ChatCompletionMessagePart.ImageDetail) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessageUrlPart
 
setDimensions(Integer) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
 
setEmbedding(float[]) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingObject
 
setEncodingFormat(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
 
setFinishReason(ChatCompletionResponse.FinishReason) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
 
setFunction(ChatCompletionFunctionCallDetails) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
 
setFunction(ChatCompletionFunctionDetails) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatTool
 
setHeader(String, String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
setId(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
setId(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
 
setId(String) - Method in class com.composum.ai.backend.slingbase.EventStream
 
setImageUrl(ChatCompletionMessagePart.ChatCompletionMessageUrlPart) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
 
setIndex(int) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
 
setIndex(int) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
 
setIndex(Integer) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingObject
 
setInput(List<String>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
 
setIntHeader(String, int) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
setLocale(Locale) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
setLoggingId(String) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
 
setLoggingId(String) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
 
setLoggingId(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
For debugging: this sets the internal ID that is used for logging purposes.
setLoggingId(String) - Method in class com.composum.ai.backend.slingbase.EventStream
 
setMaxTokens(Integer) - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
Optionally, sets the maximum number of tokens (approx.
setMaxTokens(Integer) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
setMessage(ChatCompletionChoiceMessage) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
 
setMessages(List<ChatCompletionMessage>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
setModel(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
setModel(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
setModel(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
 
setName(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
 
setName(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
 
setObject(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
setParameters(Object) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
 
setPromptTokens(int) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
 
setRequest(String) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
 
setRequest(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
For debugging - the request that was sent to ChatGPT as JSON.
setResponseFormat(ChatCompletionRequest.ResponseFormat) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
setRole(ChatCompletionRequest.Role) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoiceMessage
 
setRole(ChatCompletionRequest.Role) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
 
setSeed(Integer) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
setService(List<String>) - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
 
setServicePermissions(List<GPTPermissionInfo.GPTPermissionInfoItem>) - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
 
setStatus(int) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
setStatus(int, String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
 
setStream(Boolean) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
setStrict(Boolean) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
 
setSystemFingerprint(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
setTemperature(Double) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
setText(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
 
setToolCallId(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
 
setToolCalls(List<ChatCompletionToolCall>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoiceMessage
 
setToolCalls(List<ChatCompletionToolCall>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
 
setTools(List<ChatTool>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
 
setTotalTokens(int) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
 
setType(ChatCompletionMessagePart.Type) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
 
setType(ChatCompletionRequest.ResponseFormatType) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormat
 
setType(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
 
setType(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatTool
 
setUrl(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessageUrlPart
 
setUsage(ChatCompletionUsage) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
 
setUser(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
 
shorten(String, int) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
Helper method to shorten texts by taking out the middle if too long.
shorten(String, int) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
sidePanelPromptsPath() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPromptLibrary
 
singleTranslation(String, String, String, GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.GPTTranslationService
Translate the text from the target to destination language, either Java locale name or language name.
singleTranslation(String, String, String, GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
Translate the text from the target to destination language, either Java locale name or language name.
siteLevel() - Method in annotation type com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool.Config
 
sleep(long) - Method in class com.composum.ai.backend.base.service.chat.RateLimiter
Provides the possibility to fake time, for easy unittests.
SlingCaConfigPluginImpl - Class in com.composum.ai.backend.slingbase.impl
Reads configurations using Sling context aware configuration.
SlingCaConfigPluginImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.SlingCaConfigPluginImpl
 
SlingCaConfigPluginImpl.Config - Annotation Type in com.composum.ai.backend.slingbase.impl
 
SlingGPTExecutionContext - Class in com.composum.ai.backend.slingbase.model
For Sling tools: the request and response of the streaming as executin context for tool calls.
SlingGPTExecutionContext(SlingHttpServletRequest, SlingHttpServletResponse) - Constructor for class com.composum.ai.backend.slingbase.model.SlingGPTExecutionContext
 
SOURCEURL - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
Pattern for a SOURCEURL(https://example.com/) to extract the URL - group "url".
STANDARD_INTELLIGENCE - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
Requests faster and less expensive "normal intelligence" model.
start(HttpResponse, ContentType) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
 
startAsync() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
startAsync(ServletRequest, ServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
STOP - com.composum.ai.backend.base.service.chat.GPTFinishReason
The response is complete.
STOP - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
 
StreamDecodingResponseConsumer(GPTCompletionCallback, CompletableFuture<Void>, long) - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
The result of the webservice call is written to callback; result is set when either it completed or aborted.
streamingChatCompletion(GPTChatRequest, GPTCompletionCallback) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
Give some messages and receive the streaming response via callback, to reduce waiting time.
streamingChatCompletion(GPTChatRequest, GPTCompletionCallback) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
streamingChatCompletionWithToolCalls(GPTChatRequest, GPTCompletionCallback) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
Give some messages and receive the streaming response via callback, to reduce waiting time.
streamingChatCompletionWithToolCalls(GPTChatRequest, GPTCompletionCallback) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
streamingSingleTranslation(String, String, String, GPTConfiguration, GPTCompletionCallback) - Method in interface com.composum.ai.backend.base.service.chat.GPTTranslationService
Translate the text from the target to destination language, either Java locale name or language name.
streamingSingleTranslation(String, String, String, GPTConfiguration, GPTCompletionCallback) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
StringstreamSlowdown - Class in com.composum.ai.backend.base.service
For a stream of String segments (like the ChatGPT tokens that trickle in from ChatGPT when streaming) this collects the parts and forwards the collected part every 500ms to a given consumer.
StringstreamSlowdown(Consumer<String>, long) - Constructor for class com.composum.ai.backend.base.service.StringstreamSlowdown
Sets the target where we forward the collected strings.
SUFFIX_PAGE_MODIFICATION_DATE - Static variable in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
Suffix for a property that saves the page modification date when the corresponding property was generated.
SYSMSG - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
SYSTEM - com.composum.ai.backend.base.service.chat.GPTMessageRole
The system message helps set the behavior of the assistant.
SYSTEM - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.Role
 

T

temperature - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
 
temperature() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl.Config
 
TEMPLATE_CHATPROMPTONTEXT - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
TEMPLATE_MAKEDESCRIPTION - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
TEMPLATE_MAKEKEYWORDS - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
Template for GPTChatMessagesTemplate to generate keywords from a text.
TEMPLATE_PROMPTONTEXT - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
 
TEMPLATE_SINGLETRANSLATION - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
Template for GPTChatMessagesTemplate to translate a single word or phrase.
TEMPLATEDIR - Static variable in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
 
templates - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
TEMPLATESUFFIX - Static variable in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
 
text - Variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl.Replacement
 
text(String) - Static method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
 
TEXT - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.Type
 
TEXT - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormatType
 
textAttributes - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
A list of attributes that are output (in that ordering) without any label, each on a line for itself.
textAttributes() - Method in annotation type com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl.Config
 
THE_END_COMMAND - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 
THE_END_PATTERN - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
Matches a properly executed AITemplatingServiceImpl.THE_END_COMMAND.
THREE_WHITESPACE_PATTERN - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
If that occurs in a string it has several words.
toGPTFinishReason(ChatCompletionResponse.FinishReason) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
 
toGptFuctionCallDetails() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
 
toGptToolCall() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
 
toGptToolCallList(List<ChatCompletionToolCall>) - Static method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
Turns the list into a GPTToolCall list observing the ChatCompletionToolCall.getIndex().
TOOL - com.composum.ai.backend.base.service.chat.GPTMessageRole
A result of a tool call the assistant made.
TOOL - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.Role
 
TOOL_CALLS - com.composum.ai.backend.base.service.chat.GPTFinishReason
Model decided to call one or more tools.
TOOL_CALLS - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
 
toolDelta(List<GPTToolCall>) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
 
toolDelta(List<GPTToolCall>) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
 
toolDelta(List<GPTToolCall>) - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
Called when a tool call is made.
tools - Variable in class com.composum.ai.backend.slingbase.AICreateServlet
 
toString() - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
String representation only for debugging.
toString() - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
 
toString() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration.GPTContextInfo
 
toString() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
 
toString() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
String representation for debugging.
toString() - Method in enum com.composum.ai.backend.base.service.chat.GPTMessageRole
 
toString() - Method in class com.composum.ai.backend.base.service.chat.GPTToolCall
String representation for debugging.
toString() - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownService.Link
 
toString() - Method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl.Replacement
 
toString() - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
 
toString() - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
 
transcribe(InputStream, String, String, GPTConfiguration, String) - Method in interface com.composum.ai.backend.base.service.chat.GPTDictationService
Transcribes the input audio to text.
transcribe(InputStream, String, String, GPTConfiguration, String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
traverseTreeForStructureGathering(Resource, PrintWriter, String, String) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
This is debugging code we needed to gather information for the implementation; we keep it around for now.
triggerCallAsync(long, SimpleHttpRequest, GPTCompletionCallback) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
Puts the call into the pipeline; the returned future will be set normally or exceptionally when it's done.
TRUNCATE_MARKER - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
TYPE_MAP_STRING_STRING - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
 

U

UNLIMITED - Static variable in class com.composum.ai.backend.base.service.chat.RateLimiter
Does not limit in any way.
UnsupportedOperationCalled() - Constructor for exception com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.UnsupportedOperationCalled
 
upgrade(Class<T>) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
 
URL_OPENAI_TRANSCRIPTIONS - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
 
urlBlacklist - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
Whitelist for URLs we can connect to get the markdown.
urlSourceBlacklist() - Method in annotation type com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl.Config
 
urlSourceWhitelist() - Method in annotation type com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl.Config
 
urlWhitelist - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
Blacklist for URLs we can connect to get the markdown.
USER - com.composum.ai.backend.base.service.chat.GPTMessageRole
The user messages help instruct the assistant.
USER - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.Role
 
userAndGroupsOfUser(SlingHttpServletRequest) - Static method in class com.composum.ai.backend.slingbase.impl.AllowDenyMatcherUtil
Collects the username and all groups the user belongs to (either explicitly or inherited).

V

valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.GPTConfiguration.AnswerType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.GPTConfiguration.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.GPTFinishReason
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.GPTMessageRole
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ImageDetail
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormatType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.Role
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin.PluginResult
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.composum.ai.backend.slingbase.experimential.AITemplatingServlet.Method
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.composum.ai.backend.base.service.chat.GPTConfiguration.AnswerType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.composum.ai.backend.base.service.chat.GPTConfiguration.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.composum.ai.backend.base.service.chat.GPTFinishReason
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.composum.ai.backend.base.service.chat.GPTMessageRole
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ImageDetail
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormatType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.Role
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin.PluginResult
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.composum.ai.backend.slingbase.experimential.AITemplatingServlet.Method
Returns an array containing the constants of this enum type, in the order they are declared.
VIDEO_PATTERN - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
 

W

waitForLimit() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
 
waitForLimit() - Method in class com.composum.ai.backend.base.service.chat.RateLimiter
For a synchronous call: RateLimiter.waitForLimit() has to be called before starting the request; it'll make sure the rate limit is not exceeded.
writeData(String) - Method in class com.composum.ai.backend.slingbase.EventStream
 
writeTo(PrintWriter) - Method in class com.composum.ai.backend.slingbase.EventStream
 
writeToResponse(JsonWriter, SlingHttpServletResponse, boolean, boolean, String) - Method in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
 
A B C D E F G H I J K L M N O P Q R S T U V W 
All Classes All Packages