How can I call a model from a Typescript v2 Function or a Python function ? via OSDK?

In developer console, I would like to expose a model that is hosted in Foundry.

I can’t import a model directly in OSDK nor in a code repo for v2 functions.

How can I expose this model directly ? If possible ?
How can I expose a v2 Function that calls itself this model ? If possible ?

You can expose a function from a model directly in the Modeling Objective UI.

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

1 Like