See https://www.palantir.com/docs/foundry/manage-models/create-a-model-deployment#3-publish-a-function-for-the-deployment
Given it is a query, it should be importable, for example, in a Python function.
See https://www.palantir.com/docs/foundry/functions/functions-on-models#call-a-model-function-from-python-functions