Sanity Library Reference Docs
    Preparing search index...

    Class AgentActionsClient

    Index

    Constructors

    Methods

    • Patch a document using a schema aware API. Does not use an LLM, but uses the schema to ensure paths and values matches the schema.

      Type Parameters

      • DocumentShape extends Record<string, any>

      Parameters

      Returns Promise<
          { [key: string]: any } & { _id: string } & { [key: string]: any } & {
              _type: string;
          } & DocumentShape,
      >

    • Transform a target document based on a source.

      Type Parameters

      • DocumentShape extends Record<string, any>

      Parameters

      Returns Promise<
          { [key: string]: any } & { _id: string } & { [key: string]: any } & {
              _type: string;
          } & DocumentShape,
      >

    • Translate a target document based on a source.

      Type Parameters

      • DocumentShape extends Record<string, any>

      Parameters

      Returns Promise<
          { [key: string]: any } & { _id: string } & { [key: string]: any } & {
              _type: string;
          } & DocumentShape,
      >