Intermediate conformance layer for a generative response engine
The system addresses inefficiencies in generative response engines by implementing a tool interface layer for semantic mapping and conformance registry, enabling reliable and secure integration of unknown tools and servers.
Patent Information
- Application Number
- US19/432649
- Authority / Receiving Office
- US · United States
- Patent Type
- Patents(United States)
- Current Assignee / Owner
- Filing Date
- 2025-12-24
- Publication Date
- 2026-12-01
- Estimated Expiration
- 2045-12-24
AI Technical Summary
Existing generative response engines struggle with integrating unknown tools and servers due to varying tool ecosystems, lacking automated exploration, semantic mapping, and inconsistent security enforcement, leading to inefficient and unreliable tool adoption.
A system with a tool interface layer that semantically maps unfamiliar tool functions to normalized operations, constructs real-time adapters, and maintains a conformance registry for persistent and reusable tool integration, ensuring secure and reliable tool usage.
Enables seamless integration of previously unknown tools, improving operational efficiency, reliability, and security by facilitating accelerated onboarding and continuous learning, while maintaining consistent performance and trustworthiness.
Smart Images

Figure US12817335-D00000_ABST
Abstract
Description
BACKGROUND
[0001] Generative response engines such as large language models represent a significant milestone in the field of artificial intelligence, revolutionizing computer-based natural language understanding and generation. Generative response engines, powered by advanced deep learning techniques, have demonstrated astonishing capabilities in tasks such as text generation, translation, summarization, and even code generation. Generative response engines can sift through vast amounts of text data, extract context, and provide coherent responses to a wide array of queries.
[0002] Connectors are enhancing the utility of generative response engines by enabling seamless integration with external data sources, tools, and services. Through these connectors, the generative response engines can access real-time information, perform specialized tasks, and interact dynamically with diverse systems. This connectivity allows for more contextually relevant, accurate, and actionable responses, extending the range of applications and improving overall performance in real-world environments.BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS
[0003] Details of one or more aspects of the subject matter described in this disclosure are set forth in the accompanying drawings and the description below. However, the accompanying drawings illustrate only some typical aspects of this disclosure and are therefore not to be considered limiting of its scope. Other features, aspects, and advantages will become apparent from the description, the drawings, and the claims.
[0004] FIG. 1 illustrates an example system supporting a generative response engine during inference operations in accordance with some aspects of the present technology.
[0005] FIG. 2 illustrates a process for adding a new tool for use by a generative response engine in accordance with some aspects of the present technology.
[0006] FIG. 3 illustrates a process for adding a new tool that is not recognized for use by a generative response engine, in accordance with some aspects of the present technology.
[0007] FIG. 4 illustrates a routine for dynamically translating and aligning tool functions, to facilitate adding access to tool functions to the generative response engine in accordance with some aspects of the present technology.
[0008] FIG. 5 illustrates an example routine for adding a new server-based tool to an AI assistant service in accordance with some aspects of the present technology.
[0009] FIG. 6 illustrates an example routine for adding a tool and making it available to a generative response engine, in accordance with some aspects of the present technology.
[0010] FIG. 7 illustrates an example routine for determining conformance of connectors in accordance with some aspects of the present technology.
[0011] FIG. 8 illustrates an example routine for generating a standardized connector interface for a generative response engine 140 in accordance with some aspects of the present technology.
[0012] FIG. 9 illustrates an example routine for generating a list of available connectors and conformance records for the available connectors in accordance with some aspects of the present technology.
[0013] FIG. 10 illustrates an example routine for evaluating the performance of a connector in accordance with some aspects of the present technology.
[0014] FIG. 11 is a block diagram illustrating an example machine-learning platform in accordance with some aspects of the present technology.
[0015] FIG. 12A illustrates an example transformer architecture in accordance with some aspects of the present technology.
[0016] FIG. 12B illustrates a further example transformer architecture in accordance with some aspects of the present technology.
[0017] FIG. 12C illustrates a further example transformer architecture in accordance with some aspects of the present technology.
[0018] FIG. 13 shows an example of a system for implementing some aspects of the present technology.DETAILED DESCRIPTION
[0019] Generative response engines such as large language models represent a significant milestone in the field of artificial intelligence, revolutionizing computer-based natural language understanding and generation. Generative response engines, powered by advanced deep learning techniques, have demonstrated astonishing capabilities in tasks such as text generation, translation, summarization, and even code generation.
[0020] Many generative response engines provide a conversational user interface powered by a chatbot whereby the user account interacts with the generative response engine through natural language conversation with the chatbot. Such a user interface provides an intuitive format to provide prompts or instructions to the generative response engine. In fact, the conversational user interface powered by the chatbot can be so effective that users can feel as if they are interacting with a person. Some user accounts find the generative response engine effective enough that they utilize the conversational user interface powered by the chatbot as they would an assistant.
[0021] Traditional model stacks were built around known APIs and known adapters. They assumed a user or developer would study a target service, craft a bespoke plugin or software developer kit, and freeze the contract. That model breaks in modern tool ecosystems where names, parameters, and even workflows vary wildly across providers. If a tool uses different terms or different primitives, legacy systems fail, as they do not understand how to conform the new, unknown tool to the current tool surface. Previous systems also lack meaningful runtime discovery, no safe probe calls, no schema inference, no semantic alignment, so the generative response engine can't opportunistically use a new service. And when a one-off translation is undertaken, it's not captured as reusable knowledge. Instead, the next team has to repeat the work. Further, security tends to be bolted on, not baked in. Scopes and permissions aren't enforced through the connector logic, so application of the tool is inconsistent. Lastly, quality is static, there are no feedback loops that score connectors and adjust selection based on real outcomes.
[0022] At the edge, a tool interface layer collaborates with a translation service to explore a protocol of a tool (including model context protocol (MCP) servers), read parameters and I / O schemas, and, where permitted, issue sandbox probe calls. The present technology can semantically map unfamiliar function names to normalized operations the generative response engine already understands and build adapters in real-time. Those adapters handle parameter projection, type coercion, and response normalization. They can also compose multi-call workflows into a single canonical operation. The result is a working bridge even when the tool's surface doesn't mirror the generative response engine's expectations.
[0023] Furthermore, the mapping isn't ephemeral. The system stores it as a conformance record, where it is versioned, keyed by connector, annotated with capability tags, required scopes, and confidence scores. A conformance registry is accessible by the system when a similar server or version appears. It can consult the prior mapping, which can be loaded, avoiding repeated integrations. The registry also supports automated validation, test calls verify that behavior remains consistent with the connector protocol as tools evolve. Alongside, a standardized connector interface can be generated from known specs so new connectors can be added with minimal friction. Security is a priority, with tools having declared capability descriptors and scopes in their manifests, sessions are established, and the interface layer enforces scopes across every invocation while safety systems gate and redact as needed.
[0024] Using the system described herein, previously unknown tools become readily usable without requiring a separate development cycle. The generative response engine operates using a normalized operation language, and the interface layer conforms communications with new, previously unknown tools. Mappings become persistent and reusable assets rather than single-use connections and may improve over time as usage data—such as success rates, latency, and user confirmations—are collected. This feedback supports performance scoring, allowing the generative response engine to adjust selection probabilities and favor higher-quality connections. Operationally, this enables accelerated onboarding, more reliable execution, and improved outcomes for end users.
[0025] Prior processes were insufficient because they relied on conformity or manual translation at the outset. Such approaches lacked automated exploration and semantic mapping during onboarding, real-time adapter construction with multi-call composition, and a registry that preserves and validates mappings for reuse. Without these elements, a generative response engine cannot consistently adopt previously unknown tools or servers when required. The present architecture closes these gaps, enabling discovery, conformance, enforcement, validation, and continuous learning, thereby ensuring that the system remains both flexible and trustworthy as the ecosystem evolves.
[0026] FIG. 1 illustrates an example AI assistant service supporting a generative response engine during inference operations in accordance with some aspects of the present technology. Although the example system depicts particular system components and an arrangement of such components, this depiction is to facilitate a discussion of the present technology and should not be considered limiting unless specified in the appended claims. For example, some components that are illustrated as separate can be combined with other components, and some components can be divided into separate components.
[0027] AI model(s) 110 are artificial intelligence (AI) models that can generate content in response to a prompt. The prompt can be from a human or a software entity (AI or applications, such as client application 138). The prompt is generally in natural language but could be in code, including binary. Some examples of AI model(s) 110 can include language models that generate language, such as CHATGPT, or other models, such as DALL-E or IMAGEGEN, which generate images, and SORA, which generates videos. CHATGPT, DALL-E, IMAGEGEN, and SORA are all provided by OPENAI, but the AI model(s) 110 are not limited to AI provided by OPENAI. AI model(s) 110 can also be any type of generative AI and can include AI developed using various architectures such as diffusion models and transformers (e.g., autoregressive transformer architecture) and combinations of models. Some AI models are multi-modal models which can receive and output data in text, image, audio, etc.
[0028] In some instances, a language model, such as CHATGPT, can receive prompts to output images, video, code, applications, etc., which it can provide by interfacing with one or more other models, as will be addressed further herein.
[0029] AI model(s) 110 may be part of a generative response engine 140, where generative response engine 140 may include one or more components for supporting interaction with AI model(s) 110. Users can interact with generative response engine 140 through a front end 102 and applications can interact with generative response engine 140 through APIs 106. Front end 102 serves as the interface and intermediary between the user and generative response engine 140. It encompasses a graphical user interface 104 which may be used to provide input that facilitate communication with generative response engine 140 and AI model(s) 110. Generally, users interact through a graphical user interface 104 that often includes a conversational interface, and applications interact through the API 106, but this is not a requirement.
[0030] While some components are shown as being part of generative response engine 140 and some are outside of generative response engine 140, this is for illustration purposes only and some components such as tool 130 might be part of generative response engine 140, and some components such as moderation system 136 might be outside of generative response engine 140. As used herein, generative response engine 140 encompasses deterministic services that are first-party services that prepare prompts to be sent to AI models, that are primitive level services that AI model(s) 110 can utilize to generate a response to a prompt. Services that are outside of generative response engine 140 are logically separate. For example, front end 102 might be a first-party front end (provided by the same party that provides generative response engine 140) but front end 102 is used to interface with generative response engine 140 rather than aid in developing a response to a prompt.
[0031] Some components of generative response engine 140 might be executed by computing programming units (CPU), and some components might be executed by graphical processing units (e.g., AI model(s) 110).
[0032] In some embodiments, client application 138 might provide a graphical user interface that is custom to client application 138 or can display graphical user interface 104 provided by generative response engine 140 provider.
[0033] Graphical user interface 104 is the platform through which users interact with the generative response engine 140. It can be a web-based chat window, an application, or any interface that supports data input and output. Graphical user interface 104 facilitates a conversation between the user and AI model(s) 110, as the user provides prompts in graphical user interface 104 to which AI model(s) 110 respond, and generative response engine 140 presents those responses in graphical user interface 104. In some aspects, graphical user interface 104 presents a conversational interface, which has attributes of a conversation thread between a user account and AI model(s) 110.
[0034] Graphical user interface 104 is configured to perform input handling and output presentation. The type of inputs that can be received can be relative to the specifics of generative response engine 140 and / or AI model(s) 110. For example, a language model is generally configured to accept text, but when the AI model is a multi-modal AI model, front end 102 can accept voice and images / video.
[0035] In some aspects, front end 102 can be a layer to accept any inputs, provide the inputs to generative response engine 140, receive outputs from generative response engine 140 and display the outputs. Graphical user interface 104 can accept any input types as part of the prompt, and front end AI service 142 can determine which AI model or collection of AI models are best suited to respond to the prompt. Front end AI service 142 can be one or more AI models that can be trained to determine which AI model should be used to respond to a prompt, and in some examples, can be used to improve prompts or provide additional configuration details, such as how long a reasoning model should spend processing a prompt. In general, front end AI service 142 can support functions of graphical user interface 104 by performing interference operations before a prompt is sent to generative response engine 140. Generally graphical user interface 104 is present on a client device, while front end AI service 142 might be present on the same client device or on a server in a data center.
[0036] Graphical user interface 104 is also configured to maintain the context of the conversation, which allows for coherent and relevant responses. For example, graphical user interface 104 is responsible for providing the conversation thread and other relevant context accessible to the front end 102 to the AI models along with the specific prompt. In an example, a conversation between the user account and the AI model(s) 110 can have taken several turns (prompt, response, prompt, response, etc.). When the user account provides a further prompt, the graphical user interface 104 can provide that prompt to AI model(s) 110 in the context of the entire conversation.
[0037] In another example, graphical user interface 104 might be configured to provide a system prompt along with a user-provided prompt. A system prompt is hidden from the user account and is used to set the behavior and guidelines for the AI model. The system prompt can be used to define the AI's persona, style, and constraints. There can be levels of system prompts. A highest level of a system prompt might be provided by the AI model(s) 110 provider and is meant to establish policies for the behavior of AI model(s) 110. This highest level of system prompt should be prohibited from being edited. A customization system prompt can be used to customize the behavior of the AI model and is often provided through an API call, or provided by a user account when creating a customized version of AI model(s) 110. A still lower level of system prompt might include hidden information about a task. This can include chain-of-thought from a reasoning model, or context about an application that AI model(s) 110 is working with to complete a task. Accordingly, graphical user interface 104 does not display all of the output of the AI model.
[0038] Graphical user interface 104 is also configured to display the responses from the AI model, which might include text, code snippets, images, or interactive elements.
[0039] In some aspects, AI model(s) 110 can provide instructions to front end 102 that instruct graphical user interface 104 about how to display some of the output from the AI model. For example, the AI model and / or generative response engine can direct graphical user interface 104 to present code in a code-specific format, or to present interactive graphics, or static images. In other examples, the AI model and / or generative response engine can direct graphical user interface 104 to present an interactive document editor where graphical user interface 104 can be presented with the document editor so that the user account and the AI model can collaborate on the document.
[0040] In some aspects, AI model(s) 110 can provide instructions to personalization state 126 to record facts in a personalization notepad. Personalization state 126 can store information received directly from the user account or inferred from prompts provided by the user account, and can be used to provide context to the AI model such that output is personalized for the user account. In some examples, front end 102 can be configured to notify the user account that a memory was created. Personalization state 126 can also include summaries of past conversation threads between the user account and the generative response engine 140, and / or a searchable index of past conversation threads. In this way, personalization state 126 aid generative response engine 140 and / or AI model(s) 110 to learn specific facts about a user account and recall past interactions. The past interactions can be used to guide future responses by generative response engine 140 and / or AI model(s) 110 such that generative response engine 140 and / or AI model(s) 110 becomes personalized to a particular user account.
[0041] Generative response engine 140 can provide one or more application programming interfaces (API(s)) 106. APIs enable developers to integrate the AI model's capabilities into external applications and services. APIs 106 provide programmatic access to generative response engine 140, allowing for customized interactions and functionalities. While APIs 106 are shown as part of generative response engine 140, in some examples, APIs 106 are part of front end 102. API 106 can refer to points of access to AI model(s) 110. In some examples, API 106 endpoints are located at context management service 120.
[0042] APIs 106 can accept structured requests containing prompts, context, and configuration parameters. For example, an API can be used to provide prompts and divide the prompt into system prompts and user prompts. In some aspects, APIs 106 can provide specific inputs for which AI model(s) 110 are configured to respond with a specific behavior. For example, an API can be used to specify an output in a particular format or structured output. For example, in the chat completion API, the API call can specify parameters for the output, such as the max length for the desired output, and specify aspects of the tone of the language used in the response. The output can also be structured output and in a data interchange format such as JavaScript object notation (JSON). For example, the input query may include a schema that identifies a specific output structure. Some common APIs are for participating in a conversation (Chat Completion API), for providing a single response (Completion API), for converting text into embeddings (Embeddings API), etc. The API can also be used to indicate specific decision boundaries that AI model(s) 110 might be trained to interpret. For example, the moderation API can take advantage of AI assistant service 100's content moderation decision-making. In the case of the moderation API and others, the API might give access to services other than the AI model. For example, the moderation API might be an interface to moderation system 136, addressed below.
[0043] Some other common APIs include the Fine-Tuning API, which allows developers to customize AI model(s) 110 of generative response engine 140 using their own datasets; the Audio and Speech APIs, which cause AI model(s) 110 to output speech or audio; and the Image Generation API, which causes AI model(s) 110 to output images (which may request operations of other models).
[0044] There can also be APIs that direct AI model(s) 110 and / or generative response engine 140 to interface with other applications or other generative AI engines. In such cases, the specific application or AI engine might be specified, or AI model(s) 110 might be allowed to choose another application of generative response engine 140 to use in response to a prompt.
[0045] As described herein, a Responses API can be an improved API for interacting with AI model(s) 110. Responses API can take as a parameter a response ID, which can be used to return AI model(s) 110 to a state that the model was in at a particular response, thereby allowing a user account or developer to recall a previous context without having to re-prompt AI model(s) 110 or having to replicate a previous series of prompts. Further, Responses API can facilitate function / tool chaining to enable execution of operations requiring several function / tool calls without the added overhead of responding to an API caller to call the function or tool. Instead, deterministic code associated with the API can be directed to call functions or tools (including other AI models) on behalf of the AI model, and return data resulting from the function or tool call to the AI model.
[0046] In short, graphical user interface 104 and APIs 106 can be used to provide prompts to AI model(s) 110 of generative response engine 140. Prompts are sometimes differentiated into prompt types. For example, a system prompt can be a hidden prompt that sets the behavior and guidelines for the generative response engine. A user prompt is the explicit input provided by the user, which may include questions, commands, or information.
[0047] Generative response engine 140 may also include a context management service 120. The function of context management service 120 is to manage and organize the flow of data among key subsystems, enabling AI model(s) 110 to generate responses that are contextually relevant, accurate, and enriched with additional information as required.
[0048] In some embodiments, the context management service 120, the conformance registry, and the tool interface 144 collectively implement a control plane for tool usage. The control plane can discover candidate tools for a given prompt, apply policy and scoring logic (for example, conformance scores, safety annotations, or usage rules generated from tool metadata), and inject descriptions of selected tools into a system prompt or other control structure for AI model(s) 110. In this way, in some embodiments, the AI model 110 can avoid performing an open-ended search over the entire tool library at inference time. Instead, there are some embodiments where the generative response engine 140 can reason over a curated subset of tools that the control plane has already determined to be suitable for the current task and context.
[0049] Action 122 facilitates auxiliary tasks that extend beyond basic text generation. In some aspects, action 122 can be actions that correspond to an API 106. In some aspects, action 122 can be agentic actions that AI model(s) 110 decide to take to carry out a user's intent as described in the prompt. For example, an action can be to call tool 130 or even other AI model(s) 110, which can be facilitated by a tool interface 144. Tools 130 can include internet browsers, editors such as code editors, other AI tools, etc. While tools are shown outside of generative response engine 140, some tools might be part of generative response engine 140 and some tools might be external tools. When tools are new or unrecognized by the generative response engine 140, the tool interface 144 can conform the new or unrecognized tool for use by the generative response engine 140.
[0050] Prompt 124 is the request or command provided by the user account through front end 102. In some aspects, prompt 124 can be further supplemented by a system prompt and other information that might be included by graphical user interface 104 or API 106 or associated with a custom AI model. In some aspects, prompt 124 can be modified or enhanced by AI model(s) 110 as addressed further below. Additionally, as the user account provides prompts and AI model(s) 110 provide responses, a conversation thread forms. As the user account provides a new prompt, this is appended to the overall conversation and added to prompt 124. Thus, a user account might think of a first user-provided message as a first prompt and a second user-provided message as a second prompt, and so on, but prompt 124 as perceived by AI model(s) 110 can include a thread of user-provided messages and responses from AI model(s) 110 in a multi-turn conversation. The actors in the conversation thread can be labeled so that AI model(s) 110 can review the turns of the conversation. Generally, prompt 124 will include an entire conversation thread, but in some instances, prompt 124 may be shortened if it exceeds a maximum accepted length (generally measured by a number of tokens).
[0051] In some examples, context management service 120 can also route prompts and response through moderation system 136. In some aspects, prompts are provided to prompt safety system 132 before being provided to AI model(s) 110. Prompt safety system 132 is configured to use one or more techniques to evaluate prompts to ensure a prompt is not requesting AI model(s) 110 to generate moderated content. In some aspects, prompt safety system 132 can utilize text pattern matching, classifiers, and / or other AI techniques.
[0052] Since prompts can evolve over time through the course of a conversation, consisting of prompts and responses, prompts can be repeatedly evaluated at each turn in the conversation.
[0053] Personalization state 126 can facilitate continuity and personalization in conversations. It allows the system to maintain user-specific context, preferences, or details that may inform future interactions. Personalization state 126 can include a memory file of persisted data from previous interactions or sessions that provide background information to maintain continuity. In some aspects, information can be recorded to personalization state 126 at the instruction of AI model(s) 110 when AI model(s) 110 identify a fact or data that it determines should be saved in memory because the fact and / or data might be useful in later conversations or sessions. In some aspects, personalization state 126 can also include synthesized concepts extracted from past conversation threads, and personalization state 126 can also encompass the ability of AI model(s) 110 to search through past interactions to find relevant information to a current conversation thread.
[0054] In some embodiments, the system can maintain a similar long-term memory structure for tools and connector behavior. For example, the system can persist tool-specific outcomes and learned constraints, such as specific parameter combinations that consistently produce errors, empirically determined rate limits, or input patterns that yield low-quality results. The generative response engine 140 and context management service 120 can consult this tool-behavior memory when constructing future tool calls so that previously observed failure modes are avoided, and successful patterns are preferentially reused. The tool-behavior memory can be maintained per user, per workspace, or in an aggregated, non-personalized form across users, and can be synchronized with conformance records stored in the conformance registry.
[0055] Conversation metadata 128 can aggregate data points relevant to the conversation, including user prompt 124, action 122, and personalization state 126. This consolidated information package serves as the input for AI model(s) 110. Conversation metadata 128 can label parts of a prompt as user-provided, AI model-provided, a system prompt, personalization state 126, data from action 122 or tool 130 (addressed below).
[0056] AI model(s) 110 are the core engines that process inputs (from context management service 120) and generate outputs. In some aspects, AI model(s) 110 may be a generative transformer, or autoregressive transformer, but could use other architectures. In some examples, the transformer is multi-modal transformer that can use audio tokens (or embeddings thereof), visual tokens (or embeddings thereof), and language (or embeddings thereof) as needed.
[0057] A core feature of AI model(s) 110 is to generate content in response to prompts. The prompt can be from client application 138 provided via graphical user interface 104. AI model(s) 110 can be configured to receive inputs via APIs 106 that provide guidance on a desired output. AI model(s) 110 can analyze the input and identify relevant patterns and associations in the data, and generate a sequence of tokens that are predicted as the most likely continuation of the input. AI model(s) 110 generate responses by sampling from the probability distribution of possible tokens, guided by the patterns observed during its training. Two features of the autoregressive transformer that result in this functionality are that the autoregressive transformer might use the decoder part of the transformer architecture and that it utilizes self-attention. By using the decoder part of the transformer architecture, the transformer focuses on predicting the tokens given the previous context tokens. And the self-attention mechanism captures long-range dependencies amongst tokens, allowing it to generate contextually relevant responses (in text, audio, images, and video).
[0058] In some aspects, AI model(s) 110 can generate multiple possible responses before presenting the final one. AI model(s) 110 can generate multiple responses based on the input, and these responses are variations that AI model(s) 110 consider potentially relevant and coherent.
[0059] In some aspects, AI model(s) 110 can evaluate generated responses based on certain criteria. These criteria can include relevance to the prompt, coherence, fluency, and sometimes adherence to specific guidelines or rules, depending on the application. Based on this evaluation, AI model(s) 110 can select the most appropriate response. This selection is typically the one that scores highest on the set criteria, balancing factors like relevance, informativeness, coherence, and content moderation instructions / training.
[0060] In some aspects, an instruction provided by an API 106, a system prompt, or a decision made by AI model(s) 110 can cause AI model(s) 110 to interpret a prompt and re-write it or improve the prompt for a desired purpose. For example, AI model(s) 110 can determine to take a prompt to make a picture and enhance the prompt to yield a better picture. In these instances, AI model(s) 110 can generate their own prompts, which can be provided to tool 130 or provided to AI model(s) 110 to yield a better output response than the original prompt might have.
[0061] AI model(s) 110 can also do more than generate content in response to a prompt. In some aspects, AI model(s) 110 can use decision boundaries to determine the appropriate course of action based on the prompt. In some examples, a decision boundary might be used to cause the AI model to recognize that it is being asked to provide a response in a particular format such that the AI model will generate its response constrained by the particular format. In some examples, a decision boundary can cause the model to refuse to generate a responsive output if the decision is that the responsive output would violate a moderation policy. In some examples, the decision boundary might cause the AI model to recognize that it interfaces with another AI model or application to respond to the prompt. For example, when the AI model is a language model, it might recognize that it is being asked to output an image, and therefore, it needs to interface with a model that can output images to provide a response to the prompt. In another example, the prompt might request a search of the Internet before responding. The AI model can use a decision boundary to recognize that it should conduct a search of the Internet and use the results of that search in responding to the prompt. In another example, the prompt might request that the AI model take an agentic action on behalf of the user by interacting with a third-party service (e.g., book a reservation for me at . . . ), and the AI model can use a decision boundary to recognize that it needs to plan steps to locate the third-party service, contact the third-party service, and interact with the third-party service to complete the task and then report back to the user that the action has been completed.
[0062] When AI model(s) 110 determine to take an agentic action on behalf of the user or to call a tool to aid in providing a quality response to the user account, AI model(s) 110 might call a tool 130 or cause an action 122 to be performed. As indicated above, tools 130 can include internet browsers, editors such as code editors, other AI tools etc. Actions 122 are actions that AI model(s) 110 can cause to be performed, perhaps using tool 130. As used herein actions 122 should be considered to cover a broad array of actions that AI model(s) 110 can perform with or without tools 130. Tools 130 are considered to cover a wide variety of services and software that encompass tools such as a computer operating system such that AI model(s) 110 can control the computer operating system on the user's behalf, to robotic actuators, to search browsers and specific applications.
[0063] In some embodiments, a tool interface 144 provides an intermediate interface layer that operationalizes communication between a generative response engine 140 and tools 130 or connectors, which can include, in some examples, MCP servers. The tool interface 144 can be implemented within an AI assistant service 100 as a distinct service-layer component, as a module of a tool 130, or as a module of the generative response engine 140. Regardless of placement, the tool interface 144 exposes a normalized capability surface to the generative response engine 140 while conforming external tool protocols, function names, parameter schemas, and response structures. The tool interface 144 is addressable via, e.g., API 106, and can receive context and routing information from a context management service 120, apply safety and policy controls in coordination with a prompt safety system 132, an output safety system 134, and a moderation system 136, and store mapping and conformance data in a conformance registry. The conformance registry can be a part of the tool interface 144, a separate module and / or process, part of the tool 130, or part of generative response engine 140.
[0064] In some embodiments, metadata from the conformance registry and developer-declared tool interfaces can be post-processed into a set of usage rules for each tool or connector. The usage rules can encode, for example, trigger conditions, preferred surfaces or task types, disallowed contexts, and ranking hints that describe when a tool, e.g., tool 130, should or should not be suggested to generative response engine 140. These usage rules can be used by the control plane to choose which tools to surface for a given prompt and to normalize the way instructions about those tools are presented to the model.
[0065] During onboarding or first contact with a tool 130, the tool interface 144 can establish a session using declared scopes provided by the tool's manifest or interface description and, where permitted, enumerate available functions, fetch parameter and response schemas, and issue sandbox probe calls with canned inputs. The tool interface 144 compares discovered operations and schemas against known tool functions expected by the generative response engine 140. Where a prior mapping exists in the conformance registry, the tool interface 144 can retrieve a corresponding conformance record keyed by connector identity and version, provide that record to a cache or long-term storage, and expose a normalized capability manifest to the generative response engine 140. Where a prior mapping does not exist or confidence is insufficient, the tool interface 144 can invoke a translation service that explores the tool interface, performs semantic and structural alignment, and synthesizes adapters that implement known tool functions over the tool's native interface. In some embodiments, adapter synthesis can include parameter projection and defaulting, type coercion, response normalization, and composition of multi-call workflows into a single canonical operation consistent with a connector protocol used by the generative response engine 140.
[0066] The tool interface 144 can store the resulting outcome of onboarding as a conformance record in the conformance registry. The conformance record can include, for example, the connector and version identifiers, stored-to-native function mappings, parameter and response transformation rules, workflow plans (including pagination or stream aggregation rules), declared scopes required for execution, capability tags, confidence metrics, and validation status. In some embodiments, the tool interface 144 can execute automated validation tests or test calls to confirm that a mapped behavior remains consistent with the connector protocol. If the tests fail, it can quarantine the record, trigger re-exploration, or select an alternate connector. The context management service 120 can maintain per-session state, including effective scopes, cached conformance records, and probe-call results, to support low-latency invocation and reproducible behavior.
[0067] At runtime, the tool interface 144 can receive normalized calls from the generative response engine 140 that reference known tool functions and rewrite those calls to the native form expected by the tool 130 using the applicable conformance record. The tool interface 144 can enforce declared scopes for each invocation, including any composed subcalls, attach appropriate authentication tokens, and execute the native operations with configured retry and timeout policies. Responses can then be normalized back to the canonical form expected by the generative response engine 140, including field renaming, type coercion, pagination or stream aggregation, and optional redaction or blocking according to policies enforced by the safety systems. The tool interface 144 can provide the resulting outputs to the generative response engine 140 and emit audit logs through the API 106 that reflect the mappings applied, scopes enforced, function calls executed, and outcomes observed.
[0068] In some embodiments, the tool interface 144 publishes to the generative response engine 140 a capability manifest that describes the normalized operation names, required inputs, canonical response shapes, declared scopes, and any limits or quotas associated with a connector. The tool interface 144 can also maintain a feedback loop by sending evaluation data—such as success rates, latencies, and user approvals—to the conformance registry for conformance scoring. These scores can be used by the generative response engine 140 to adjust connector-selection probabilities for subsequent calls. In the event of version drift or behavioral change at the tool 130, the tool interface 144 can detect validation failures, mark affected conformance records as invalid, and initiate re-exploration or fallback to a prior version or alternative connector.
[0069] In some embodiments, a translation service can be implemented as a prompted model that performs an offline or out-of-band analysis of the declared tool interface and associated metadata. The prompted model can generate or refine the capability manifest and usage rules for the tool or connector, simplifying the interface presented to the AI model(s) 110 and reducing the amount of reasoning the generative response engine 140 undertakes at runtime to use the tool. The offline analysis can be re-run when the tool's manifest or behavior changes, so that the control plane continues to expose an optimized, normalized interface even as the underlying connector evolves.
[0070] When the tool 130 is an MCP server, the tool interface 144 can read and interpret an MCP manifest that declares capability descriptors and permission scopes; discover tools and schemas through the MCP protocol; perform sandbox probe calls where permitted to confirm canonical response shapes; synthesize adapters and workflow plans as needed; persist a conformance record keyed by the MCP server identifier and version; and enforce declared scopes across all invocations, including composed calls. I In some embodiments, the tool interface 144 serves as a stable boundary between the normalized operation language of the generative response engine 140 and the diverse, evolving interfaces of tools 130, enabling the system to adopt previously unknown tools or servers at the moment of need while maintaining security, auditability, and predictable behavior.
[0071] Additionally, AI model(s) 110 can also generate portions of responses that are not displayed to the user. For example, AI model(s) 110 can direct front end 102 to provide specific behaviors, such as directions for how to present the response from AI model(s) 110 to the user account. In another example, AI model(s) 110 can provide response portions dictated by APIs 106, where portions of the response to the API might be for the consumption of the calling application but not for presentation to the end user. In another example, some AI model(s) 110 are reasoning models, which are AI model(s) 110 that are configured to output a raw chain-of-thought before preparing a final response to a prompt. The raw chain-of-thought might not be presented to a user account or application calling an API. Instead, another AI model might summarize the raw chain-of-thought into a more consumable and useful output for the user account or application.
[0072] In some aspects, the output of the AI model can be further analyzed by output safety system 134. While AI model(s) 110 can perform some of their own moderation, there can be instances where it is beneficial to have another service review outputs for compliance with a moderation policy. The use of dashed lines in FIG. 1 differentiates a path using output safety system 134 and not using output safety system 134.
[0073] As used herein, the present description may refer to the generative response engine or AI model(s) making a determination or reasoning prior to providing a response to a prompt. Determining can refer to a process by which an AI model outputs a response that provides a conclusion. In an example, an AI model can perform an inference operation to output a sequence of tokens, which output provides a determination. In such an example, the AI model might not have made any decision other than to sample particular tokens to provide an output, yet the response from the AI model might be a statement of determination. In another example, AI models can be trained to make particular determinations. In such examples, the AI model can be trained to make a decision, such as to cross a decision boundary to take an agentic action or to call a tool, etc.
[0074] Reasoning refers to simulating logical processes to draw conclusions or perform tasks based on provided inputs and learned information. Although the AI model might lack true understanding, they use pattern recognition and linguistic associations to emulate reasoning by linking related concepts and predicting outcomes. As used herein, the term reasoning by an AI model refers to the process performed by AI models known as reasoning models.
[0075] FIG. 2 illustrates, an example new tool process 200. The example new tool process 200 provides for adding a new tool for use by a generative response engine in accordance with some aspects of the present technology. Although the example system depicts particular system components and their arrangement, this depiction is intended to facilitate a discussion of the present technology. It should not be considered limiting unless specified in the appended claims. For example, some components that are illustrated as separate can be combined with other components, and some components can be divided into separate components.
[0076] In step 210, the process begins of adding the functionality of tool 208 to the tools available to the generative response engine 202. The generative response engine can be, for example, generative response engine 140 of FIG. 1, and the tools can be one of tools 130, also in FIG. 1. Submission may arrive via the front end 102 and be routed by the API 106 to the generative response engine 202, with the context management service 120 attaching session state or prior mappings. The process can also be initiated by the creator of the tool 208, if the new tool has a functionality that the creator understands is useful to the generative response engine 202. The tool 208 can provide its functionality along with any metadata related to the name of the function or a description of how the function can operate. In some embodiments, the tool 208 can be an MCP server and follow the MCP server protocols, which are provided to the generative response engine 202.
[0077] The tool 208 can be any tool that has a function and a description of that function. In some implementations, the prompt safety system 132, output safety system 134, and moderation system 136 may screen metadata and declared scopes prior to onboarding.
[0078] In step 212, the generative response engine 202 calls the tool interfaces 204 to determine if the tool functionality of the tool 208 is known to the system. The generative response engine 202 can provide the information from the tool 208 to the tool interface 204, where the tool interface 204 can analyze the data provided to determine if the tool 208 is known or if the functionality of tool 208 is known to the system. The tool interface 204 can be the tool interface 144 of FIG. 1, and can be a part of the generative response engine 140, part of tools 130 or a stand alone process. The tool interface 204 can be, for example, its own independent model, e.g., AI model(s) 110 or a separate generative response engine 140, implemented to identify new tools and understand their functionality. In some embodiments, the tool interface 204 performs a lightweight conformance check for a recognizable operation name, for example, an exact match or synonym, and a minimal parameter and I / O schema match against a normalized operation, for example, search.
[0079] In step 214, the tool interface 204 queries the tool library 206, to determine if the tool 208 is a tool that has already been recognized and mapped for use with the generative response engine 202. In some examples, the tool library 206 functions as a conformance registry storing conformance records for known tools and known functions. The query can take the form of the name of the tool 208 or the function of the tool 208. In addition to name correspondence, the lookup may verify basic parameter compatibility, for example, query input and list-of-objects output, before returning a record. If the tool 208 is in the library, indicating that it is known to generative response engine 202, the protocol for using the tool can be returned to the tool interface 204, facilitating the use of the tool 208 by generative response engine 202.
[0080] In step 216, the tool library 206 will respond to the query in step 214. FIG. 2, represents a process where the tool 208 is in the tool library 206, and the tool library 206 has a mapping of the name of the function to the function of the generative response engine 202 or the function itself has been mapped to the function known to the generative response engine 202. For example, if the tool 208 has a tool called “retrieve” and the tool library 206 has mapped “retrieve” to “search”, based on the semantic similarity and function description, which is a tool that the generative response engine 202 is known to use. In this case, the library returns a conformance record that can map the operation name, for example retrieve to search, and specify any parameter projection or type change needed for compatibility. In that case, the tool 208 can be added to the system based on the mapping of retrieve to search, so when the generative response engine 202 calls a search tool, it can use the retrieve tool of tool 208. While the search tool is used as an example, it can be applied to any tool that is added for use by generative response engine 202.
[0081] In step 218, the tool interface 204 responds to the generative response engine 202, with the information and mapping that facilitates the generative response engine 202 using tool 208. In this example, it can be a mapping of tool name to known tool. Alternatively, it can be a previously stored conformance record identifying both the name mapping and schema projection, enabling immediate use without generating a new mapping.
[0082] Once the tool has been recognized and is usable by generative response engine 202, in step 220, generative response engine 202 calls tool 208. This takes place in step 220, where the generative response engine 202 places the call to the tool interface 204, which can facilitate the use of tool 208. At step 222, the tool interface 204 rewrites the request according to the conformance record, for example, renames the operation and projects / converts parameters, before invoking the tool 208. In response to the call in step 220, the tool interface 204 conforms the call from generative response engine 202 to call that the tool 208 recognizes. The tool 208, in step 224, can then return the tool call based on the conforming call provided by the tool interface 204. At step 226, the tool interface 204 normalizes the response back to the generative response engine's canonical schema, which can include field renaming, projection, and type coercion as specified in the conformance record.
[0083] In one example, if the new tool has a retrieve function, that is mapped by the tool interface 204 to a search function of the generative response engine 202, then when the generative response engine 202 calls the search tool, in step 220, then the tool interface 204, can conform the search tool call, so that it is calling a retrieve tool function in step 222. The tool 208, will then provide the tool functionality to the generative response engine 202, through tool interface 204, via steps 224 and 226. This allows the tool functionality of tool 208 to be used by generative response engine 202 even though the tool calls are different, or it is based on tool function rather than name. In some examples, the conformance record also includes a connector / version identifier, required authentication scopes, and an initial confidence score for routing. The conformance record can be updated over time using evaluation signals, as described in later figures
[0084] FIG. 3 illustrates a process for adding a new tool that is not recognized for use by a generative response engine, in accordance with some aspects of the present technology. Although the example system depicts particular system components and their arrangement, this depiction is intended to facilitate a discussion of the present technology. It should not be considered limiting unless specified in the appended claims. For example, some components that are illustrated as separate can be combined with other components, and some components can be divided into separate components.
[0085] The initial steps of FIG. 3 are similar to the initial steps of FIG. 2. The components and operation of steps 310, 312, 314, and 316 operate similarly to steps 210, 212, 214, and 216, respectively, and the description of steps 210, 212, 214, and 216 is equally applicable to steps 310, 312, 314, and 316. Nevertheless, FIG. 3 is described in detail below.
[0086] In step 310, the tool 308 starts the new tool process 300 of adding its functionality to the tools available for use by the generative response engine 302 and the AI assistant service 100. In some implementations, the submission can include authentication requirements and declared scopes. The prompt safety system 132, output safety system 134, and moderation system 136 of FIG. 1 can pre-screen the metadata and scopes before the tool 308 or its functionality is made available to the generative response engine 302.
[0087] Once the request to add the tool 308 to generative response engine 302 is received, the tool 308 can provide its functionality along with any metadata related to the name of the function or a description of how the function can operate.
[0088] In step 312, the generative response engine 302 calls the tool interfaces 304 to determine if the tool functionality of the tool 308 is known to the system. The generative response engine 302 can provide the information from the tool 308 to the tool interface 304, where the tool interface 304 can analyze the data provided to determine if the tool 308 is known or if the functionality of tool 308 is known to the system. Alternatively, the tool interface can be updated to indicate that a tool 308 is available, and the tool interface 304 can request any additional information for the determination, for example, the description or name of the tool, from tool 308. The tool interface 304 can be the tool interface 144 of FIG. 1, and can be a part of the generative response engine 140, part of tools 130 or a stand alone process.
[0089] In step 314, the tool interface 304 queries the tool library 306, to determine if the tool 308 is a tool that has already been recognized and mapped for use with the generative response engine 302. In some examples, the tool library 306 functions as a conformance registry storing conformance records for known tools and known functions. The query can take the form of the name of the tool 308 or the function of the tool 308. In addition to name correspondence, the lookup may verify basic parameter compatibility, for example, query input and list-of-objects output, before returning a record, if available. If the tool 308 is in the library, indicating that it is known to generative response engine 302, the protocol for using the tool can be returned to the tool interface 304, facilitating the use of the tool 308 by generative response engine 302.
[0090] However, when the tool 308 is not known, e.g., there is no conformance record in the tool library 306, no similar name, and no similar functionality, in step 316, the tool library 306 will respond to the query in step 314 indicating there is no match for the query. Upon receiving the indication that there is no match for the query, the tool interface 304 will, in step 318, query the tool 308 to provide additional information about its functions and their names. In this query, the tool interface 304 will request what tool calls are available, how to access them, and their names. This additional information can be used by the tool interface 304 to understand the tools available and if they can be used by generative response engine 302. In response to the query in 318, the tool 308 can provide the relevant information in step 320.
[0091] Upon receiving the available information from the tool 308 in step 320, the tool interface 304 can analyze the updated information to conform the tool 308 to the generative response engine 302. Using this material, the tool interface 304 performs a two-part analysis. First, it can undertake a semantic comparison of operation names and descriptions with the generative response engine's normalized operations. In this first comparison, the tool interface 304 can map a tool called “find” or “retrieve” to the tool search, which is used by the generative response engine 302. Then, if needed or in place of the first comparison, the tool interface 304 can undertake a structural comparison that checks parameter and response compatibility, for example, projection / renaming, type coercion, or defaulting.
[0092] As part of the structural comparison, the tool interface 304 can also coordinate between multiple calls to create a function known to the generative response engine 302. For example, if a search tool is known to the generative response engine 302, then the new tool can look for similar functions from the tool 308. In one example, the tool interface 304 can recognize that a tool call for a build query and a tool call for an execute query can be used together to form a search query. In this exemplary circumstance, the tool interface 304 can map the search function to the combination of a build query and an execute query. In this way, the tool interface 304 can understand the results that are returned by the function, and build a single mapping based on multiple calls to achieve the result of the known function based on the tool calls available to the tool 308.
[0093] Based on the mapping, the tool interface 304 can create a conformance record that makes the tool 308 callable by the generative response engine 302. The conformance record can encode the operation renaming, the parameter transforms, an executable workflow plan when needed, and response normalization rules that reshape the new tool's outputs into the engine's canonical schema. The record may include connector / version identifiers, required auth scopes, and confidence scores for each mapping element. The record is then stored in the conformance registry. At runtime, the generative response engine issues normalized requests, the tool interface conforms the request per the conformance record, invokes the tool 308, and normalizes the response back to the generative response engine 302. This facilitates a seamless, standardized capability from the new tool to the generative response engine. Request rewriting can include operation renaming and parameter projection / conversion with default protocols and response normalization can include field renaming / projection, type coercion, and page / stream aggregation as applicable.
[0094] As previously discussed with respect to step 316, the tool library 306 has already indicated that it does not have a conformance record or other indication that the tool 308 or its functions are in conformance with the protocols needed to operate with the generative response engine 302. Accordingly, after the comparison and mapping that takes place after receiving the names, protocol description and / or metadata from tool 308, the tool interface 304 can provide the conformance information to the tool library 306 in step 322. The tool library 306 can then create a conformance record that is stored in tool library 306 which can be used in the future by generative response engine 302 to call the tool 308. Once the conformance record of tool 308 is created and stored, the tool library 306 can provide feedback to the tool interface 304 that indicates the tool library 306 now includes the conformance record for the tool 308 in step 324. While FIG. 3 indicates that steps 322 and 324 take place, there is no requirement that the conformance record be stored for future use. Instead, after step 320, the tool interface 304 can proceed to step 326. In some embodiments, the mapping can be scored to create a confidence score, and if the confidence score is below a threshold or repeated invocation failures occur, the new tool may be marked as under review or similar designation to indicate that the new tool is not yet available for use. In one example, the new tool can be suppressed for selection, or routed to alternate connectors with the failure reason logged.
[0095] In step 326, the tool interface 304 informs the generative response engine 302 that tool 308 is available for use. The tool interface 304 can include information about the tool functions and tool names, so that the generative response engine 302 can call and use the tool. Once the generative response engine 302 receives the information regarding the tool 308, the generative response engine 302 can choose to call the tool 308, when the functions of tool 308 can be useful for a task undertaken by the generative response engine 302.
[0096] In step 328, the generative response engine 302 calls the tool 308, to use the tool functions associated with the tool 308. The call by the generative response engine 302 is received by the tool interface 304, where the call is conformed to the tool name or tool functions available at tool 308. Based on the call in step 328, in step 330, the tool interface 304 provides the conformed call to the tool 308, which responds in step 332 to the generative response engine 302, with the tool functions called. Once the tool 308 is known, the steps described above with respect to FIG. 2 and known new tools can be implemented as well. Evaluation signals, for example, success, failure, latency, and user approvals may be captured and used to update the conformance record's confidence score and adjust routing priorities over time.
[0097] Although the example routine 400 provides a routine for dynamically translating and aligning tool functions, to facilitate adding access to tool functions to the generative response engine, the sequence may be altered without departing from the scope of the present disclosure. For example, some of the operations depicted may be performed in parallel or in a different sequence that does not materially affect the function of the routine 400. In other examples, different components of an example device or system that implements the routine 400 may perform functions at substantially the same time or in a specific sequence.
[0098] According to some examples, the method includes a call to a tool interface at block 402. As shown in FIG. 1, the generative response engine 140 can initiate the call to the tool interface 144, however, in some examples it may work with other system actors to interact with the tool interface 144. For instance, the front end 102 can relay a user's request to the generative response engine 140. The context management service 120 may also assist by maintaining conversation context or routing information for the call. The tool interface, can be a connector that connects the tool 130 to the generative response engine 140. I In some embodiments, the tool interface 144 can be a part of the tool 130 or a part of the generative response engine 140, instead of a separate layer of the AI assistant service 100. In some embodiments, the tool 130 can be an MCP server, and the tool interface 144 can be a layer within the MCP server, or it can be a layer within any tool 130 that is being added to the generative response engine 140. The tool interface 144 is used to facilitate the interaction between the generative response engine 140 and the tool 130. During session establishment, the tool interface 144 can enforce declared scopes from the tool's manifest, bind a least-privilege token to the session, and record the effective scopes in the context management service 120 for subsequent calls.
[0099] In some embodiments, the tool 130 can be an MCP server, and the exploration, semantic mapping, and translation described in blocks 404-410 operate over the MCP-described tool interface 144. In one example, the API 106 can establish a session with the tool 130 that is an MCP server using the permission set the tool or connector publishes in its manifest and / or metadata that provides the scope of permissions for a session. Further, the tool interface 144 can discover new tools, e.g., tool 208 and / or tool 308, via the MCP manifest, can list operations, for example, tools and list, and can fetch parameter and response schemas. The generative response engine 140 can use these schemas as inputs for the later-described comparison and translation steps.
[0100] In some embodiments, the call to the tool interface is based on the generative response engine 140 identifying a new tool, e.g., tool 130 of FIG. 1, that was added to the available tools or when the generative response engine 140 identifies that additional tools are needed to complete a task that it has started. In some examples, an MCP server can be added when a new external service is introduced that provides distinct tool functionalities that use a defined connector layer to interact with the generative response engine 140. In some examples, the generative response engine 140 can determine it needs additional capabilities and initiates connection to a server, e.g., tool interface 144 of FIG. 1, hosting tools that can fulfill the additional capabilities identified as missing. Furthermore, it may be that a new tool, e.g., tool 130, is added and the generative response engine 140 identifies additional tools are need to integrate the tool functionality into the process, and the generative response engine 140 can then call the tool interface 144 for the additional functionality. Both approaches can coexist depending on system configuration and a tool registry's automation level.
[0101] According to some examples, the method includes receiving, by the generative response engine, a tool function associated with the tool at block 404. In some examples, the generative response engine 140 may directly retrieve metadata associated with the tool function from the tool interface 144 or may receive them through intermediaries shown in FIG. 1. In some embodiments, the tool 130, can be, for example, a connector or MCP server, which can provide the tool function metadata (such as parameters and schema) to the generative response engine 140. In some embodiments, the tool interface 144 can store both the tool function and the associated metadata that describes what tasks and / or functions the tool 130 can provide to the generative response engine 140. In some examples, the tool interface 144 can be a module within the generative response engine 140, which can be accessed directly. When a new connector registers or when the generative response engine 140 requests tool metadata, the connector exposes an API or endpoint that describes its available tool functions, which can include operation names, expected inputs, and outputs. The generative response engine can then issue an API call to that endpoint (either directly or via the API 106) to retrieve the metadata. When conformance metadata is present in the tool function's descriptor, for example, compatibility tags, normalized operation names, or parameter hints, the translation service prioritizes those hints, records them into a conformance record, and bypasses full semantic matching unless confidence falls below a threshold.
[0102] In some cases, the tool function metadata can also include conformance data, for example, compatibility tags, schema hints, or declared normalized operation names, that the translation service can use to align the tool function with the known tool function. When the conformance fields are present, for example, when there are mapped tool functions, search can be mapped to query, the translation service prioritizes those hints, and does not have to undertake the semantic matching. The tool interface 144, is capable of deciding whether to use semantic matching, function matching, or a combination of the two methods. The tool interface 144 can then record the hints in a conformance record, and the context management service 120 can attach the record to the session so the generative response engine 140 can route calls using normalized names. The API 106 or context management service 120 can further facilitate this exchange by routing or formatting the communication between the front end 102 and the generative response engine 140.
[0103] According to some examples, the method includes comparing, by the tool interface, the tool function to a known tool function, wherein the generative response engine is configured to utilize the known tool function at block 406. In some embodiments, the tool interface, which may be implemented as part of the connector, MCP server, or tool 130, initiates the comparison using data structures or schemas previously generated and maintained by the generative response engine 140. For example, the known tool function can be a “search” function that is used by the generative response engine 140 to implement a search algorithm. However, the tool function could indicate that the tool is a “find” tool. In this case, the tool interface can compare the tool function of find to the known tool function of search and determine that the two functions are accomplishing the same task, but are labeled differently.
[0104] In some embodiments, the function and the stored function can both be labeled as “search” however the underlying search schema can be different. For example, an email search tool can operate differently from a GitHub search tool, where the email search tool is designed around dates and subjects, and the GitHub search could be designed around code or commit search. While both functions are searches, the parameters of the search are different. The differences in search parameters can be identified by the tool interface, and mapped for the generative response engine 140 to facilitate a search function. The tool interface 144 can facilitate the communication between the generative response engine 140 and the tool 130 that is being added to the system.
[0105] An intermediate interface layer, for example, the tool interface 144 or an adapter layer within the tool 130 can store a mapping of the tool function to the known tool function to enable normalized invocation by the generative response engine 140. Further, the stored mapping can encode semantic similarities between the tool function and the known tool function to guide translation. The mapping is stored as a conformance record that can contain operation renames, parameter projection rules, type coercions, and synonym embeddings, which can include the multi-step mappings of a find and retrieve function mapped to a search function. The record is keyed by connector and / or version and can be cached by the context management service 120 or the generative response engine 140. At runtime, the tool interface 144 rewrites incoming normalized calls using these rules.
[0106] According to some examples, the method includes basing on the comparing, determine, by the tool interface, that there is at least one difference between the tool function and the known tool function at block 408. In some examples, the tool interface 144 can identify deviations or differences between the current or new tool function and the known tool function. Because the tool interface 144 knows the parameters and schema associated with the known tool function, the tool interface 144 can compare the tool functions of the new tool function to the known tool function, and determine if there are any differences. The differences that the tool interface 144 can identify include at least semantic and functional differences. When there is a semantic difference, e.g., the wording is different but the process and parameters are the same, the tool interface 144 can identify the semantic difference and determine that the functions are the same. The tool interface 144 can compare the current or new tool function to the known tool function and recognize that while the called function may be different, the function conforms with the stored function.
[0107] In some embodiments the differences can be functional. The tool interface 144 can compare the tool functions between the new or current tool function and the known tool function to determine how the generative response engine 140 can use the tools to achieve the requested outcomes. For example, based on the comparison results. The generative response engine 140 may assist in interpreting the difference, particularly where semantic or structural variations are detected. For example, the tool interface 144 can have a registry of tool functions that are stored as the known tool functions, and the known tool functions include the functions and parameters that are compatible with the generative response engine 140. If a new tool is designed to work with the known tool functions, then when a new tool is added, the comparison would show that there are no differences between the known tool function and the new tool function. Instead by designing the tool to conform to the known tool function standard, the tool can be quickly and easily integrated into the process steps of the generative response engine 140.
[0108] However, it is also possible that a tool and its functions were designed and implemented independently of the known tool function, and the design and implementation do not conform with the known tool functions. The context management service 120 can retrieve and provide contextual data or historical mappings to help determine the scope of the deviation. The API 106 and front end 102 may capture diagnostic information or logs of the determination process for traceability. Additionally, the moderation system 136, prompt safety system 132, and output safety system 134 can monitor or verify that the determination step complies with policy constraints or safety criteria. If no prior mapping exists or a mismatch is detected, the tool interface 144 can run sandbox probe calls with canned inputs to verify response shapes against canonical schemas, and then attach the probe results and hashes to the draft conformance record. Collectively, these entities collaborate to identify and record the detected difference between the tool function and the known tool function at block 408.
[0109] According to some examples, the method includes utilizing, by the generative response engine, a translation service to create a translation of the tool function to conform the tool function with the known tool function at block 410. In this operation, the generative response engine 140 can invoke the translation service to produce a mapping or transformation layer that aligns the new or current tool function with the known tool function. The translation service can also compose multiple native calls into a single normalized operation, including parameter projection, defaulting, and type coercion rules captured in the conformance record with per-element confidence scores. This translation service can be a standalone process or included in the tool interface 144 or generative response engine 140. In some examples, the translation service can be a custom model trained or implemented to conform new tool functions to known tool functions. Alternatively, in some embodiments, the translation service can be included in the tool interface 144, which can determine the differences and then translate them to conform the new tool function to the known tool functions.
[0110] The translation service can conform the new or current tool function to the known tool functions in multiple ways. In some examples, translation can be a semantic mapping. This can take the form of a search being the same as a query. When the generative response engine 140 calls the search tool, the tool interface 144 can translate that call to the query function of the tool function. This conforms the search function called by the generative response engine 140 to the tool function of tool 130 that is called. In some embodiments, the translation service can undertake multiple steps to achieve conformance. In some examples, if a new tool is called, the tool interface 144 can determine that the new tool does not have a search functionality defined, but based on an analysis of the new tool, the tool interface 144 can understand that the new tool does have tool functions that can ingest, index, and query the data, based on a call. The tool interface 144 is able to stack the new tool functions together in response to a call to search from the generative response engine 140. The 144 can create the search function by stacking the available tool functions together and returning the appropriate result to the generative response engine 140. By building the called tool function with the available tool functions of the new tool, the tool interface 144 can conform the new tool functions to the known tool functions that the generative response engine 140 understands to call.
[0111] In some embodiments, the translation service explores the tool interface 144, for example, the lists of operations, inspects parameter and response schemas, etc., and semantically maps the received tool function, the find, query, and / or retrieve, to a known tool functions, in this case search, which is recognized by the generative response engine 140. In some examples, the calls are executed against endpoints with canned inputs maintained by the context management service 120, and the responses are hashed and compared to canonical shapes. A similarity model aligns operation descriptions to the generative response engine 140's normalized ontology.
[0112] In some embodiments, the translation process may include calling the tool function and, based on observed behavior and metadata, building adapters that implement the known tool functions over the tool's native interface. The adapter construction can occur in real time during onboarding or first use of a new tool, e.g., tool 208 or tool 308. The adapter construction can also include inspecting available methods and associated metadata from the tool interface 144 and mapping those elements to a connector protocol used by the generative response engine 140, and, where the capability spans multiple calls, composing those calls into a single normalized known tool functions. In some examples, the adapter can be generated by the tool interface 144 using the parameter schema to create the appropriate code for the adapter. Artifacts can be stored in the conformance registry and versioned.
[0113] The translation service can also save the first translation produced from a previously explored tool interface 144, associate it with a connector / version identifier, and automatically identify and reuse the saved translation when the same tool interface 144 is subsequently explored. Upon successful translation, the conformance record is stored with metadata and on re-discovery, the tool interface 144 matches the ID / version and identifies the record, enabling reuse without re-exploration.
[0114] According to some examples, the method includes interacting, by the generative response engine, with the tool based on the translation at block 412. In some examples, the tool interface 144 can provide the generative response engine 140 the output of the tool called using the conformance mapping of the new tool function to the known tool functions. The tool interface 144 can translate the call so that it semantically matches the tool function, or it can match the function of the call with the function(s) of the tool. In some embodiments, the generative response engine 140 can invoke the translated tool function to perform the intended operation. The tool interface 144 can facilitate the communication between the generative response engine 140 and the tool 130, applying the conformed interface generated by the translation service. Furthermore, mappings stored at the tool interface 144 are invalidated on connector version change, schema drift detected by failed test calls, or scope / permission updates, triggering automated re-exploration and re-validation, which can take place via restarting the process, e.g., the process of FIG. 4.
[0115] FIG. 5 illustrates an example routine 500 for adding a new server-based tool to an AI assistant service in accordance with some aspects of the present technology. Although the example routine 500 depicts a particular sequence of operations, the sequence may be altered without departing from the scope of the present disclosure. For example, some of the operations depicted may be performed in parallel or in a different sequence that does not materially affect the function of the routine 500. In other examples, different components of an example device or system that implements the routine 500 may perform functions at substantially the same time or in a specific sequence.
[0116] According to some examples, the method includes receiving, by a generative response engine, a request to add a new server, wherein the new server provides a new tool functionality at block 502. As shown in FIG. 1, the generative response engine 140 can receive the request directly (e.g., via API 106) or indirectly from the front end 102 on behalf of a user or developer. In some embodiments, the request can include metadata identifying the server as a tool 130 (e.g., a connector or MCP server) and may be relayed through the context management service 120 for routing, state association, or policy checks. The moderation system 136, prompt safety system 132, and output safety system 134 can inspect the request and associated descriptors to validate that onboarding the server complies with safety and usage policies. In some embodiments, the new server is an MCP server that declares capability descriptors and permission scopes in its manifest. This information can be provided to, for example, API 106, to establish a session using the declared scopes. The tool interface 144 can then record the scopes and connector identifier for subsequent comparison and translation. In some cases, the request or manifest includes conformance data, for example, normalized operation names, schema hints, or compatibility tags, that the tool interface 144 and translation service can use and / or prioritize during onboarding of a new server. The request can originate from a developer submission, a user-initiated install, or the generative response engine 140 identifying a capability gap and requesting connectors that expose the needed function set.
[0117] According to some examples, the method includes comparing a new server protocol associated with the new server to a connector protocol associated with the generative response engine at block 504. In some embodiments, the tool interface 144 compares the new server's protocol, e.g., tool functions and parameters, to a connector protocol that is known and used by the generative response engine 140. This determination can be initiated by the generative response engine 140 and carried out by the tool interface 144. In some embodiments, the tool interface 144 can undertake this analysis of any new server as it is added to the system, and can inventory the tool functions and tool names and add them to a conformance registry. In either case, the new server can provide metadata associated with the name of its tool functions as well as a description of the processes the tool undertakes. Based on this information provided by the new server, the tool interface 144 can compare the new server protocol to the connector protocol and determine if there are any differences. Differences can be semantic, for example, “find” vs. “search”, syntactic, for example, parameter names / types, or structural, for example, multi-call workflows required to emulate a normalized function. Once the differences are classified as semantic (name mismatch), syntactic (parameter / shape mismatch), or structural (capability spread across multiple operations), they can be stored alongside the connector identifier. Where permitted, the tool interface 144 may issue sandbox probe calls with canned inputs to validate input / output shape and to capture example responses for comparison to the canonical schema. This allows the tool interface 144 to evaluate the outcomes of the tool call, and can be run in the background prior to making the tool available for use to an end-user.
[0118] According to some examples, the method includes when there is a difference between the new server protocol and the connector protocol, determining if the new tool functionality is associated with a process in a conformance registry at block 506. When the generative response engine 140 calls the tool interface 144, the tool interface 144 can query a conformance registry to identify whether it has a record of an existing process that covers the new tool functionality. Based on the query, the conformance registry can return candidate matches with confidence scores. The query can also be used to identify if a matching process template exists, and the registry can return the matching template's version and required scopes for immediate application. This process is described in more detail with respect to FIG. 2. Candidate processes may be filtered by connector / version identifiers, declared scopes, and capability tags (e.g., search / fetch / create) to ensure that the selected process is both semantically aligned and authorized for the session. If no candidate exceeds a confidence threshold, the tool interface 144 proceeds to process generation (block 510) and flags the mismatch for audit via API 106. I In some embodiments, the translation service can be consulted to compute semantic similarity between tool names, parameters, schemas, and operation descriptions to aid this determination.
[0119] According to some examples, the method includes when the new tool functionality is associated with a process in the conformance registry, map the process to the new tool functionality at block 508. When the generative response engine 140 calls the tool interface 144 and the conformance registry finds relevant conformance records for the call, the tool interface 144 can provide to the generative response engine 140 a mapping to the known tool functions. The tool interface 144 can apply mappings to the conformance record to rename operations, projects or convert parameters, and, where applicable, synthesize a multi-step workflow so that the new server's tool function conforms to the stored processes. An intermediate interface layer, for example, the tool interface 144 or an adapter layer within tool 130 or generative response engine 140, can store the selected mapping and expose a normalized capability manifest to the generative response engine 140 so that subsequent calls can be issued in canonical form.
[0120] According to some examples, the method includes when the new tool functionality is not associated with a process in the conformance registry, generate a new process associated with the new tool functionality at block 510. In some embodiments, the generative response engine 140 calls the tool interface 144, which has received the metadata and other information provided by the new server. The tool interface 144 can call a translation service or a specialized model that is designed to conform the new tool functionality with the connector protocol. The tool interface 144 can analyze the tool 130 (i.e., the new server) to understand operational intent, parameter semantics, and I / O types. Based on this analysis, the tool interface 144 can generate a new process template that captures the canonical behavior expected by the connector protocol. This process is further described above with respect to FIG. 3, which discusses how to add unknown tools to the AI assistant service 100. This new process can then be stored for later use by the tool interface 144 and generative response engine 140. The generation of a new process template can include exploring the tool interface 144, issuing calls, and constructing adapters in real time that compose multiple native calls into a single normalized operation. The resulting process template contains request and / or response normalization rules, pagination and / or stream aggregation behavior, and required declared scopes for execution. For new capabilities, the registry generates a process template that includes adapter logic and validation tests, and the template is versioned, stored, and linked to the connector metadata so future installs can reuse it without re-exploration.
[0121] According to some examples, the method includes storing the new process in the conformance registry at block 512. The tool interface 144 can store the new process and associated tool functions and names in the conformance registry, where they can become part of the stored processes that are known to the generative response engine 140. They can become generated process templates together with any associated conformance records, confidence metrics, and compatibility tags (e.g., search / fetch / create). This allows the newly added tools and / or servers to be used as a connector protocol in the future, or as known mapping to the connector protocol. Each stored process can be versioned and keyed by connector and / or version. The conformance registry records can declare scopes, capability tags, and safety annotations, enabling the context management service 120 to cache the appropriate variant for a given session.
[0122] According to some examples, the method includes mapping the new tool functionality to the new process in the conformance registry at block 514. In operation, the translation service applies the stored process template to the new tool functionality, thereby producing a mapping usable by the generative response engine 140 and tool interface 144 at runtime. This mapping may include, for example, operation renaming, parameter projection and type conversion, and an executable workflow plan that can chain multiple tool calls together to emulate a standardized tool function. Post-deployment, evaluation data (e.g., success rates, latency, user approvals) can be captured and fed back to update conformance scores associated with the process in the registry. The intermediate interface layer communicates the normalized capability manifest to the generative response engine 140 and receives normalized calls, rewriting them per the mapping and enforcing declared scopes during invocation. The responses can be normalized, for example, field rename, type coercion, page / stream aggregation, before returning to the generative response engine 140. Automated validation tests can be executed periodically or on version change to confirm that the mapped behavior remains conformant with the connector protocol, and failures can be used to quarantine the process and trigger fallback selections.
[0123] FIG. 6 illustrates an example routine 600 for adding a tool and making it available to a generative response engine, in accordance with some aspects of the present technology. Although the example routine 600 depicts a particular sequence of operations in accordance with some aspects of the present technology. The sequence may be altered without departing from the scope of the present disclosure. For example, some of the operations depicted may be performed in parallel or in a different sequence that does not materially affect the function of the routine 600. In other examples, different components of an example device or system that implements the routine 600 may perform functions at substantially the same time or in a specific sequence.
[0124] According to some examples, the method includes receiving, by a connection service, a submission of a tool to connect to a generative response engine, wherein the tool has a tool interface hosting a tool function and wherein the tool function is different from a conformed tool function connected to the generative response engine at block 602. In some embodiments, the connection service is an onboarding component of the AI assistant service 100 that interfaces with the front end 102 and API 106 to accept connector submissions. The submitted tool can be or can include a tool 130 such as an MCP server exposing a tool interface 144 with one or more tool functions. The submission may include metadata (e.g., names, parameters, schemas, capability descriptors, endpoint identifiers, authentication details, declared limits / permissions). This metadata can be used by the connection service to identify any differences between the new tool function and the conformed tool function. The conformed tool function includes metadata that describes known tool function that is already known and can be called by generative response engine 140.
[0125] According to some examples, the method includes exploring, by a conformance translation service, the tool interface to identify semantic similarities between the tool function and the conformed tool function at block 604. In some embodiments, a conformance translation service, which can be implemented, for example, within the tool interface 144, within the generative response engine 140, or as a standalone module, can inspect the submitted tool by querying the tool interface 144 and determining what functions and descriptions are available in the metadata. It is also possible for the tool interface 144, the generative response engine 140, or the conformance translation service, to issue test calls in a sandboxed environment to determine what calls are possible based on the conformed tool function. The exploration can include analyzing operation names, parameters, schemas, and types, I / O formats, and descriptive text associated with the tool functions. The translation service compares these artifacts to a catalog of conformed tool functions, for example, normalized operations such as search, fetch, create, and other known functions, to compute semantic similarity and I / O compatibility.
[0126] In some embodiments, the conformance translation service can be implemented as a prompted model that can operate offline or out-of-band with respect to a user. The prompted model can analyze submitted metadata and example calls at onboarding or when encountering a version change to generate a conformance record, a capability manifest, and associated usage rules for the new tool. By undertaking this offline or out-of-band process, the system can expose a simplified, pre-validated interface to the generative response engine 140 so that subsequent inference-time calls need only reference the standardized connector interface instead of re-deriving the mapping logic. In some embodiments, this translation is performed as part of an onboarding workflow before the system receives any user prompt that causes the generative response engine to call the tool. The subsequent user prompts can also invoke the conformed tool function without re-deriving the mapping.
[0127] According to some examples, the method includes mapping, by the conformance translation service, the tool function to the conformed tool function, wherein the mapping uses the semantic similarities at block 606. Based on the exploration, the translation service generates a mapping, which can include a conformance record, that aligns the submitted tool function with a conformed tool function recognized by the generative response engine 140. The mapping can include, for example, operation renaming, e.g., mapping find to search, parameter projection or type conversion, e.g., converting filter objects or date ranges to a canonical schema, and a synthesized multi-step workflow plan if the submitted tool function is decomposed across multiple operations. In some embodiments, confidence scores are associated with the mapping, based on the semantic similarity between the conformed tool function and the new tool function.
[0128] According to some examples, the method includes configuring, by the connection service, the tool with the mapping, wherein the generative response engine uses the mapping to interact with the tool at block 608. In some embodiments, the connection service stores or registers the mapping in a conformance data store and associates it with the submitted tool, e.g., tool 130, and its tool interface 144. The generative response engine 140 can thereafter use the mapping at runtime to normalize calls and responses, e.g., rewriting operation names, projecting parameters, and executing the synthesized workflow where applicable.
[0129] FIG. 7 illustrates an example routine 700 for determining conformance of connectors in accordance with some aspects of the present technology. Although the example routine 700 depicts a particular sequence of operations, the sequence may be altered without departing from the scope of the present disclosure. For example, some of the operations depicted may be performed in parallel or in a different sequence that does not materially affect the function of the routine 700. In other examples, different components of an example device or system that implements the routine 700 may perform functions at substantially the same time or in a specific sequence.
[0130] According to some examples, the method includes receiving, by a generative response engine, a listing of available connectors including metadata describing respective tool interfaces associated with the available connectors at block 702. As shown in FIG. 1, the generative response engine 140 can obtain the listing via the API 106 from a directory service or registry, optionally initiated by the front end 102 in response to a user or developer request. The registry can include a conformance registry associated with the tool interface 144. The listing can enumerate tools 130, for example, connectors or MCP servers, and their associated tool surfaces and metadata, such as operation names, parameter schemas and types, capability descriptors (e.g., search / fetch / create), endpoint identifiers, authentication requirements, declared limits or permissions, and compatibility tags. The context management service 120, the tool interface 144, and / or generative response engine 140, can also attach session routing information or previously stored mappings to the listing. The moderation system 136, prompt safety system 132, and output safety system 134 can screen the metadata to ensure that safe capabilities are made available for subsequent selection. In some examples, the moderation system 136 can scan for malicious attacks, for example, prompt injection and / or data extraction, that can be introduced to the model outputs through new tools or connectors.
[0131] According to some examples, the method includes determining, by a generative response engine, whether a first connector of the available connectors conforms to one or more operational standards of a connector protocol at block 704. In some embodiments, the generative response engine evaluates the first connector's connector protocol against canonical operations recognized by the generative response engine 140, e.g., normalized tool operations such as search, fetch, or create, and their normalized protocols. This evaluation can include schema checks, semantic similarity analysis of operation names and descriptions, and optional sandbox test calls executed against the first connector to verify I / O behavior. The API 106 may orchestrate these checks, while the context management service 120 can retrieve reference protocol definitions and prior conformance records to inform the determination.
[0132] According to some examples, the method includes, when the first connector fails to conform, identify at least one difference from the connector protocol at block 706. The conformance registry analyzes the mismatch between the connector protocol and the normalized protocol that is stored in the conformance registry, to classify the differences as semantic, e.g., operation names differ but functions align, syntactic, e.g., parameter names, shapes, or types differ, or structural, e.g., capability provided across multiple operations. The results of this analysis can be logged and associated with the connector's identifier. The analysis can be stored in the conformance registry associated with the connector protocol, or the analysis can be stored separately and still be used by the generative response engine 140 or tool interface 144.
[0133] According to some examples, the method includes generating, by the generative response engine, a conformance record that maps the difference to a known tool operation at block 708. In some embodiments, the generative response engine 140 invokes a translation service to synthesize a conformance record that aligns the first connector's tool function to a known, normalized tool operation. The conformance record can include operation renaming, e.g., find is mapped to search, parameter projection or type conversion, e.g., mapping date range objects to canonical fields, and a workflow plan which can chain multiple tool calls when the capability is split across operations. Confidence scores can be computed for each mapping element. The conformance registry can generate the conformance record at the request of the generative response engine 140. This is one example of ensuring a single authoritative source of mapping, versioning, and validation status. The context management service 120 can supply historical mappings to guide record generation and can be used to improve the confidence scores when the historical mappings are consistent with the generated conformance record.
[0134] According to some examples, the method includes storing, at the conformance registry, the conformance record for subsequent use in conforming calls made by the generative response engine at block 710. The conformance registry can store the conformance record and associates it with the first connector, including capability tags and any safety annotations. Thereafter, at runtime, the generative response engine 140 can retrieve the conformance record associated with the first connector to conform requests and responses, which standardize calls to the first connector in accordance with the connector protocol. Stored records can be keyed by connector and version, include capability tags and safety annotations, and can be returned with a validation status that facilitates runtime eligibility. The front end 102 can reflect newly available or standardized capabilities in the user experience, and evaluation signals, for example, success rate, latency, user approvals, can be fed back to refine the conformance record over time.
[0135] FIG. 8 illustrates an example routine 800 for generating a standardized connector interface for a generative response engine 140 in accordance with some aspects of the present technology. Although the example routine 800 depicts a particular sequence of operations, the sequence may be altered without departing from the scope of the present disclosure. For example, some of the operations depicted may be performed in parallel or in a different sequence that does not materially affect the function of the routine 800. In some examples, different components of an example device or system that implements the routine 800 may perform functions at substantially the same time or in a specific sequence.
[0136] According to some examples, the method includes obtaining, by a conformance engine, a first set of specifications associated with a known connector, wherein the known connector performs a function at block 802. In some embodiments, the conformance engine queries a directory or registry to retrieve specifications for a known tool, for example, tool 130, which can be a connector or MCP server. The conformance engine can be an independent generative response engine, a tool interface 144, the tool 130, or the generative response engine 140, or a combination of these functions and / or tools. The conformance engine can collect operation names, parameter schemas and types, I / O formats, capability descriptors, endpoint identifiers, authentication requirements, declared limits or permissions, and any existing compatibility tags or prior conformance records. The conformance engine can then store the collected information and associate it with a known connector.
[0137] According to some examples, the method includes generating, by the conformance engine, a standardized connector interface based on the first set of specifications at block 804. In some embodiments, the conformance engine creates a standardized connector interface, for example, a normalized tool operation definition, that captures canonical behavior and schemas expected by a connector protocol recognized and used by the generative response engine 140. The standardized interface can specify operation naming, parameter projection and type constraints, and optional workflow plans when the function uses multiple operations. Because the specification are associated with a known connector, then standardized connector interface can be used to conform any new or existing tools for use with the generative response engine 140. Further, the tool interface 144 or a translation service may contribute exemplary schemas that have been previously used and any testing outcomes based on the previous use cases. The standardized connector interface can be stored at the conformance registry, in the tool library 206 or 306, the tool interface 144, or the generative response engine 140. The standardized connector interface can also define canonical names, parameter projections, type constraints, and optional workflow plans, and it can be stored in the conformance registry and referenced to conform new connectors without re-design. The standardized connector interface can then be called and / or consulted when a new tool is added for use by generative response engine 140.
[0138] According to some examples, the method includes receiving, by the conformance engine, a request to add a new connector, wherein the new connector includes metadata associated with the function at block 806. The new connector can be added via a developer or via a user. The request can be provided via a backend or via the front end 102. A user can find a tool that they would like to use with generative response engine 140, and provide the request to the generative response engine 140, which will then begin the process of adding the new connector. This process is described in detail in FIGS. 2 and 3. Further, the connector can be part of a new company or tool that the developer would like to make available to all users of the generative response engine 140. In this way, developers can conform the tool to the standardized connector interface, and know that it will conform with the generative response engine 140. In this way, the generative response engine 140 can be the hub of multiple tools and use cases, added by developers or users, that allow for new tools or connectors to be added for use by the generative response engine 140 can be the hub of multiple tools and use cases, added by developers or users, that allow for new tools or connectors to be added for use by generative response engine 140. The new connector can identify itself as a tool 130 exposing its functions and supply metadata describing the same functional intent as the standardized interface (e.g., a “search” capability), along with its specific parameters and I / O schemas.
[0139] According to some examples, the method includes conforming, by the conformance engine, the new connector to the standardized connector interface, based on the function at block 808. In operation, the conformance engine can perform a semantic and structural comparison between the new connector's connector protocol and the standardized connector interface. When differences are detected, the conformance engine, including optionally using the translation service, can generate a conformance record that renames operations, e.g., mapping find to search, maps or converts parameters, e.g., projection, renaming, type coercion, defaulting, and / or can synthesize a multi-step workflow when the new connector's capability spans multiple calls. The conformance engine can also run sandbox test calls after conforming the new connector to verify I / O compatibility and assign confidence scores to the mapping elements.
[0140] According to some examples, the method includes providing, by the conformance engine, the function by the new connector to a generative response engine at block 810. The conformance engine registers the conformance record and exposes the standardized capability so that the generative response engine 140 can invoke the new connector using normalized requests and receive normalized responses at runtime. The conformance engine can apply the standardized interface to the new connector, verifying with test calls and marking the record validated and exposing it to the generative response engine after passing checks. The API 106 and context management service 120 may cache or distribute the mapping for low-latency use, and the front end 102 can reflect the newly available capability to users. During subsequent interactions, evaluation signals, for example, success rate, latency, user approvals, can be captured and fed back to refine the conformance record or routing policies, so that tools that are failing at their desired function are no longer recommended or made available to end users.
[0141] FIG. 9 illustrates an example routine 900 for generating a list of available connectors and conformance records for the available connectors in accordance with some aspects of the present technology. Although the example routine 900 depicts a particular sequence of operations, the sequence may be altered without departing from the scope of the present disclosure. For example, some of the operations depicted may be performed in parallel or in a different sequence that does not materially affect the function of the routine 900. In other examples, different components of an example device or system that implements the routine 900 may perform functions at substantially the same time or in a specific sequence.
[0142] According to some examples, the method includes receiving, by a conformance registry, a request from a generative response engine to provide a list of available functions at the conformance registry, wherein the list includes metadata describing each function and its respective connector at block 902. In some embodiments, the generative response engine 140 sends a request to the conformance registry, which then returns a catalog of functions associated with one or more of tools 130 (e.g., connectors or MCP servers) that are associated with the generative response engine 140. The response can include metadata, such as operation names, parameter schemas and types, capability descriptors (e.g., search / fetch / create), endpoint identifiers, authentication requirements, declared limits or permissions, prior conformance records, compatibility tags, and accumulated performance scores. Further, a federated search of files common to an enterprise or company can fan out a single normalized search request across multiple connectors (e.g., document repositories, messaging platforms, and issue trackers) using their respective conformance records, and then merge the returned results into a unified answer. The response can also include session routing or historical mapping context. The conformance registry can be a standalone registry or a part of the generative response engine 140, tool 130, and / or tool interface 144.
[0143] In some embodiments, capability descriptors and compatibility tags can serve as semantic intent labels that group functions implementing a common high-level operation (for example, document_search, flight_search, or reservation_booking) across multiple connectors. Using these labels, the conformance registry can identify a set of connectors that are all capable of satisfying a given request and can return multiple candidates to the generative response engine 140. The generative response engine 140 may invoke several such connectors in parallel to implement a federated operation, such as searching multiple back-end services or content repositories at once and aggregating, deduplicating, or re-ranking the combined results for presentation to the user.
[0144] According to some examples, the method includes performing, by the conformance registry, an automated analysis of the metadata to determine whether each function and its respective connector in the list conforms to one or more operational standards of a connector protocol at block 904. The conformance registry evaluates each tool and its listed function against normalized tool operations recognized by the generative response engine 140. The normalized tool operations can be a set of standard functions, e.g., search, fetch, create, and / or a set of previously conformed functions that are known to the generative response engine 140. The analysis can include schema checks, semantic similarity scoring of operation names and descriptions, and optional sandbox test calls to verify I / O behavior.
[0145] According to some examples, the method includes when the connector conforms to the one or more operational standards of the connector protocol, include the conforming connector on the list at block 906. In response to a positive determination, the conformance registry flags the connector as conforming for the evaluated function, associates or updates compatibility tags, and includes the connector in the list that is created by the conformance registry and, after adding it to the list, is available for selection by the generative response engine 140.
[0146] According to some examples, the method includes when a connector fails to conform to the one or more operational standards of the connector protocol, identify at least one deviation from the connector protocol at block 908. The conformance registry and / or generative response engine can classify deviations as semantic (e.g., operation name mismatch), syntactic (e.g., parameter shape / type mismatch), or structural (e.g., capability decomposed across multiple operations). The discrepancies can then be provided to the conformance registry, where the conformance registry can understand the deviations and conform the deviations to the operational standards of the connector protocol
[0147] According to some examples, the method includes generating, by the conformance registry, a conformance record that maps the deviation to a known function associated with a normalized tool operation at block 910. In some embodiments, the conformance registry invokes or incorporates a translation service to generate a conformance record that resolves the deviation by, for example, renaming operations, projecting or converting parameters, and / or composing a multi-step workflow where the capability spans multiple calls. Confidence scores can be assigned to each mapping element to weigh its inclusion in the conformance record.
[0148] According to some examples, the method includes storing, at the conformance registry, the conformance record associated with the metadata describing the connector at block 912. The conformance registry stores the conformance record and associates it with the connector's functions, capability tags, performance metrics, and any safety annotations. Thereafter, at runtime, the generative response engine 140 can retrieve the stored conformance record to conform calls to the connector in accordance with the connector protocol. Additionally, the front end 102 can reflect the standardized capability to users.
[0149] In some exemplary embodiments, the conformance registry and tool interface 144 of FIG. 1 can provide a federated company knowledge search experience. A user or provider can register multiple connectors corresponding to different back-end systems, such as a messaging service, e.g., an internal chat platform, a document repository, e.g., a cloud file system, and a note-taking or knowledge-base system. Each connector can expose a native search API, and the conformance engine can generate a conformance record that maps the native search API to a normalized search operation.
[0150] Subsequently, when a user submits a single, natural-language query requesting data associated with the enterprise or organization, the control plane identifies all connectors tagged with a document_search or knowledge_search capability and issues a normalized search request to each connector in parallel using its respective conformance record. The results from the multiple connectors are received in their native formats, normalized to a canonical result schema, deduplicated, and merged into a unified result, which is then provided to the generative response engine 140 as a tool output. The generative response engine 140 can then synthesize a consolidated answer, citing or linking back to the underlying results from each connector.
[0151] FIG. 10 illustrates an example routine 1000 for evaluating the performance of a connector in accordance with some aspects of the present technology. Although the example routine 1000 depicts a particular sequence of operations, the sequence may be altered without departing from the scope of the present disclosure. For example, some of the operations depicted may be performed in parallel or in a different sequence that does not materially affect the function of the routine 1000. In other examples, different components of an example device or system that implements the routine 1000 may perform functions at substantially the same time or in a specific sequence.
[0152] According to some examples, the method includes initiating, by a generative response engine, an evaluation of connector performance for at least one connector at block 1002. In some embodiments, the generative response engine 140 initiates an evaluation workflow, either automatically (e.g., scheduled, event-triggered) or in response to a developer request, to measure performance of one or more of tools 130, for example, connectors or MCP servers, via their tool interfaces 144. The evaluation can include online traffic sampling, shadow traffic, or offline replay tests using pre-selected inputs. The generative response engine can coordinate the evaluation runs and test-call execution, and long with the context management service 120, associate evaluations with session state, prior mappings, or task contexts.
[0153] The generative response engine 140 can solicit feedback from the users or from developers. For example, in some known tool functions, e.g., search and fetch and other common functions, there are objective measures of what is considered positive feedback and negative feedback to the tool call. However, for other tools, e.g., email drafting, there is not an objective measurement of positive and negative. Accordingly depending on the tool and the call, there can either be objective feedback that the tool is performing to expectations or it is failing to meet expectations, e.g., the search results are applicable to the search or they are not. It is also possible for the generative response engine 140 to run the search multiple times to determine if the results are the same / similar for each run. When there is no objective standard, the developer of the tool can provide a measurement standard to compare the results against to determine if the results are meeting expectations or not. Additionally or alternatively, the system can request feedback from end users regarding if the connector / tool performance is satisfactory. The user can provide simple feedback, e.g., a thumbs up or thumbs down, or can provide more sophisticated feedback, e.g., identifying things that are missing or that were particularly well done. Using multiple feedback mechanisms allows the generative response engine 140 the best opportunity to identify tools that are performing well versus those that are performing poorly, however, the generative response engine 140 can rely on one of the above types of feedback.
[0154] According to some examples, the method includes receiving, by a conformance registry, evaluation data from the evaluation, wherein the evaluation data indicate a quality of an experience associated with the connector at block 1004. The conformance registry ingests evaluation data produced by the generative response engine 140 and runtime components, the evaluation data can include success / failure outcomes, error codes, latency distributions, throughput, coverage / recall for search-like functions, precision / quality signals, user approval indicators, and fallbacks invoked. The context management service 120 can work with the generative response engine 140 to provide additional context, for example, surface, task type, historical baselines.
[0155] According to some examples, the method includes generating, by the conformance registry, a conformance score based on the evaluation data at block 1006. In some embodiments, the conformance registry aggregates the evaluation data into a conformance score for each connector-function pair, for example, per normalized tool operation such as search / fetch / create. The score can be computed using weighted metrics (e.g., success rate, p95 latency, error severity, user approval rate) and may be conditioned on surface or task context. The registry can also produce confidence intervals and stability indicators over time. The resulting score is associated with the entry in the conformance registry and any relevant conformance record used during invocation.
[0156] According to some examples, the method includes adjusting, by the generative response engine, a probability of selecting the connector for subsequent calls based on the conformance score at block 1008. At runtime, the generative response engine 140 consults the conformance registry to retrieve current scores and updates routing logic, which can include adjusting selection probabilities, setting minimum thresholds, or suppressing connectors below a policy-defined score. The generative response engine 140 can, for example, exclude from consideration connectors that are below a threshold, for example, working fewer than 9 out of 10 times to produce a satisfactory result. If the conformance score is below the threshold, for example, then when the conformance record is included with a response to a call for the connector, the connector will be rejected. In some embodiments, the conformance registry can order the connectors on the returned list based at least in part on their conformance scores or evaluation metrics, and the generative response engine or conformance engine can preferentially select higher-ranked connectors for use in response to a given request. Further, the generative response engine 140 can provide a response to the conformance registry that the connector is below the threshold and needs to be removed from consideration as a connector until the conformance scores are improved. That can take place via a developer updating the connector or the connector receiving additional constraints that allow it to provide better outcomes. The front end 102 can reflect the availability or lack of availability or confidence scores to users where appropriate. In this way, the evaluation loop continuously tunes connector choice using measured quality, latency, and safety outcomes while preserving standardized interaction via the stored conformance records.
[0157] An additional evaluation can take place by the generative response engine 140, adjust tool calls based on previously received errors. In some exemplary embodiments, when a connector is first onboarded, the tool description associated with the new tool can indicate that a particular parameter accepts arbitrary strings. During early use, the generative response engine 140 may repeatedly construct tool calls that include a free-form value, causing the tool to return errors for certain values that are not accepted by the underlying service. Each such error can be recorded in a tool-behavior memory along with the offending parameter pattern. While this example includes a discussion of arbitrary strings, any input that returns errors can be evaluated, stored, and relied upon in future calls for that tool or a tool with similar functionality.
[0158] Accordingly, in subsequent sessions, when the generative response engine 140 is about to construct another call to the same tool, the control plane consults the tool-behavior memory and adjusts the call construction, for example by restricting the field to a known-good set of enumerated values or omitting the field entirely when it would otherwise cause an error. In this way, the system learns from prior failures and improves the quality and efficiency of tool usage over time without requiring the developer to manually update the tool description.
[0159] FIG. 11 is a block diagram illustrating an example machine learning platform for implementing various aspects of this disclosure in accordance with some aspects of the present technology. Although the example system depicts particular system components and an arrangement of such components, this depiction is to facilitate a discussion of the present technology and should not be considered limiting unless specified in the appended claims. For example, some components that are illustrated as separate can be combined with other components, and some components can be divided into separate components.
[0160] System 1100 may include data input engine 1110 that can further include data retrieval engine 1112 and data transform engine 1114. Data retrieval engine 1112 may be configured to access, interpret, request, or receive data, which may be adjusted, reformatted, or changed (e.g., to be interpretable by another engine, such as data input engine 1110). For example, data retrieval engine 1112 may request data from a remote source using an API. Data input engine 1110 may be configured to access, interpret, request, format, re-format, or receive input data from data sources(s) 1101. For example, data input engine 1110 may be configured to use data transform engine 1114 to execute a re-configuration or other change to data, such as a data dimension reduction. In some aspects, data sources(s) 1101 may be associated with a single entity (e.g., organization) or with multiple entities. Data sources(s) 1101 may include one or more of training data 1102a (e.g., input data to feed a machine learning model as part of one or more training processes), validation data 1102b (e.g., data against which at least one processor may compare model output with, such as to determine model output quality), and / or reference data 1102c. In some aspects, data input engine 1110 can be implemented using at least one computing device. For example, data from data sources(s) 1101 can be obtained through one or more I / O devices and / or network interfaces. Further, the data may be stored (e.g., during execution of one or more operations) in a suitable storage or system memory. Data input engine 1110 may also be configured to interact with a data storage, which may be implemented on a computing device that stores data in storage or system memory.
[0161] System 1100 may include featurization engine 1120. Featurization engine 1120 may include feature annotating & labeling engine 1122 (e.g., configured to annotate or label features from a model or data, which may be extracted by feature extraction engine 1124), feature extraction engine 1124 (e.g., configured to extract one or more features from a model or data), and / or feature scaling & selection engine 1126 Feature scaling & selection engine 1126 may be configured to determine, select, limit, constrain, concatenate, or define features (e.g., AI features) for use with AI models.
[0162] System 1100 may also include machine learning (ML) modeling engine 1130, which may be configured to execute one or more operations on a machine learning model (e.g., model training, model re-configuration, model validation, model testing), such as those described in the processes described herein. For example, ML modeling engine 1130 may execute an operation to train a machine learning model, such as adding, removing, or modifying a model parameter. Training of a machine learning model may be supervised, semi-supervised, or unsupervised. In some aspects, training of a machine learning model may include multiple epochs, or passes of data (e.g., training data 1102a) through a machine learning model process (e.g., a training process). In some aspects, different epochs may have different degrees of supervision (e.g., supervised, semi-supervised, or unsupervised). Data into a model to train the model may include input data (e.g., as described above) and / or data previously output from a model (e.g., forming a recursive learning feedback). A model parameter may include one or more of a seed value, a model node, a model layer, an algorithm, a function, a model connection (e.g., between other model parameters or between models), a model constraint, or any other digital component influencing the output of a model. A model connection may include or represent a relationship between model parameters and / or models, which may be dependent or interdependent, hierarchical, and / or static or dynamic. The combination and configuration of the model parameters and relationships between model parameters discussed herein are cognitively infeasible for the human mind to maintain or use. Without limiting the disclosed aspects in any way, a machine learning model may include millions, billions, or even trillions of model parameters. ML modeling engine 1130 may include model selector engine 1132 (e.g., configured to select a model from among a plurality of models, such as based on input data), parameter engine 1134 (e.g., configured to add, remove, and / or change one or more parameters of a model), and / or model generation engine 1136 (e.g., configured to generate one or more machine learning models, such as according to model input data, model output data, comparison data, and / or validation data).
[0163] In some aspects, model selector engine 1132 may be configured to receive input and / or transmit output to ML algorithms database 1170. Similarly, featurization engine 1120 can utilize storage or system memory for storing data and can utilize one or more I / O devices or network interfaces for transmitting or receiving data. ML algorithms database 1170 may store one or more machine learning models, any of which may be fully trained, partially trained, or untrained. A machine learning model may be or include, without limitation, one or more of (e.g., such as in the case of a metamodel) a statistical model, an algorithm, a neural network (NN), a convolutional neural network (CNN), a generative neural network (GNN), a Word2Vec model, a bag of words model, a term frequency-inverse document frequency (tf-idf) model, a GPT (Generative Pre-trained Transformer) model (or other autoregressive model), a diffusion model, a diffusion-transformer model, an encoder such as BERT (Bidirectional Encoder Representations from Transformers) or LXMERT (Learning Cross-Modality Encoder Representations from Transformers), a Proximal Policy Optimization (PPO) model, a nearest neighbor model (e.g., k nearest neighbor model), a linear regression model, a k-means clustering model, a Q-Learning model, a Temporal Difference (TD) model, a Deep Adversarial Network model, or any other type of model described further herein. Some of the ML algorithms in ML algorithms database 1170 can be considered generative response engines. Generative response engines are those models are commonly referred to as Generative AI, and that can receive an input prompt and generate additional content based on the prompt. GPTs, diffusion models, and diffusion-transformer models are some non-limiting examples of generative response engines. Some specific examples of generative response engines that can be stored in the ML algorithms database 1170 include versions DALL.E, CHAT GPT, and SORA, all provided by OPEN AI.
[0164] System 1100 can further include predictive output generation engine 1145 and output validation engine 1150 (e.g., configured to apply validation data to machine learning model output). Predictive output generation engine 1145 can analyze the input and identify relevant patterns and associations in the data it has learned to generate a sequence of words that predictive output generation engine 1145 predicts is the most likely continuation of the input using one or more models from the ML algorithms database 1170, aiming to provide a coherent and contextually relevant answer. Predictive output generation engine 1145 generates responses by sampling from the probability distribution of possible words and sequences, guided by the patterns observed during its training. In some aspects, predictive output generation engine 1145 can generate multiple possible responses before presenting the final one. Predictive output generation engine 1145 can generate multiple responses based on the input, and these responses are variations that predictive output generation engine 1145 considers potentially relevant and coherent. Output validation engine 1150 can evaluate these generated responses based on certain criteria. These criteria can include relevance to the prompt, coherence, fluency, and sometimes adherence to specific guidelines or rules, depending on the application. Based on this evaluation, output validation engine 1150 selects the most appropriate response. This selection is typically the one that scores highest on the set criteria, balancing factors like relevance, informativeness, and coherence.
[0165] System 1100 can further include feedback engine 1160 (e.g., configured to apply feedback from a user and / or machine to a model) and model refinement engine 1155 (e.g., configured to update or re-configure a model). In some aspects, feedback engine 1160 may receive input and / or transmit output (e.g., output from a trained, partially trained, or untrained model) to outcome metrics database 1165. Outcome metrics database 1165 may be configured to store output from one or more models and may also be configured to associate output with one or more models. In some aspects, outcome metrics database 1165, or other device (e.g., model refinement engine 1155 or feedback engine 1160), may be configured to correlate output, detect trends in output data, and / or infer a change to input or model parameters to cause a particular model output or type of model output. In some aspects, model refinement engine 1155 may receive output from predictive output generation engine 1145 or output validation engine 1150. In some aspects, model refinement engine 1155 may transmit the received output to featurization engine 1120 or ML modeling engine 1130 in one or more iterative cycles.
[0166] The engines of system 1100 may be packaged functional hardware units designed for use with other components or a part of a program that performs a particular function (e.g., of related functions). Any or each of these modules may be implemented using a computing device. In some aspects, the functionality of system 1100 may be split across multiple computing devices to allow for distributed processing of the data, which may improve output speed and reduce computational load on individual devices. In some aspects, system 1100 may use load-balancing to maintain stable resource load (e.g., processing load, memory load, or bandwidth load) across multiple computing devices and to reduce the risk of a computing device or connection becoming overloaded. In these or other aspects, the different components may communicate over one or more I / O devices and / or network interfaces.
[0167] System 1100 can be related to different domains or fields of use. Descriptions of aspects related to specific domains, such as natural language processing or language modeling, is not intended to limit the disclosed aspects to those specific domains, and aspects consistent with the present disclosure can apply to any domain that utilizes predictive modeling based on available data.
[0168] FIG. 12A, FIG. 12B, and FIG. 12C illustrates an example transformer architecture in accordance with some aspects of the present technology. Examples of ML models that use a transformer neural network (e.g., transformer architecture 1200) can include, e.g., generative pre-trained transformer (GPT) models and Bidirectional Encoder Representations from Transformer (BERT) models. The transformer architecture 1200, which is illustrated in FIG. 12A, FIG. 12B, and FIG. 12C, includes inputs 1202, input embedding block 1204, positional encodings 1206, encoder 1208 including encode blocks 1210, decoder 1212 including decode blocks 1214, linear block 1216, softmax block 1218, and output probabilities 1220.
[0169] Input embedding block 1204 is used to provide representations for words. For example, embedding can be used in text analysis. According to some examples, the representation is a real-valued vector that encodes the meaning of the word in such a way that words that are closer in the vector space are expected to be similar in meaning. Word embeddings can be obtained using language modeling and feature learning techniques, where words or phrases from the vocabulary are mapped to vectors of real numbers. According to some examples, the input embedding block 1204 can be learned embeddings to convert the input tokens and output tokens to vectors of dimension that have the same dimension as the positional encodings, for example.
[0170] Positional encodings 1206 provide information about the relative or absolute position of the tokens in the sequence. According to some examples, positional encodings 1206 can be provided by adding positional encodings to the input embeddings at the inputs to the encoder 1208 and decoder 1212. The positional encodings have the same dimension as the embeddings, thereby enabling a summing of the embeddings with the positional encodings. There are several ways to realize the positional encodings, including learned and fixed. For example, sine and cosine functions having different frequencies can be used. That is, each dimension of the positional encoding corresponds to a sinusoid. Other techniques of conveying positional information can also be used, as would be understood by a person of ordinary skill in the art. For example, learned positional embeddings can instead be used to obtain similar results. An advantage of using sinusoidal positional encodings rather than learned positional encodings is that doing so allows the model to extrapolate to sequence lengths longer than the ones encountered during training.
[0171] Encoder 1208 can use stacked self-attention and point-wise, fully connected layers. Encoder 1208 can be a stack of N identical layers (e.g., N=6), and each layer can be an encode block, as illustrated by encode block 1210 shown in FIG. 12B. Each encode block 1210 has two sub-layers: (i) a first sub-layer has a multi-head attention block 1222 and (ii) a second sub-layer has a feed forward block 1226, which can be a position-wise fully connected feed-forward network. The feed forward block 1226 can use a rectified linear unit (ReLU).
[0172] Encoder 1208 uses a residual connection around each of the two sub-layers, followed by an add & norm block 1224, which performs normalization. For example, the output of each sub-layer can be LayerNorm(x+Sublayer(x)). To facilitate these residual connections, all sub-layers in the model, as well as the embedding layers, produce output data having a same dimension.
[0173] Similar to encoder 1208, decoder 1212 uses stacked self-attention and point-wise, fully connected layers. Decoder 1212 can also be a stack of M identical layers (e.g., M=6), and each layer can be a decode block, as illustrated by decoder 1212 shown in FIG. 12A and decode block 1214 of FIG. 12C. In addition to the two sub-layers (i.e., the sublayer with multi-head attention block 1222 and the sub-layer with feed forward block 1226) found in encode block 1210, decode block 1214 can include a third sub-layer, which performs multi-head attention over the output of the encoder stack. The result from the encoder 1228 can be input into the multi-head attention block 1222. Similar to encoder 1208, decoder 1212 uses residual connections around each of the sub-layers, followed by layer normalization. Additionally, the sub-layer with multi-head attention block 1222 can be modified in the decoder stack to prevent positions from attending to subsequent positions and can receive as input the result from encoder 1208, including via result from encoder 1228. This masking, combined with the fact that the output embeddings are offset by one position, can ensure that the predictions for position i can depend only on the known output data at positions less than i.
[0174] Linear block 1216 can be a learned linear transformation. For example, when transformer architecture 1200 is being used to translate from a first language into a second language, linear block 1216 can project the output from the last decode softmax block 1218 into word scores for the second language (e.g., a score value for each unique word in the target vocabulary) at each position in the sentence. For instance, if the output sentence has seven words and the provided vocabulary for the second language has 10,000 unique words, then 10,000 score values are generated for each of those seven words. The score values indicate the likelihood of occurrence for each word in the vocabulary in that position of the sentence.
[0175] Softmax block 1218 then turns the scores from linear block 1216 into output probabilities 1220 (which add up to 1.0). In each position, the index provides for the word with the highest probability, and then maps that index to the corresponding word in the vocabulary. Those words then form the output sequence of transformer architecture 1200. The softmax operation is applied to the output from linear block 1216 to convert the raw numbers into output probabilities 1220 (e.g., token probabilities).
[0176] FIG. 13 shows an example of computing system 1300, which can be, for example, any computing device making up any engine illustrated in FIG. 1 or any component thereof.
[0177] In some aspects, computing system 1300 is a single device, or a distributed system in which the functions described in this disclosure can be distributed within a datacenter, multiple data centers, a peer network, etc. In some aspects, one or more of the described system components represents many such components each performing some or all of the function for which the component is described. In some aspects, the components can be physical or virtual devices.
[0178] In some aspects, computing system 1300 may comprise one or more computing resources provisioned from a “cloud computing” provider, For example, AMAZON ELASTIC COMPUTE CLOUD (“AMAZON EC2”), provided by AMAZON, INC. of Seattle, Washington; SUN CLOUD COMPUTER UTILITY, provided by SUN MICROSYSTEMS, INC. of Santa Clara, California; AZURE, provided by MICROSOFT CORPORATION of Redmond, Washington, GOOGLE CLOUD PLATFORM, provided by ALPHABET, INC. of Mountain View, California, and the like.
[0179] Example computing system 1300 includes at least one processing unit (CPU or processor) 1304 and connection 1302 that couples various system components including system memory 1308, such as read-only memory (ROM) 1310 and random access memory (RAM) 1312 to processor 1304. Memory 1308 can be a volatile or non-volatile memory device, and can be a hard disk or other types of non-transitory computer readable media which can store data that are accessible by a computer, such as magnetic cassettes, flash memory cards, solid state memory devices, digital versatile disks, cartridges, random access memories (RAMs), read-only memory (ROM), and / or some combination of these devices.
[0180] Memory 1308 can include software services, servers, logic, etc., that when the code that defines such software is executed by the processor 1304, it causes the system to perform a function. In some aspects, a hardware service that performs a particular function can include the software component stored in a computer-readable medium in connection with the necessary hardware components, such as processor 1304, connection 1302, output device 1322, etc., to carry out the function.
[0181] Computing system 1300 can include a cache of high-speed memory 1306 connected directly with, in close proximity to, or integrated as part of processor 1304.
[0182] Connection 1302 can be a physical connection via a bus, or a direct connection into processor 1304, such as in a chipset architecture. Connection 1302 can also be a virtual connection, networked connection, or logical connection.
[0183] Processor 1304 can include any general purpose processor and a hardware service or software service stored in memory 1308, configured to control processor 1304 as well as a special-purpose processor where software instructions are incorporated into the actual processor design. Processor 1304 may essentially be a completely self-contained computing system, containing multiple cores or processors, a bus, memory controller, cache, etc. A multi-core processor may be symmetric or asymmetric. Processor 1304 can be physical or virtual.
[0184] To enable user interaction, computing system 1300 includes an input device 1326, which can represent any number of input mechanisms, such as a microphone for speech, a touch-sensitive screen for gesture or graphical input, keyboard, mouse, motion input, speech, etc. Computing system 1300 can also include output device 1322, which can be one or more of a number of output mechanisms known to those of skill in the art. In some instances, multimodal systems can enable a user to provide multiple types of input / output to communicate with computing system 1300. Computing system 1300 can include communication interface 1324, which can generally govern and manage the user input and system output. There is no restriction on operating on any particular hardware arrangement, and therefore the basic features here may easily be substituted for improved hardware or firmware arrangements as they are developed.
[0185] In some aspects, computing system 1300 can refer to a combination of a personal computing device interacting with components hosted in a data center, where both the computing device and the components in the data center. In such examples, both the personal computing device and the components in the datacenter might have a processor, cache, memory, storage, etc.
[0186] For clarity of explanation, in some instances, the present technology may be presented as including individual functional blocks including functional blocks comprising devices, device components, steps or routines in a method embodied in software, or combinations of hardware and software.
[0187] Any of the steps, operations, functions, or processes described herein may be performed or implemented by a combination of hardware and software services or services, alone or in combination with other devices. In some embodiments, a service can be software that resides in memory of a client device and / or one or more servers of a content management system and perform one or more functions when a processor executes the software associated with the service. In some embodiments, a service is a program or a collection of programs that carry out a specific function. In some embodiments, a service can be considered a server. The memory can be a non-transitory computer-readable medium.
[0188] In some embodiments, the computer-readable storage devices, mediums, and memories can include a cable or wireless signal containing a bit stream and the like. However, when mentioned, non-transitory computer-readable storage media expressly exclude media such as energy, carrier signals, electromagnetic waves, and signals per se.
[0189] Methods according to the above-described examples can be implemented using computer-executable instructions that are stored or otherwise available from computer-readable media. Such instructions can comprise, For example, instructions and data which cause or otherwise configure a general purpose computer, special purpose computer, or special purpose processing device to perform a certain function or group of functions. Portions of computer resources used can be accessible over a network. The executable computer instructions may be, For example, binaries, intermediate format instructions such as assembly language, firmware, or source code. Examples of computer-readable media that may be used to store instructions, information used, and / or information created during methods according to described examples include magnetic or optical disks, solid-state memory devices, flash memory, USB devices provided with non-volatile memory, networked storage devices, and so on.
[0190] Devices implementing methods according to these disclosures can comprise hardware, firmware and / or software, and can take any of a variety of form factors. In some examples of such form factors include servers, laptops, smartphones, small form factor personal computers, personal digital assistants, and so on. The functionality described herein also can be embodied in peripherals or add-in cards. Such functionality can also be implemented on a circuit board among different chips or different processes executing in a single device, by way of further example.
[0191] The instructions, media for conveying such instructions, computing resources for executing them, and other structures for supporting such computing resources are means for providing the functions described in these disclosures.Aspects:
[0192] The present technology includes computer-readable storage mediums for storing instructions, and systems for executing any one of the methods embodied in the instructions addressed in the aspects of the present technology presented below:
[0193] Aspect 1: A method comprising: calling, by a generative response engine, a tool interface, wherein the tool interface interacts with a tool; receiving, by the generative response engine, a tool function associated with the tool; comparing, by the tool interface, the tool function to a known tool function, wherein the generative response engine is configured to utilize the known tool function; based on the comparing, determining, by the tool interface, that there is at least one difference between the tool function and the known tool function; utilizing, by the generative response engine, a translation service to create a translation of the tool function to conform the tool function with the known tool function; and interacting, by the generative response engine, with the tool based on the translation.
[0194] Aspect 2: The method of Aspect 1, wherein the translation service is configured to explore the tool interface and semantically map the tool function to the known tool function.
[0195] Aspect 3: The method of any one of Aspects 1-2, further comprising: saving, by the translation service, a first translation based on a previously explored tool interface; and identifying, by the translation service, the first translation when the tool interface is explored.
[0196] Aspect 4: The method of any one of Aspects 1-3, wherein the tool is an MCP server.
[0197] Aspect 5: The method of any one of Aspects 1-4, wherein the tool function includes conformance data associated with the known tool function.
[0198] Aspect 6: The method of any one of Aspects 1-5, further comprising: storing, at an intermediate interface layer, a mapping of the tool function to the known tool function.
[0199] Aspect 7: The method of any one of Aspects 1-6, wherein the mapping of the tool function includes interpreting semantic similarities between the tool function and the known tool function.
[0200] Aspect 8: The method of any one of Aspects 1-7, wherein the intermediate interface layer is configured to communicate the tool function to the generative response engine.
[0201] Aspect 9: The method of any one of Aspects 1-8, wherein the intermediate interface layer is configured to receive calls from the generative response engine associated with the tool function.
[0202] Aspect 10: The method of any one of Aspects 1-9, wherein the translation of the tool function comprises: calling, by the generative response engine, the tool function; and, based on calling the tool function, building, by the generative response engine, adapters for the tool function.
[0203] Aspect 11: The method of any one of Aspects 1-10, wherein the translation service performs the translation prior to a user prompt is transmitted to the generative response engine to call the tool.
[0204] Aspect 12: The method of any one of Aspects 1-11, wherein the building further comprises: inspecting, by the generative response engine, available methods and metadata associated with the tool function; and mapping the methods and metadata associated with the tool function to a connector protocol.
[0205] Aspect 13: The method of any one of Aspects 1-12, wherein utilizing the translation service includes invoking a prompted machine learning model that receives metadata describing the tool function and the known tool function and outputs the translation.
[0206] Aspect 14: The method of any one of Aspects 1-13, further comprising: receiving, by a conformance engine, a listing of available connectors including metadata describing respective tool interfaces associated with the available connectors; determining, by the conformance engine, whether a first connector of the available connectors conforms to one or more operational standards of a connector protocol; when the first connector fails to conform, identifying at least one difference from the connector protocol; generating, by the conformance engine, a conformance record that maps the at least one difference to a known tool operation; and storing, at the conformance registry, the conformance record for subsequent use in standardizing calls made by a generative response engine.
[0207] Aspect 15: The method of any one of Aspects 1-14, wherein generating the conformance record further comprises associating the first connector with a capability tag that identifies a normalized tool operation, and wherein the conformance engine further associates the capability tag with a plurality of other connectors that implement the normalized tool operation.
[0208] Aspect 16: The method of any one of Aspects 1-15, further comprising: identifying, by the conformance engine, a plurality of connectors associated with the known tool operation; invoking, by the conformance engine, the plurality of connectors in parallel using respective conformance records; and combining results returned from the plurality of connectors into a federated result.
[0209] Aspect 17: The method of any one of Aspects 1-16, further comprising: obtaining, by the conformance engine, a first set of specifications associated with a known connector, wherein the known connector performs a function; and generating, by the conformance engine, the connector protocol based on the first set of specifications.
[0210] Aspect 18: The method of any one of Aspects 1-17, further comprising: receiving, by the conformance engine, a request to add a new connector, wherein the new connector includes metadata associated with a function; conforming, by the conformance engine, the new connector to the standardized connector protocol, based on the function; and providing, by the conformance engine, the function of the new connector to the generative response engine.
[0211] Aspect 19: The method of any one of Aspects 1-18, wherein the conformance record includes at least one of a capability tag, a scope, and a confidence score.
[0212] Aspect 20: The method of any one of Aspects 1-19, further comprising: receiving, by a generative response engine, a request to add a new server, wherein the new server provides a new tool functionality; determining that there is a difference between the new server and a connector protocol; determining if the new tool functionality is associated with a process in a conformance registry; when the new tool functionality is associated with a process in the conformance registry, mapping the process to the new tool functionality; when the new tool functionality is not associated with a process in the conformance registry, generating a new process associated with the new tool functionality; storing the new process in the conformance registry; and mapping the new tool functionality to the new process in the conformance registry.
[0213] Aspect 21: The method of any one of Aspects 1-20, further comprising: receiving, by a connection service, a submission of a tool to connect to a generative response engine, wherein the tool has a tool interface hosting a tool function and wherein the tool function is different from a conformed tool function connected to the generative response engine; exploring, by a conformance translation service, the tool interface to identify semantic similarities between the tool function and the conformed tool function; mapping, by the conformance translation service, the tool function to the conformed tool function, wherein the mapping uses the semantic similarities; and configuring, by the connection service, the tool with the mapping, wherein the generative response engine uses the mapping to interact with the tool.
Claims
1. A method comprising:calling, by a generative response engine, a tool interface, wherein the tool interface interacts with a tool;receiving, by the generative response engine, a tool function associated with the tool;comparing, by the tool interface, the tool function to a known tool function, wherein the generative response engine is configured to utilize the known tool function;based on the comparing, determining, by the tool interface, that there is at least one difference between the tool function and the known tool function, wherein the at least one difference comprises at least one of a semantic difference or a structural difference;utilizing, by the generative response engine, a translation service to create a translation of the tool function to conform the tool function with the known tool function; andinteracting, by the generative response engine, with the tool based on the translation.
2. The method of claim 1, wherein the translation service is configured to explore the tool interface and semantically map the tool function to the known tool function.
3. The method of claim 2, further comprising:saving, by the translation service, a first translation based on a previously explored tool interface; andidentifying, by the translation service, the first translation when the tool interface is explored.
4. The method of claim 1, wherein the tool is a model context protocol “MCP” server.
5. The method of claim 1, wherein the tool function includes conformance data associated with the known tool function.
6. The method of claim 1, further comprising:storing at an intermediate interface layer, a mapping of the tool function to the known tool function.
7. The method of claim 6, wherein the mapping of the tool function, includes interpreting semantic similarities between the tool function and the known tool function.
8. The method of claim 6, wherein the intermediate interface layer is configured to communicate the tool function to the generative response engine.
9. The method of claim 6, wherein the intermediate interface layer is configured to receive calls from the generative response engine associated with the tool function.
10. The method of claim 1, wherein the translation of the tool function comprises:calling, by the generative response engine, the tool function; andbased on calling the tool function, building, by the generative response engine, adapters for the tool function.
11. The method of claim 10, wherein the translation service performs the translation prior to a user prompt is transmitted to the generative response engine to call the tool.
12. The method of claim 10, wherein the building further comprises:inspecting, by the generative response engine, available methods and metadata associated with the tool function; andmapping the available methods and metadata associated with the tool function to a connector protocol.
13. The method of claim 10, wherein utilizing the translation service includes invoking a prompted machine learning model that receives metadata describing the tool function and the known tool function and outputs the translation.
14. A non-transitory computer readable medium storing instructions which, when executed by a computing system, cause the computer system to perform operations comprising:calling, by a generative response engine, a tool interface, wherein the tool interface interacts with a tool;receiving, by the generative response engine, a tool function associated with the tool;comparing, by the tool interface, the tool function to a known tool function, wherein the generative response engine is configured to utilize the known tool function;based on the comparing, determining, by the tool interface, that there is at least one difference between the tool function and the known tool function, wherein the at least one difference comprises at least one of a semantic difference or a structural difference;utilizing, by the generative response engine, a translation service to create a translation of the tool function to conform the tool function with the known tool function; andinteracting, by the generative response engine, with the tool based on the translation.
15. The non-transitory computer readable medium of claim 14, wherein the translation service is configured to explore the tool interface and semantically map the tool function to the known tool function.
16. The non-transitory computer readable medium of claim 15, the instructions cause the computing system to perform operations further comprising:saving, by the translation service, a first translation based on a previously explored tool interface; andidentifying, by the translation service, the first translation when the tool interface is explored.
17. The non-transitory computer readable medium of claim 14, the instructions cause the computing system to perform operations further comprising:storing, at an intermediate interface layer, a mapping of the tool function, to the known tool function.
18. The non-transitory computer readable medium of claim 14, wherein the translation of the tool function comprises:calling, by the generative response engine, the tool function; andbased on calling the tool function, building, by the generative response engine, adapters for the tool function.
19. A system comprising:memory with instructions encoded thereon; andone or more processors that, when executing the instructions, are caused to perform operations comprising:calling, by a generative response engine, a tool interface, wherein the tool interface interacts with a tool;receiving, by the generative response engine, a tool function associated with the tool;comparing, by the tool interface, the tool function to a known tool function, wherein the generative response engine is configured to utilize the known tool function;based on the comparing, determining, by the tool interface, that there is at least one difference between the tool function and the known tool function, wherein the at least one difference comprises at least one of a semantic difference or a structural difference;utilizing, by the generative response engine, a translation service to create a translation of the tool function to conform the tool function with the known tool function; andinteracting, by the generative response engine, with the tool based on the translation.
20. The system of claim 19, wherein the one or more processors are caused to perform operations further comprising:saving, by the translation service, a first translation based on a previously explored tool interface; andidentifying, by the translation service, the first translation when the tool interface is explored.
Citation Information
Patent Citations
Automated robotic process selection and configuration
US11550299B2
Controlling position of robot by determining goal proposals by using neural networks
US11958529B2
Guided uncertainty-aware policy optimization: combining model-free and model-based strategies for sample-efficient learning
US12109701B2
Media engagement through deep learning
US12431126B2
Generative artificial intelligence security engine in an item listing system
US12432240B2
