Hi All!
I have built a typescript function as a Query which I plan to use as an external API from outside of Palantir in an SDK.
The function takes the input payload, populates a prompt template, generates a response, and returns the response, as well as other metadata, to the API.
I would like to log the request and response parameters for each call made to this function.
I have tried adding an OntologyEditFunction that is called within my main function to create a new object with this data but the OntologyEditFunction cannot be used within a Query Function.
Does anyone know how we can achieve the “logging” or saving of the input and output data inside Palantir? (This can be in a dataset or Ontology)
A note: I know that one can add the object type to the SDK and make a separate call to create an object after receiving a response from the function, however, I want this to be handled from within the function in Palantir so that the external API is just one call.
Any help on this topic would be greatly appreciated!
Thank you!