Home > @uniformdev/mesh-edgehancer-sdk > CreateAIDataResourceEditHookFn
CreateAIDataResourceEditHookFn type
Shape of a hook function that is invoked to create the prompt and output schema for an AI edit to a data resource.
This hook is called when AI needs to edit the content of a data resource. It should return instructions for the AI and a JSON schema describing the expected output format.
NOTE: the instructions returned by this hook are part of a larger system editing prompt. Only describe how to edit the data resource content itself, not general editing instructions.
Signature:
References: CreateAIDataResourceEditContext, CreateAIDataResourceEditResult