An agent integration and routing isolation method based on dynamic proxy

By using dynamic proxy interceptors and channel isolation mechanisms in the BFF layer, the security and scalability issues in the integration of third-party intelligent agents are resolved, enabling secure transmission of sensitive information and unified management of interface requests, thereby improving the overall security and flexibility of the system.

CN123184897APending Publication Date: 2026-11-27NANJING INFORMATION HIGH-SPEED RAILWAY RES INST OF SCI AND TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611323631.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies suffer from low security, bloated code, maintenance difficulties, and risks of interface request pollution and authentication bypass when integrating third-party intelligent agents. In particular, when the front end directly participates in the transmission of sensitive information and there are significant differences between interfaces from multiple vendors, it is difficult to achieve both security and flexible scalability.

Method used

A dynamic proxy interceptor is used to hijack the instantiation entry point of the network client, and the request base address is rewritten as the proxy interface of the BFF layer. API requests are diverted through the channel identifier parameter, and the access token is verified and the real API key is extracted at the BFF layer to achieve traffic isolation and security verification between the micro-application and the standard client.

Benefits of technology

It achieves zero leakage of third-party keys and zero-intrusion adaptation to heterogeneous vendors, improving the system's security, scalability, and operational controllability. It prevents interface pollution and authentication bypass risks caused by mixed traffic, simplifies front-end adaptation logic, and improves the security closed loop of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184897A_ABST
    Figure CN123184897A_ABST
Patent Text Reader

Abstract

The application discloses an agent integration and routing isolation method based on dynamic proxy, comprising: obtaining third-party agent metadata, identifying its provider type to generate channel identification parameters; combining environment instructions to inject trigger micro application sandbox or built-in standard client dual-channel adaptive loading, and synchronizing main system access tokens through same-source shared cache; using BFF layer dynamic proxy interceptor to hijack network SDK instantiation entry or business method call aspect, dynamically rewriting the request reference address to BFF proxy address; shunting external requests to BFF layer physically isolated micro applications or standard routing proxy branches, extracting real keys from the hosting credential library after completing security verification, and performing protocol adaptation and transparent forwarding. The application realizes zero leakage of third-party keys, zero-invasive adaptation of heterogeneous manufacturers, unified cleaning of streaming responses and channel-level routing isolation, and improves the security, scalability and operation controllability of system integration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer application software technology, and in particular to a method for intelligent agent integration and routing isolation based on dynamic agents. Background Technology

[0002] With the rapid development of Large Language Model (LLM) technology, various third-party agent development platforms are emerging. To enrich their product ecosystem and enhance business integration capabilities, control platform systems often need to quickly integrate agents developed by external third-party platforms into existing business processes. Under current technological conditions, there are two main typical implementation methods for integrating third-party agents into the front end of the control platform system:

[0003] The first implementation adopts a direct front-end connection mode. Specifically, the main control platform front-end directly sends a data request to the interface base address of the third-party AI engine via an asynchronous network request, carrying the sensitive calling key provided by the third-party intelligent agent service provider. Although this method is simple to implement, it poses significant security risks due to the front-end directly participating in the transmission of sensitive information.

[0004] The second implementation adopts an embedded and hard-coded adaptation mode. The main control platform front-end directly loads the native client webpage provided by the third-party platform using a webpage embedded container (such as an iframe-like same-origin sandbox); at the same time, the front-end needs to develop highly intrusive parsing and adaptation logic separately for the different interface specifications, input and output parameter data structures and streaming return protocols of different providers.

[0005] Based on the aforementioned existing technologies, several unavoidable technical flaws have been exposed in practical application scenarios. First, security is low, and sensitive keys are easily leaked. Because the first implementation method requires the front-end to directly participate in sending requests, sensitive third-party call keys are exposed to the browser front-end environment, making them highly vulnerable to interception, theft, or reverse engineering by malicious users using browser developer debugging tools, seriously threatening system data security. Second, significant differences in interfaces among multiple vendors lead to bloated code and difficult maintenance. Different third-party providers have varying API specifications, parameter formats, and response structures. The second implementation method requires writing a large amount of independent adaptation code for each vendor on the front-end. This not only results in a large and loosely structured front-end codebase but also makes the system lack flexible scalability. Once the interface standard changes, extensive rework is required. Finally, the mixed traffic from different integration channels makes it difficult to fundamentally guarantee security. In actual intelligent agent integration, some third-party intelligent agents come with their own dedicated interactive micro-applications (such as customized front-end pages), while others only provide open API interfaces. In the absence of a unified routing isolation and dynamic proxy resolution mechanism, request traffic within the micro-application container sandbox often mixes with request traffic from the built-in standard client. The main control frontend cannot uniformly intercept, finely manage, and perform security checks on underlying interface calls from different channels, which can easily lead to serious security risks such as interface request pollution and authentication bypass. Summary of the Invention

[0006] The purpose of this invention is to provide a method for intelligent agent integration and routing isolation based on dynamic agents, in order to solve at least some of the problems existing in the prior art.

[0007] Technical solution: A method for intelligent agent integration and routing isolation based on dynamic agents, comprising the following steps:

[0008] Obtain the metadata of the target third-party intelligent agent, as well as the pre-configured main system access token;

[0009] Based on metadata, identify the provider type of the target third-party intelligent agent and generate channel identifier parameters to determine the integration channel type;

[0010] By using a dynamic proxy interceptor to hijack the instantiation entry point of the network client, the request base address of the underlying network SDK is rewritten to the proxy interface base address of the BFF layer.

[0011] Based on the channel identifier parameter, external API requests are routed to the micro-application routing proxy branch or the standard routing proxy branch of the BFF layer.

[0012] After the traffic is split, the BFF layer verifies the main system access token carried, and after the verification is successful, it extracts the real third-party API key injection request from the managed credential repository and performs transparent forwarding to the third-party intelligent agent server.

[0013] Beneficial effects: By using dynamic proxy hijacking and physical isolation of the BFF layer channel, this invention achieves zero leakage of third-party keys and zero-intrusion adaptation to heterogeneous vendors, while effectively preventing traffic mixing between micro-applications and standard clients. In addition, this invention solves the pain point of session token expiration caused by long page dwell times through lazy instantiation and hot update mechanisms, realizes low-intrusion environment awareness of the sandbox by using stateless URL parameter injection, and builds a defensive state machine to clean heterogeneous streaming response data, thereby comprehensively improving the security, scalability, and operational controllability of system integration. Attached Figure Description

[0014] Figure 1 This is a flowchart of the overall solution of the present invention. Detailed Implementation

[0015] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0016] Example 1: A method for agent integration and route isolation based on dynamic agents

[0017] like Figure 1 As shown, this method specifically includes:

[0018] Step S1: Obtain the metadata of the target third-party intelligent agent, as well as the pre-configured main system access token.

[0019] According to one aspect of this application, data acquisition and initialization preparation operations are first performed. Specifically, before rendering the target third-party intelligent agent, the main control platform frontend needs to obtain the metadata of the target third-party intelligent agent that has been pre-configured and registered in the platform. The metadata, as a set of identity identifiers and interaction attributes of the intelligent agent, includes at least the intelligent agent's resource identifier, the provider's type code, and a boolean identifier indicating whether a dedicated interactive application is provided. Preferably, the metadata is typically obtained through a configuration center interface call within the platform, or pre-loaded into the memory cache by the main control platform during startup.

[0020] Simultaneously, a pre-configured main system access token needs to be obtained. The main system access token is the unique credential used by the currently logged-in user or application instance to verify its identity with the main control platform backend. It is dynamically generated by the main control platform's identity authentication subsystem after the user's authentication is successful and securely stored in the browser's local persistent storage area on the front end. In an optional implementation, the main system access token can also be stored in a secure session storage space under the same origin domain. The purpose of obtaining the main system access token is to ensure that in all subsequent interactions with external third-party intelligent agents, the front end does not carry any sensitive third-party calling keys, but instead uniformly uses this main system access token as a temporary security proxy credential. According to a further improvement of this embodiment, after obtaining the aforementioned metadata and the main system access token, the platform front end will perform format validation and timeliness checks to ensure that the data foundation for subsequent integration operations is accurate and valid.

[0021] Step S2: Based on metadata, identify the provider type of the target third-party intelligent agent and generate channel identifier parameters to determine the integration channel type.

[0022] After acquiring the initial dataset, the automated agent integration and selection phase begins. Preferably, the front-end processor first performs deep parsing of the metadata to extract attribute information regarding whether the target third-party agent provides a dedicated interactive application. Specifically, the attribute information is typically a boolean field. If the field is "true," it indicates that the third-party vendor has provided a closed, dedicated micro-application client; if the field is "false," it indicates that the agent only exposes a purely standard open API interface, requiring standardized integration through the main control platform's capabilities.

[0023] Based on this attribute information, this solution performs channel selection processing: In one optional implementation, if it is determined that a dedicated interactive application is provided, a channel identifier parameter representing the micro-application sandbox channel is automatically generated; conversely, if it is determined that no dedicated interactive application is provided, a channel identifier parameter representing the built-in standard client channel is automatically generated. At the same time as the channel identifier parameter is generated, this solution also triggers a corresponding loading action based on the parameter type. Specifically, for the former, the micro-application client will directly load the dedicated interactive application provided by the third party through a sandbox container of the same origin (such as an embedded iframe window or webview); for the latter, it triggers the loading of the standard client built into the main control platform, and the built-in standard client calls the matching front-end API adapter to dynamically load the interface adaptation logic of the corresponding provider type. The generated channel identifier parameter is not merely a string marker; it typically forms a mapping with the resource identifier of the agent, serving as a routing switch for the entire subsequent proxy process. After this processing step, this solution obtains a set of channel identifier parameters that clearly point to the micro-application sandbox channel or the standard channel, used to guide the routing of all subsequent network requests.

[0024] Step S3: Use a dynamic proxy interceptor to hijack the instantiation entry point of the network client and rewrite the request base address of the underlying network SDK to the proxy interface base address of the BFF layer.

[0025] After completing the channel selection, this application enters the seamless proxy parsing and request hijacking stage. In a preferred embodiment, regardless of whether the front-end is currently loading a micro-application client or a built-in standard client, a unified dynamic proxy interceptor will be deployed at its client network communication layer. This interceptor adopts the concept of AOP (Aspect-Oriented Programming), intercepting and hijacking requests at the aspect entry point instantiated in the underlying network SDK, or when a specific business request method is triggered.

[0026] Furthermore, the hijacking process here specifically includes: collecting the underlying network SDK instantiation entry points and method call actions in the micro-application client or the built-in standard client, employing a lazy instantiation strategy. When a specific business request method is triggered by the front end, the dynamic proxy interceptor immediately intervenes. Prior to this, this solution has deployed the micro-application client or the built-in standard client uniformly in the same origin domain as the main control platform through a same-origin domain deployment strategy, and reads the previously obtained main system access token from the browser's persistent local storage area under this same origin domain. Subsequently, the main system access token is combined with the resource identifier of the target third-party intelligent agent and written into a shared temporary cache (such as a cookie) under the same origin domain to form security credential data, supporting the client to obtain a login state synchronized with the main system during initialization and subsequent continuous calls.

[0027] Building upon this, to prevent session token expiration due to prolonged page dwell, the dynamic proxy interceptor triggers real-time context reading each time it captures a calling aspect. It extracts the latest security credential data from the shared temporary cache and rewrites the original interface base address of the underlying network SDK to the proxy interface base address of the BFF layer. Simultaneously, the master system access token from the real-time read security credential data is dynamically injected as a security access credential to complete the immediate assembly and request distribution of the underlying network SDK. After this series of processes, a secure SDK network client instance is finally generated. According to a further improvement in this embodiment, this secure SDK network client instance does not contain any third-party real API keys, thus eliminating the risk of front-end key leakage.

[0028] Step S4: Based on the channel identifier parameter, redirect external API requests to the micro-application routing proxy branch or the standard routing proxy branch of the BFF layer.

[0029] Once the security SDK network client instance is successfully initialized, all subsequent outgoing external API requests will be handled by this security client. Next, a strict isolation phase of routing and traffic splitting will begin. Specifically, in this application, the dynamic proxy interceptor in the BFF layer will continuously listen for and intercept all API requests sent externally. Upon receiving each external API request, it will first extract the request's header information or the channel identifier parameter carried in the URL path.

[0030] For example, if the channel identifier parameter is identified as matching the preset string of the micro-application sandbox channel, it indicates that the current request originates from the interaction logic within the third-party dedicated micro-application. In this case, the dynamic proxy interceptor will redirect the external API request to the micro-application routing proxy branch specifically deployed in the BFF layer. Conversely, if the parameter is identified as matching the built-in standard client channel, it is determined that the current request originates from the standard client interaction of the main control platform itself, and the corresponding request will be redirected to the standard routing proxy branch in the BFF layer.

[0031] In this scheme, the two routing proxy branches are not only strictly distinguished logically, but also isolated in the underlying physical channel processing of the BFF layer, ensuring no interference between them. This isolation mechanism effectively prevents traffic mixing between the micro-application sandbox channel and the built-in standard client channel, ensuring that underlying interface calls from different integration methods can be uniformly managed, intercepted, and securely verified, avoiding interface pollution and authentication bypass risks. Preferably, to achieve the above-mentioned traffic splitting, the BFF layer pre-generates a dynamic routing mapping table, which at least contains the association mapping between agent resource identifiers, proxy interface base addresses, and channel identifier parameters. When the dynamic proxy interceptor performs redirection, it can directly use this mapping table for fast path concatenation and routing, improving the execution efficiency of traffic splitting.

[0032] Step S5: After the traffic split is executed, the BFF layer verifies the main system access token carried, and after the verification is successful, it extracts the real third-party API key injection request from the managed credential repository and performs transparent forwarding to the third-party intelligent agent server.

[0033] After the request is successfully routed to the corresponding micro-application routing proxy branch or standard routing proxy branch, this application enters the BFF secure forwarding and pass-through stage. In one optional implementation, after receiving the redirected external API request, the BFF layer's secure forwarding module first extracts the main system access token from the request security header and performs a complete security authentication verification on the token (e.g., comparing the token's validity period, whether the signature is valid, etc.) to obtain the security verification result.

[0034] According to one aspect of this application, the BFF layer will only initiate subsequent credential hosting and forwarding logic if the security verification result is "passed". At this time, the secure forwarding module will query and extract the corresponding real third-party API key from a pre-established credential repository in the BFF layer, based on the resource identifier of the target third-party agent. In a preferred embodiment, the credential repository stores a mapping table of at least one third-party agent's resource identifier, provider type, and corresponding real third-party API key. The real third-party API key is entirely configured by the operations and maintenance team and is never granted read access to the front-end or sandbox environment.

[0035] Furthermore, after obtaining the genuine API key, this key is injected into the header or parameters of the external API request to generate the final proxy request carrying the genuine credentials. For external API requests redirected to the "standard route proxy branch," before key injection, a built-in standard client in the front end needs to identify the interface standard protocol corresponding to the provider type through the front-end API adapter, and perform protocol conversion processing on the input and output parameter data format of the external API request to generate standardized request data conforming to the standard protocol. This standardized request data is then submitted to the BFF layer for subsequent injection. After all operations are completed, the BFF layer directly forwards the proxy request carrying the genuine credentials to the third-party intelligent agent server.

[0036] When the third-party intelligent agent server returns a response, if the returned response data is a streaming protocol response, the BFF layer maintains the connection channel through the corresponding routing proxy branch, and streams the data fragments of the streaming protocol response back to the micro-application client or the built-in standard client in real time. Furthermore, during the backflow process, a dynamic proxy interceptor constructs a state machine parsing pipeline for the streaming response, defensively splicing and structurally standardizing heterogeneous event streams (SSE) and fragmented data packets. Based on the channel identifier parameters and the response data packet header, it dynamically identifies and removes the third-party server's private credentials from the response, ensuring that the front-end or sandbox only receives clean response data with a unified structure. Thus, a complete, secure, and isolated intelligent agent integration and routing forwarding process is completed in a closed loop.

[0037] Example 2: Intelligent Agent Integration and Routing Proxy Based on External Micro-application Sandbox Channel

[0038] In this embodiment, the system accesses the intelligent agent of the first intelligent agent provider, which has provided a dedicated interactive client, in a micro-application channel mode. The implementation process is as follows:

[0039] 1. Parameter initialization:

[0040] Intelligent agent resource identifier Resource_ID = ID_001; Master system access token Access_Token = TOKEN_01; Channel identifier parameter Channel_Indicator = CHANNEL_MICRO_APP (corresponding to micro-application sandbox channel); BFF proxy service base address BFF_API_Url = BFF_PROXY_URL.

[0041] 2. Rendering and Synchronization:

[0042] The host page's decision module B detects that the target agent has a dedicated micro-application and loads the micro-application client route using the sandbox container C; during the loading process, the main control system appends environment configuration command parameters to the URL path.

[0043] (For example, setting the state indicator mode=proxy and resource_key=ID_001& channel_key=CHANNEL_MICRO_APP) to send a stateless proxy handshake signal to the same-origin sandbox container.

[0044] When the dedicated micro-application client is initialized and loaded, on the one hand, it reads the preset session access token (i.e., TOKEN_01) in the local storage of the same origin and writes it together with ID_001 into the shared temporary cache area F of the same origin; on the other hand, the micro-application client realizes the sandbox environment by parsing the environment configuration instruction parameters in the URL and activates its internal routing self-constraint mechanism.

[0045] 3. Dynamic hijacking and traffic splitting at the BFF layer:

[0046] In the interface gateway relay layer of the micro-application client, the dynamic proxy interceptor H hijacks the instantiation of the network SDK (or intercepts the invocation of its object methods). After recognizing the activated routing self-restraint mechanism (i.e., sensing that it is currently in proxy mode) and reading the channel indicator parameter CHANNEL_MICRO_APP from the shared buffer, the interceptor dynamically constructs the proxy redirect URL, whose abstract format is: Proxy_Base_Url = BFF_PROXY_URL + " / MICRO_APP_BRANCH / " + "ID_001".

[0047] The interceptor writes this address to the SDK's request base address and dynamically injects TOKEN_01 to initialize the network client. Through the self-constrained handshake based on the URL environment parameters described above, without relying on cross-domain message communication, subsequent low-level network requests are automatically intercepted and sent to the micro-application routing proxy branch J.

[0048] 4. BFF credential injection and pass-through:

[0049] When the BFF layer's secure forwarding module L receives the request, it parses the security header and extracts the security certificate TOKEN_01, verifying whether the requester has legitimate access rights.

[0050] After successful verification, BFF retrieves the real API key corresponding to the agent from its own managed credential repository, injects it into the request header, and sends the request to the third-party agent server N. Finally, the response result is returned to the front end as is.

[0051] Example 2: Intelligent Agent Integration and Protocol Adaptation Based on Built-in Standard Client Channel

[0052] In this embodiment, the system accesses an intelligent agent from a second intelligent agent provider that does not provide a dedicated micro-application client (this vendor only provides an open API interface). The implementation process is as follows:

[0053] 1. Parameter initialization: Agent resource identifier Resource_ID = ID_002; Master system access token Access_Token = TOKEN_02; Provider type identifier Provider_Type = PROVIDER_02; Channel identifier parameter Channel_Indicator = CHANNEL_STANDARD (corresponding to the built-in standard client channel); BFF proxy service base address BFF_API_Url = BFF_PROXY_URL.

[0054] 2. Adaptive rendering and adaptation:

[0055] The decision module B on the host page detects that the target intelligent agent does not provide a dedicated micro-application and automatically launches the built-in standard client D of the main control platform.

[0056] The built-in standard client dynamically loads the corresponding generic front-end API adapter G based on the PROVIDER_02 identifier in the metadata.

[0057] The front-end API adapter intercepts underlying interface requests and converts the input data format into the data protocol format defined by the PROVIDER_02 platform.

[0058] 3. Request interception and redirection:

[0059] The interceptor detects that the channel indicator is CHANNEL_STANDARD and dynamically generates a redirect base path, the abstract format of which is: Proxy_Base_Url = BFF_PROXY_URL + " / STANDARD_BRANCH / " + "ID_002".

[0060] The interceptor redirects the request to the standard route proxy branch K and injects TOKEN_02 into the network request header, completely shielding the vendor's secure call key.

[0061] 4. BFF Protocol Conversion and Pass-through:

[0062] The protocol conversion and forwarding module M of the BFF layer receives the request and verifies the validity of the token TOKEN_02.

[0063] After successful verification, BFF retrieves the managed PROVIDER_02 access credential in the backend, makes necessary adjustments and injections to the request protocol and parameters, transparently passes them to the third-party intelligent agent server N, and streams the returned response data back, which is then parsed by the frontend API adapter and displayed on the interface.

[0064] The agent integration and routing isolation method based on dynamic proxies proposed in this application has substantial technical advantages and outstanding practical application value compared with existing technical solutions. Specifically, in this invention, sensitive third-party call keys are completely separated from the front-end and browser sandbox environment and centrally managed in the BFF layer. The front-end only transmits and securely verifies the main system access token, eliminating the risk of third-party key leakage caused by front-end code reverse engineering or network request hijacking, and improving the overall data security of the system. Furthermore, this invention, through a dual-channel adaptive integration decision mechanism, can intelligently match the micro-application sandbox channel or the built-in standard client channel according to the agent's metadata. With the help of dynamic proxy hijacking rewriting in the BFF layer and the coordinated linkage of the front-end API adapter, it perfectly adapts to the interface standards of heterogeneous vendors without intruding on any third-party official SDK internal code, simplifies the bloated front-end adaptation logic, and reduces the complexity of system development and integration and the later maintenance costs. Furthermore, the channel-driven routing isolation mechanism in this solution physically separates the underlying traffic of the micro-application sandbox from that of the built-in standard client at the BFF layer. This ensures that underlying interface calls from different integration methods can be independently intercepted, uniformly verified for security, and finely controlled, eliminating the risks of interface pollution and authentication bypass caused by mixed traffic. Preferably, during the streaming protocol response data return process, this solution can also dynamically strip away the third-party server's private credentials, returning only clean response data to the front end. This further strengthens the security closed loop of the data transmission link, achieving a comprehensive improvement in multiple dimensions of intelligent agent integration, including security, adaptability flexibility, and operational controllability.

[0065] The preferred embodiments of the present invention have been described in detail above. However, the present invention is not limited to the specific details in the above embodiments. Within the scope of the technical concept of the present invention, various equivalent transformations can be made to the technical solutions of the present invention, and these equivalent transformations all fall within the protection scope of the present invention.

Claims

1. A method for intelligent agent integration and routing isolation based on dynamic agents, characterized in that, include: Obtain the metadata of the target third-party intelligent agent, as well as the pre-configured main system access token; Based on metadata, identify the provider type of the target third-party intelligent agent and generate channel identifier parameters to determine the integration channel type; By using a dynamic proxy interceptor to hijack the calling aspect of the network client instantiation entry or business method, the request base address of the underlying network SDK is rewritten to the proxy interface base address of the BFF layer. Based on the channel identifier parameter, external API requests are routed to the micro-application routing proxy branch or the standard routing proxy branch of the BFF layer. After the traffic is split, the BFF layer verifies the main system access token carried, and after the verification is successful, it extracts the real third-party API key injection request from the managed credential repository and performs transparent forwarding to the third-party intelligent agent server.

2. The method according to claim 1, characterized in that, Generate channel identifier parameters used to determine the integrated channel type, including: The metadata is parsed to extract attribute information on whether the target third-party intelligent agent provides a dedicated interactive application; Channel selection is performed based on attribute information: if it is determined that a dedicated interactive application is provided, a channel identifier parameter representing the micro-application sandbox channel is generated, and the micro-application client is triggered to load; if it is determined that no dedicated interactive application is provided, a channel identifier parameter representing the built-in standard client channel is generated, and the built-in standard client is triggered to load. The micro-application client loads a dedicated interactive application through a homogeneous sandbox container. During loading, the main control system sends environment configuration instructions to the homogeneous sandbox container via URL environment parameter injection. When the dedicated interactive application initializes, it parses the environment configuration instructions to perceive the sandbox environment and activates the internal routing self-constraint mechanism based on the environment configuration instructions, automatically switching the request base route to the corresponding BFF layer proxy interface. The built-in standard client dynamically loads the interface adaptation logic corresponding to the provider type through the front-end API adapter.

3. The method according to claim 1, characterized in that, After obtaining the target third-party intelligent agent's metadata and the main system access token, the process also includes: Deploy micro-application clients or built-in standard clients under the same origin domain, and read the main system access token from the browser's persistent local storage area under the same origin domain; The main system access token is combined with the resource identifier of the target third-party intelligent agent and written to a shared temporary cache under the same origin domain to obtain security credential data, so as to support micro-application clients or built-in standard clients to obtain a login state synchronized with the main system during initialization.

4. The method according to claim 3, characterized in that, Using dynamic proxy interceptors to hijack the invocation aspect of network client instantiation entry points or business methods, including: Collect request and call actions from micro-application clients or built-in standard clients, and perform hijacking processing on the call aspect of the instantiation entry point or object method of the underlying network SDK through a dynamic proxy interceptor; A lazy instantiation strategy is adopted. Every time a specific business request method is captured and called, a real-time context read is triggered to extract the latest security credential data from the shared temporary cache. The original interface base address of the underlying network SDK is rewritten to the proxy interface base address of the BFF layer, and the master system access token in the real-time extracted security credential data is dynamically injected as a security access credential to immediately assemble the underlying network SDK and complete request distribution, generating a security SDK network client instance. The security SDK network client instance does not contain a real third-party API key.

5. The method according to claim 4, characterized in that, Based on the channel identifier parameter, external API requests are routed to the micro-application routing proxy branch or the standard routing proxy branch in the BFF layer, including: For external API requests initiated by the security SDK network client instance, extract the channel identifier parameter from the request header or request path, and identify its channel type; If the channel identifier parameter is identified as representing a micro-application sandbox channel, then external API requests will be redirected to the micro-application routing proxy branch deployed in the BFF layer. If the channel identifier parameter is identified as representing the built-in standard client channel, then external API requests are redirected to the standard routing proxy branch deployed in the BFF layer; the micro-application routing proxy branch and the standard routing proxy branch form a physically isolated traffic processing channel in the BFF layer.

6. The method according to claim 5, characterized in that, After traffic splitting, the BFF layer verifies the main system access token carried, and upon successful verification, retrieves the genuine third-party API key injection request from the managed credential repository and performs transparent forwarding to the third-party intelligent agent server, including: After receiving the redirected external API request at the BFF layer, the main system access token in the request security header is extracted, security authentication verification is performed, and security verification result is generated. If the security verification result is passed, the real third-party API key corresponding to the target third-party intelligent agent resource identifier is retrieved from the managed credential repository, and the real third-party API key is injected into the header or parameters of the external API request to generate a proxy request carrying the real credentials. The proxy request carrying the real credentials will be forwarded to the third-party smart agent server, and the received response will be directly fed back to the micro-application client or the built-in standard client.

7. The method according to claim 6, characterized in that, For external API requests redirected to the standard route proxy branch, the following steps are included before generating a proxy request carrying the actual credentials: The built-in standard client uses a front-end API adapter to identify the interface standard protocol corresponding to the provider type, and performs protocol conversion processing on the input and output parameter data format of external API requests to generate standardized request data that conforms to the provider type standard. The standardized request data is submitted to the BFF layer, where the BFF layer performs security authentication and verification and injects the real third-party API key.

8. The method according to claim 1, characterized in that, After identifying the provider type of the target third-party agent based on metadata and generating channel identifier parameters to determine the integration channel type, the process also includes: Based on the channel identifier parameter, a corresponding dynamic routing mapping table is generated and configured at the BFF layer. The dynamic routing mapping table contains at least the mapping relationship between the resource identifier, the proxy interface base address, and the channel identifier parameter. The dynamic route mapping table is used as an index for path concatenation and route addressing when the dynamic proxy interceptor rewrites the request base address.

9. The method according to claim 6, characterized in that, The main system access token carried by the BFF layer is verified, and before retrieving the real third-party API key injection request from the managed credential repository after successful verification, it also includes: In response to the access request of the target third-party intelligent agent, a managed credential repository is established in the BFF layer. The managed credential repository stores a mapping table of the resource identifier, provider type and corresponding real third-party API key of at least one third-party intelligent agent. The real third-party API key is configured by the operation and maintenance side and is not open to the front end or sandbox for reading.

10. The method according to claim 6, characterized in that, The proxy request carrying the genuine credentials is forwarded transparently to the third-party intelligent agent server, and the received response is directly fed back to the micro-application client or the built-in standard client, including: If the response data returned by the third-party intelligent agent server is a streaming protocol response, the BFF layer maintains the connection channel through the micro-application routing proxy branch or the standard routing proxy branch, and streams the data fragments of the streaming protocol response back to the micro-application client or the built-in standard client in real time. Meanwhile, during the backflow process, a state machine parsing pipeline is built by the dynamic proxy interceptor for the streaming response. This pipeline performs defensive splicing and structural standardization processing on heterogeneous event streams and broken data packets. Based on the channel identifier parameters and the response data packet header, it dynamically identifies and removes third-party server private credentials from the response, ensuring that the front end or sandbox only receives clean response data that has undergone unified structural cleaning.