interoperability_production_needsupdate
Verify if an InterSystems IRIS interoperability production requires updates to maintain optimal functionality and alignment with system configurations.
Instructions
Check if an Interoperability Production needs update
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function implementing the 'interoperability_production_needsupdate' tool logic. It checks if the production needs an update using IRIS class method and returns a status message or raises an error.@server.tool(description="Check if an Interoperability Production needs update") async def interoperability_production_needsupdate( ctx: Context, ) -> str: logger.info("Checking if Interoperability Production needs update") iris = ctx.iris reason = IRISReference(iris) result = iris.classMethodBoolean( "Ens.Director", "ProductionNeedsUpdate", reason ) if result: raise ValueError(f"Production needs update: {reason.getValue()}") return "Production does not need update"