Sanity Library Reference Docs
    Preparing search index...

    Function agentPrompt

    • Alpha

      Prompts the agent using the same instruction template format as the other actions, but returns text or json instead of acting on a document.

      Parameters

      Returns Observable<string>

      An Observable emitting the result of the agent prompt action.