Dynamic API Operation Overwriting for Resource Optimization
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing APIs perform default operations for all user prompts, leading to overconsumption of computing resources due to fetching of unnecessary data and failure to fetch necessary data, resulting in additional API calls and resource burden.
Innovation Solution
Implementing a system for dynamic overwriting of API operations, where entities can provide indications to skip default API operations and provide alternative data to generate responses, thereby customizing operations based on user prompts.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If APIs perform default operations for all user prompts, then API contract consistency is maintained, but computing resource consumption increases due to fetching unnecessary data
Solution Approach 1:
The patent applies dynamics by allowing API operations to transition from static default behavior to dynamic customizable behavior. Entities can dynamically overwrite default API operations based on their specific needs, enabling the system to adapt between consistency (using defaults) and efficiency (skipping unnecessary operations) depending on the situation.
Solution Approach 2:
The patent implements local quality by allowing different entities to have different API operation behaviors. While the API contract maintains universal consistency, individual entities can customize which operations are executed based on their local requirements, avoiding unnecessary data fetching for entities that don't need certain data.
2Loss of information
If APIs fetch all data by default, then data availability is ensured, but unnecessary data fetching consumes computing resources
Solution Approach 1:
The patent applies partial action by allowing entities to selectively execute only the API operations they need rather than fetching all data. Entities can specify which operations to skip, performing partial data retrieval aligned with their actual requirements, thereby avoiding waste of computing resources on unnecessary data fetching.
Solution Approach 2:
The patent extracts unnecessary data fetching operations from the default API execution flow. Entities can indicate which operations to skip, effectively removing unnecessary actions from the execution plan while retaining only the essential operations needed for their specific use cases.
3Productivity
If APIs execute all default operations, then operational completeness is maintained, but additional API calls are required for missing data
Solution Approach 1:
The patent applies preliminary action by having entities pre-specify which API operations they need before execution. By indicating which operations to skip in advance, entities can avoid the need for additional API calls to retrieve missing data, as the system only executes operations that are both complete and necessary.
Data Source
AI summary
In some implementations, a system for application programming interface (API) operation dynamic overwriting may receive an indication, associated with an entity, to overwrite an API operation. The system may receive a user prompt associated with the entity. The system may perform, based at least in part on the user prompt, a set of one or more operations. The API operation may be excluded from the set of the one or more operations based at least in part on the indication to overwrite the API operation being associated with the entity and the user prompt being associated with the entity. The system may provide, based at least in part on performing the set of one or more second operations, a response to the user prompt.


