@sanity/client 7.2.1-agent-actions.1 → 7.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1058,14 +1058,6 @@ function _generate(client, httpRequest, request) {
1058
1058
  body: request
1059
1059
  });
1060
1060
  }
1061
- function _prompt(client, httpRequest, request) {
1062
- const dataset2 = hasDataset(client.config());
1063
- return _request(client, httpRequest, {
1064
- method: "POST",
1065
- uri: `/agent/action/prompt/${dataset2}`,
1066
- body: request
1067
- });
1068
- }
1069
1061
  function _transform(client, httpRequest, request) {
1070
1062
  const dataset2 = hasDataset(client.config());
1071
1063
  return _request(client, httpRequest, {
@@ -1137,13 +1129,6 @@ class AgentActionsClient {
1137
1129
  translate(request) {
1138
1130
  return rxjs.lastValueFrom(_translate(this.#client, this.#httpRequest, request));
1139
1131
  }
1140
- /**
1141
- * Run a raw instruction and return the result either as text or json
1142
- * @param request - prompt request
1143
- */
1144
- prompt(request) {
1145
- return rxjs.lastValueFrom(_prompt(this.#client, this.#httpRequest, request));
1146
- }
1147
1132
  }
1148
1133
  class ObservableAssetsClient {
1149
1134
  #client;