Sanity App SDK
    Preparing search index...

    Function agentGenerate

    • Alpha

      Generates a new document using the agent.

      Parameters

      • instance: SanityInstance

        The Sanity instance.

      • options: GenerateInstruction

        The options for the agent generate action. See the Agent Actions API for more details.

      Returns Observable

      An Observable emitting the result of the agent generate action.